Hi Tristan
Just a small patch. Fixes some issues.
Good idea about tab alignment in the projects list menu,
but isn't the tab width a bit large. I managed to
reduce it by using spaces instead.
cheers
Vincent
--
2006-03-17 Vincent Geddes <[EMAIL PROTECTED]>
* src/glade_project.c:
o Fixed: glade_project_changed() should not set
project->changed if project is still in process
of being loaded.
o Change format for project display name in
glade_project_display_name()
Index: glade-project.c
===================================================================
RCS file: /cvs/gnome/glade3/src/glade-project.c,v
retrieving revision 1.92
diff -u -p -r1.92 glade-project.c
--- glade-project.c 16 Mar 2006 06:59:01 -0000 1.92
+++ glade-project.c 16 Mar 2006 23:44:54 -0000
@@ -1330,7 +1330,7 @@ glade_project_changed (GladeProject *pro
{
g_return_if_fail (GLADE_IS_PROJECT (project));
- if (!project->changed)
+ if (!project->changed && !project->loading)
{
project->changed = TRUE;
g_object_notify (G_OBJECT (project), "has-unsaved-changes");
@@ -1556,12 +1556,13 @@ glade_project_display_name (GladeProject
gboolean unsaved_changes,
gboolean tab_aligned)
{
- const gchar *prefix = tab_aligned ? "\t" : "";
- const gchar *unsaved_prefix = unsaved_changes ?
- (tab_aligned ? " *\t" : "*") : prefix;
-
+ const gchar *prefix;
+ const gchar *unsaved_prefix;
gchar *prefixed_name = NULL;
gchar *final_name = NULL;
+
+ prefix= tab_aligned ? " " : "";
+ unsaved_prefix = unsaved_changes ? "*" : prefix;
prefixed_name =
g_strdup_printf ("%s%s",
_______________________________________________
Glade-devel maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/glade-devel