[Xfce4-commits] <xfce4-panel:nick/desktop-mode> Windowmenu: Set the small property.
Nick Schermer
noreply at xfce.org
Sun Dec 11 21:18:09 CET 2011
Updating branch refs/heads/nick/desktop-mode
to 041f143f0fdc713b86e847c4c12f4979ea63dca9 (commit)
from fb8e921273bb57de70df445b9c8b5e67d43e3385 (commit)
commit 041f143f0fdc713b86e847c4c12f4979ea63dca9
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