Re: [Fwd: [Usability]No|Yes in logout]



On Tue, 2002-04-16 at 22:42, Murray Cumming wrote:
> I'd like to change the [No] [Yes] buttons in the logout dialog to
> [Cancel] [Logout]. I'm asking because I'm surprised that it hasn't been
> done already 

Here's a gnome-session patch to do this. Could someone test it for me?
I'm running Ximian's GNOME2 snapshots on RedHat7.2, but I've no idea how
to make my system use my vicious-build-scripts stuff instead.

-- 
Murray Cumming
murrayc usa net
www.murrayc.com
? autom4te.cache
? gnome-session.kdevprj
? gnome-session.kdevses
? logout.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-session/ChangeLog,v
retrieving revision 1.421
diff -u -p -r1.421 ChangeLog
--- ChangeLog	15 Apr 2002 15:16:40 -0000	1.421
+++ ChangeLog	16 Apr 2002 20:18:21 -0000
@@ -1,3 +1,8 @@
+2002-04-16  Murray Cumming  <murrayc usa net>
+
+	* gnome-session/logout.c: Changed Logout dialog's
+	[No] [Yes] buttons to [Cancel] [Logout].
+
 2002-04-15  Mark McLoughlin  <mark skynet ie>
 
 	* configure.in: Version 1.5.16.
Index: gnome-session/logout.c
===================================================================
RCS file: /cvs/gnome/gnome-session/gnome-session/logout.c,v
retrieving revision 1.27
diff -u -p -r1.27 logout.c
--- gnome-session/logout.c	22 Mar 2002 13:35:05 -0000	1.27
+++ gnome-session/logout.c	16 Apr 2002 20:18:21 -0000
@@ -227,14 +227,16 @@ display_gui (void)
 
   box = gtk_message_dialog_new (NULL, 0,
 				GTK_MESSAGE_QUESTION,
-				GTK_BUTTONS_YES_NO,
+				GTK_BUTTONS_NONE,
 				_("Really log out?"));
 
+  gtk_dialog_add_button (GTK_DIALOG (box), "Logout", GTK_RESPONSE_YES) ;
+  gtk_dialog_add_button (GTK_DIALOG (box), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
   gtk_dialog_add_button (GTK_DIALOG (box), GTK_STOCK_HELP, GTK_RESPONSE_HELP);
 		  	     
   g_object_set (G_OBJECT (box), "type", GTK_WINDOW_POPUP, NULL);
 
-  gtk_dialog_set_default_response (GTK_DIALOG (box), GTK_RESPONSE_NO);
+  gtk_dialog_set_default_response (GTK_DIALOG (box), GTK_RESPONSE_CANCEL);
   gtk_window_set_position (GTK_WINDOW (box), GTK_WIN_POS_CENTER);
   gtk_window_set_policy (GTK_WINDOW (box), FALSE, FALSE, TRUE);
 
@@ -326,7 +328,7 @@ display_gui (void)
       retval = TRUE;
       break;
     default:
-    case GTK_RESPONSE_NO:
+    case GTK_RESPONSE_CANCEL:
       retval= FALSE;
       break;
     case GTK_RESPONSE_HELP:


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