[Xfce4-commits] <xfce4-panel:nick/desktop-mode> Launcher: Set the small property.

Nick Schermer noreply at xfce.org
Mon Dec 12 20:30:01 CET 2011


Updating branch refs/heads/nick/desktop-mode
         to 08e233dac6cba81dfc4bc3ffb49295ffa3af201f (commit)
       from 0bbaf53615800b05cfceb9865dafc45a6d633a21 (commit)

commit 08e233dac6cba81dfc4bc3ffb49295ffa3af201f
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