[Xfce4-commits] <xfce4-panel:master> Windowmenu: Set the small property.

Nick Schermer noreply at xfce.org
Sat Dec 24 13:10:12 CET 2011


Updating branch refs/heads/master
         to 664f9473f847b11edb2d8be3d008141d8289a4a6 (commit)
       from 0bbdda534d4f3343788dbb583bea87b75929a730 (commit)

commit 664f9473f847b11edb2d8be3d008141d8289a4a6
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Sun Dec 11 16:57:39 2011 +0100

    Windowmenu: Set the small property.

 plugins/windowmenu/windowmenu.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/plugins/windowmenu/windowmenu.c b/plugins/windowmenu/windowmenu.c
index 344478a..c96123a 100644
--- a/plugins/windowmenu/windowmenu.c
+++ b/plugins/windowmenu/windowmenu.c
@@ -329,6 +329,7 @@ window_menu_plugin_set_property (GObject      *object,
             gtk_widget_hide (plugin->icon);
 
           /* update the plugin */
+          xfce_panel_plugin_set_small (panel_plugin, plugin->button_style == BUTTON_STYLE_ICON);
           window_menu_plugin_size_changed (panel_plugin,
               xfce_panel_plugin_get_size (panel_plugin));
           window_menu_plugin_screen_position_changed (panel_plugin,
@@ -451,6 +452,7 @@ window_menu_plugin_construct (XfcePanelPlugin *panel_plugin)
 
   /* show configure */
   xfce_panel_plugin_menu_show_configure (XFCE_PANEL_PLUGIN (plugin));
+  xfce_panel_plugin_set_small (panel_plugin, TRUE);
 
   /* bind all properties */
   panel_properties_bind (NULL, G_OBJECT (plugin),
@@ -520,6 +522,7 @@ window_menu_plugin_size_changed (XfcePanelPlugin *panel_plugin,
   if (plugin->button_style == BUTTON_STYLE_ICON)
     {
       /* square the plugin */
+      size /= xfce_panel_plugin_get_nrows (panel_plugin);
       gtk_widget_set_size_request (GTK_WIDGET (plugin), size, size);
     }
   else


More information about the Xfce4-commits mailing list