[Xfce4-commits] [xfce/xfce4-panel] 01/01: launcher: plugin sizing fixes
noreply at xfce.org
noreply at xfce.org
Tue Dec 4 23:21:19 CET 2018
This is an automated email from the git hooks/post-receive script.
a n d r z e j r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit 50ca1e969b1fed44284e1384fdcb1214a48f60a8
Author: Andrzej <andrzejr at xfce.org>
Date: Tue Dec 4 22:21:03 2018 +0000
launcher: plugin sizing fixes
---
plugins/launcher/launcher.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/plugins/launcher/launcher.c b/plugins/launcher/launcher.c
index 3aa64d3..d725f18 100644
--- a/plugins/launcher/launcher.c
+++ b/plugins/launcher/launcher.c
@@ -1299,9 +1299,7 @@ launcher_plugin_size_changed (XfcePanelPlugin *panel_plugin,
case LAUNCHER_ARROW_NORTH:
case LAUNCHER_ARROW_SOUTH:
a_height = ARROW_BUTTON_SIZE;
- if (horizontal)
- p_width -= ARROW_BUTTON_SIZE;
- else
+ if (!horizontal)
p_height += ARROW_BUTTON_SIZE;
break;
@@ -1310,8 +1308,6 @@ launcher_plugin_size_changed (XfcePanelPlugin *panel_plugin,
a_width = ARROW_BUTTON_SIZE;
if (horizontal)
p_width += ARROW_BUTTON_SIZE;
- else
- p_height -= ARROW_BUTTON_SIZE;
break;
default:
@@ -1332,6 +1328,8 @@ launcher_plugin_size_changed (XfcePanelPlugin *panel_plugin,
else {
gint icon_size;
+ gtk_widget_set_size_request (GTK_WIDGET (panel_plugin), p_width, p_height);
+
icon_size = xfce_panel_plugin_get_icon_size (panel_plugin);
/* if the icon is a pixbuf we have to recreate and scale it */
if (plugin->pixbuf != NULL &&
@@ -1348,7 +1346,7 @@ launcher_plugin_size_changed (XfcePanelPlugin *panel_plugin,
}
}
- return FALSE;
+ return TRUE;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list