[Xfce4-commits] [xfce/xfce4-power-manager] 18/64: Make the Preferences... button flat to fit in

noreply at xfce.org noreply at xfce.org
Mon May 26 06:00:13 CEST 2014


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 5cd4001a81d65f455add520d869191393291e2a0
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Fri May 2 16:39:33 2014 +0300

    Make the Preferences... button flat to fit in
---
 panel-plugins/battery/battery-button.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/panel-plugins/battery/battery-button.c b/panel-plugins/battery/battery-button.c
index 7f36bc6..a25df7f 100644
--- a/panel-plugins/battery/battery-button.c
+++ b/panel-plugins/battery/battery-button.c
@@ -749,7 +749,9 @@ battery_button_create_popup (BatteryButton *button)
     gtk_box_pack_start (GTK_BOX (box), button->priv->treeview, TRUE, TRUE, 0);
 
     /* Preferences option */
-    option_button = gtk_button_new_from_stock (GTK_STOCK_PREFERENCES);
+    option_button = gtk_button_new_with_mnemonic ("_Preferences...");
+    gtk_button_set_relief (GTK_BUTTON(option_button), GTK_RELIEF_NONE);
+    gtk_button_set_focus_on_click (GTK_BUTTON(option_button), FALSE);
     g_signal_connect (option_button, "clicked",G_CALLBACK (preferences_cb), button);
 
     gtk_box_pack_start (GTK_BOX (box), option_button, TRUE, TRUE, 1);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list