[Xfce4-commits] <xfce4-panel:andrzejr/deskbar-github> windowmenu: use small icon in the icon mode.

Andrzej noreply at xfce.org
Mon Dec 12 11:40:15 CET 2011


Updating branch refs/heads/andrzejr/deskbar-github
         to 39970151e75b59abce1ce458a43fbb1b23c87ae4 (commit)
       from c4e9210701bae4a99cbaca5e7525efd655d3ad02 (commit)

commit 39970151e75b59abce1ce458a43fbb1b23c87ae4
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Sat Nov 12 04:26:55 2011 +0900

    windowmenu: use small icon in the icon mode.

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

diff --git a/plugins/windowmenu/windowmenu.c b/plugins/windowmenu/windowmenu.c
index 344478a..0e5ac42 100644
--- a/plugins/windowmenu/windowmenu.c
+++ b/plugins/windowmenu/windowmenu.c
@@ -520,11 +520,13 @@ window_menu_plugin_size_changed (XfcePanelPlugin *panel_plugin,
   if (plugin->button_style == BUTTON_STYLE_ICON)
     {
       /* square the plugin */
-      gtk_widget_set_size_request (GTK_WIDGET (plugin), size, size);
+      /* gtk_widget_set_size_request (GTK_WIDGET (plugin), size, size); */
+      xfce_panel_plugin_set_small (XFCE_PANEL_PLUGIN (plugin), TRUE);
     }
   else
     {
       /* set the size of the arrow button */
+      xfce_panel_plugin_set_small (XFCE_PANEL_PLUGIN (plugin), FALSE);
       if (xfce_panel_plugin_get_orientation (panel_plugin) ==
               GTK_ORIENTATION_HORIZONTAL)
         gtk_widget_set_size_request (GTK_WIDGET (plugin),


More information about the Xfce4-commits mailing list