[Xfce4-commits] [panel-plugins/xfce4-places-plugin] 01/01: Make the button occupy the whole panel height/width when the label is shown.

noreply at xfce.org noreply at xfce.org
Sat May 17 01:03:03 CEST 2014


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

andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-places-plugin.

commit 7da5196d162cacd196371048bcb8a64091430a99
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Sat May 17 00:02:52 2014 +0100

    Make the button occupy the whole panel height/width when the label is shown.
---
 panel-plugin/button.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/button.c b/panel-plugin/button.c
index 50824eb..5925c80 100644
--- a/panel-plugin/button.c
+++ b/panel-plugin/button.c
@@ -460,18 +460,15 @@ places_button_resize(PlacesButton *self)
 
     new_size /= nrows;
 
-    if (show_label) {
 #ifdef HAS_PANEL_49
-        xfce_panel_plugin_set_small (self->plugin, deskbar ? FALSE : TRUE);
+    xfce_panel_plugin_set_small (self->plugin, !show_label);
 #endif
+    if (show_label) {
         if (vertical)
           gtk_alignment_set (GTK_ALIGNMENT (self->alignment), 0.5, 0.0, 0.0, 1.0);
         else
           gtk_alignment_set (GTK_ALIGNMENT (self->alignment), 0.0, 0.5, 1.0, 0.0);
     } else {
-#ifdef HAS_PANEL_49
-        xfce_panel_plugin_set_small(self->plugin, TRUE);
-#endif
         gtk_alignment_set (GTK_ALIGNMENT (self->alignment), 0.5, 0.5, 1.0, 1.0);
     }
 

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


More information about the Xfce4-commits mailing list