From 500bed2bfa75ee80c2697d7ad0ecb8d4a51d98ab Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Tue, 8 May 2012 12:10:02 +0200 Subject: [PATCH] set small property to TRUE unless in deskbar mode and the title is visible --- plugins/applicationsmenu/applicationsmenu.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/plugins/applicationsmenu/applicationsmenu.c b/plugins/applicationsmenu/applicationsmenu.c index efe1c30..9701360 100644 --- a/plugins/applicationsmenu/applicationsmenu.c +++ b/plugins/applicationsmenu/applicationsmenu.c @@ -413,6 +413,7 @@ applications_menu_plugin_construct (XfcePanelPlugin *panel_plugin) xfce_panel_plugin_menu_show_configure (XFCE_PANEL_PLUGIN (plugin)); + xfce_panel_plugin_set_small (XFCE_PANEL_PLUGIN(panel_plugin), TRUE); /* bind all properties */ panel_properties_bind (NULL, G_OBJECT (plugin), xfce_panel_plugin_get_property_base (panel_plugin), @@ -515,6 +516,12 @@ applications_menu_plugin_size_changed (XfcePanelPlugin *panel_plugin, gtk_orientable_set_orientation (GTK_ORIENTABLE (plugin->box), orientation); + /* disable the "small" property in the deskbar mode and the title visible */ + if (G_UNLIKELY (plugin->show_button_title && mode == XFCE_PANEL_PLUGIN_MODE_DESKBAR)) + xfce_panel_plugin_set_small (XFCE_PANEL_PLUGIN (plugin), FALSE); + else + xfce_panel_plugin_set_small (XFCE_PANEL_PLUGIN (plugin), TRUE); + return TRUE; } -- 1.7.6