new gnome-session logout



Hi,

After updating to the newer gnome-session (with the RH6 patches merged in)
I immediately wanted to save the session by default, but be able at "end
session time" to not save the session.

Anyway here is a little diff that does what I want.  I can commit it if
you like, or just leave it in my local tree forever.

Thanks,
Jacob

-- 
"Me fail English?  That's unpossible!" - R. Wiggum


Index: logout.c
===================================================================
RCS file: /cvs/gnome/gnome-core/gsm/logout.c,v
retrieving revision 1.1
diff -u -r1.1 logout.c
--- logout.c	1999/08/01 22:06:53	1.1
+++ logout.c	1999/08/02 03:33:01
@@ -218,14 +218,12 @@
   gtk_container_set_border_width (GTK_CONTAINER (GNOME_DIALOG (box)->vbox),
 				  GNOME_PAD);
 
-  if (trashing)
-    {
-      toggle_button = gtk_check_button_new_with_label (_("Save current setup"));
-      gtk_widget_show (toggle_button);
-      gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (box)->vbox),
-			  toggle_button,
-			  FALSE, TRUE, 0);
-    }
+  toggle_button = gtk_check_button_new_with_label (_("Save current setup"));
+  gtk_toggle_button_set_active (toggle_button, !trashing);
+  gtk_widget_show (toggle_button);
+  gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (box)->vbox),
+		      toggle_button,
+		      FALSE, TRUE, 0);
 
   ask = gtk_check_button_new_with_label (_("Ask next time"));
   gtk_widget_show (ask);





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