[Xfce4-commits] <xfce4-fsguard-plugin:master> Properly resize image _and_ btn so that the image is not shrinked

Landry Breuil noreply at xfce.org
Sat Jun 30 11:28:15 CEST 2012


Updating branch refs/heads/master
         to f3b0e9a1d8c1cf0c6ce841f45a84e1bc0f136744 (commit)
       from dcd2e7da1fcc623ef817aadf1c94a5504f273694 (commit)

commit f3b0e9a1d8c1cf0c6ce841f45a84e1bc0f136744
Author: Landry Breuil <landry at xfce.org>
Date:   Sat Jun 30 11:10:05 2012 +0200

    Properly resize image _and_ btn so that the image is not shrinked

 panel-plugin/fsguard.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/fsguard.c b/panel-plugin/fsguard.c
index fe83058..8d97574 100644
--- a/panel-plugin/fsguard.c
+++ b/panel-plugin/fsguard.c
@@ -491,8 +491,9 @@ fsguard_set_size (XfcePanelPlugin *plugin, int size, FsGuard *fsguard)
         gtk_widget_set_size_request (GTK_WIDGET(fsguard->progress_bar), -1, 8);
         gtk_widget_set_size_request (GTK_WIDGET(plugin), size, -1);
     }
-    size -= 2 * border_width;
     gtk_widget_set_size_request (fsguard->btn_panel, size, size);
+    size -= 2 * border_width;
+    gtk_widget_set_size_request (fsguard->icon_panel, size, size);
 
     fsguard_refresh_icon (fsguard);
 


More information about the Xfce4-commits mailing list