[Xfce4-commits] <xfce4-session:master> Add accelerators to logout dialog buttons (bug #6982).

Jérôme Guelfucci noreply at xfce.org
Tue Feb 15 17:02:01 CET 2011


Updating branch refs/heads/master
         to 9f63340116716d4fefe7faef4bf0a2b2cc8e23c3 (commit)
       from 56d1b4f4db7b9e0a2f129bd1247a53e1b2e1a516 (commit)

commit 9f63340116716d4fefe7faef4bf0a2b2cc8e23c3
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Tue Feb 15 16:59:30 2011 +0100

    Add accelerators to logout dialog buttons (bug #6982).

 xfce4-session/shutdown.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/xfce4-session/shutdown.c b/xfce4-session/shutdown.c
index fa4115e..8c386db 100644
--- a/xfce4-session/shutdown.c
+++ b/xfce4-session/shutdown.c
@@ -419,7 +419,7 @@ shutdownDialog(const gchar *sessionName, XfsmShutdownType *shutdownType, gboolea
   gtk_box_pack_start (GTK_BOX (vbox2), image, FALSE, FALSE, 0);
   g_object_unref (icon);
 
-  label = gtk_label_new (_("Log Out"));
+  label = gtk_label_new_with_mnemonic (_("_Log Out"));
   gtk_widget_show (label);
   gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE, FALSE, 0);
 
@@ -454,7 +454,7 @@ shutdownDialog(const gchar *sessionName, XfsmShutdownType *shutdownType, gboolea
   gtk_box_pack_start (GTK_BOX (vbox2), image, FALSE, FALSE, 0);
   g_object_unref (icon);
 
-  label = gtk_label_new (_("Restart"));
+  label = gtk_label_new_with_mnemonic (_("_Restart"));
   gtk_widget_show (label);
   gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE, FALSE, 0);
 
@@ -496,7 +496,7 @@ shutdownDialog(const gchar *sessionName, XfsmShutdownType *shutdownType, gboolea
   gtk_box_pack_start (GTK_BOX (vbox2), image, FALSE, FALSE, 0);
   g_object_unref (icon);
 
-  label = gtk_label_new (_("Shut Down"));
+  label = gtk_label_new_with_mnemonic (_("_Shut Down"));
   gtk_widget_show (label);
   gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE, FALSE, 0);
 
@@ -558,7 +558,7 @@ shutdownDialog(const gchar *sessionName, XfsmShutdownType *shutdownType, gboolea
       gtk_box_pack_start (GTK_BOX (vbox2), image, FALSE, FALSE, 0);
       g_object_unref (icon);
 
-      label = gtk_label_new (_("Suspend"));
+      label = gtk_label_new_with_mnemonic (_("Sus_pend"));
       gtk_widget_show (label);
       gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE, FALSE, 0);
     }
@@ -596,7 +596,7 @@ shutdownDialog(const gchar *sessionName, XfsmShutdownType *shutdownType, gboolea
       gtk_box_pack_start (GTK_BOX (vbox2), image, FALSE, FALSE, 0);
       g_object_unref (icon);
 
-      label = gtk_label_new (_("Hibernate"));
+      label = gtk_label_new_with_mnemonic (_("_Hibernate"));
       gtk_widget_show (label);
       gtk_box_pack_start (GTK_BOX (vbox2), label, FALSE, FALSE, 0);
   }



More information about the Xfce4-commits mailing list