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

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


Updating branch refs/heads/master
         to 9a10190ffbe3d219648c0ed47472dee33d47766e (commit)
       from d4210bb2a179f8178ca0c4e6862c86a207ee7586 (commit)

commit 9a10190ffbe3d219648c0ed47472dee33d47766e
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Dec 12 20:28:59 2011 +0100

    Launcher: Set the small property.

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

diff --git a/plugins/launcher/launcher.c b/plugins/launcher/launcher.c
index b2354a3..82d1daa 100644
--- a/plugins/launcher/launcher.c
+++ b/plugins/launcher/launcher.c
@@ -1002,7 +1002,9 @@ launcher_plugin_construct (XfcePanelPlugin *panel_plugin)
   };
 
   /* show the configure menu item */
-  xfce_panel_plugin_menu_show_configure (XFCE_PANEL_PLUGIN (plugin));
+  xfce_panel_plugin_menu_show_configure (panel_plugin);
+
+  xfce_panel_plugin_set_small (panel_plugin, TRUE);
 
   /* lookup the config directory where this launcher stores it's desktop files */
   file = g_strdup_printf (RELATIVE_CONFIG_PATH,
@@ -1237,6 +1239,7 @@ launcher_plugin_size_changed (XfcePanelPlugin *panel_plugin,
   LauncherArrowType  arrow_position;
 
   /* initialize the plugin size */
+  size /= xfce_panel_plugin_get_nrows (panel_plugin);
   p_width = p_height = size;
   a_width = a_height = -1;
 


More information about the Xfce4-commits mailing list