[evolution-patches] GAL: Editing user defined views (UIHackfest)



Hi,

i wondered why only builtin type are allowed to be edited and not the
user added ones. It should have been other way around. This fixes it.

-Srini.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/widgets/ChangeLog,v
retrieving revision 1.136
diff -u -p -r1.136 ChangeLog
--- ChangeLog	23 Jun 2005 09:11:09 -0000	1.136
+++ ChangeLog	21 Jul 2005 03:57:58 -0000
@@ -1,3 +1,9 @@
+2005-07-21  Srinivasa Ragavan <sragavan novell com>
+
+	* menus/gal-define-views-dialog.c: (etable_selection_change_forall_cb) 
+	Fixes a bug where it allows just builtin views to be edited and not user
+	added one. It should have been the other way around.
+
 2005-06-23  Kaushal Kumar  <kakumar novell com>
 
 	* text/Makefile.am: Set libetextincludedir to text to match 
Index: menus/gal-define-views-dialog.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/menus/gal-define-views-dialog.c,v
retrieving revision 1.32
diff -u -p -r1.32 gal-define-views-dialog.c
--- menus/gal-define-views-dialog.c	17 Jun 2005 15:20:32 -0000	1.32
+++ menus/gal-define-views-dialog.c	21 Jul 2005 03:57:58 -0000
@@ -218,10 +218,10 @@ etable_selection_change_forall_cb (int r
 						  !item->built_in);
 			if (GAL_VIEW_GET_CLASS (item->view)->edit)
 				gtk_widget_set_sensitive (glade_xml_get_widget (dialog->gui, "button-modify"),
-						item->built_in);
+						!item->built_in);
 			else
 				gtk_widget_set_sensitive (glade_xml_get_widget (dialog->gui, "button-modify"),
-						!item->built_in);
+						item->built_in);
 		}
 	}
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]