[Xfce4-commits] [xfce/xfce4-panel] 01/01: plugin: Show custom menu items below plugin name
noreply at xfce.org
noreply at xfce.org
Sat Apr 4 21:40:57 CEST 2020
This is an automated email from the git hooks/post-receive script.
o c h o s i 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 0a59e41de031e204eb2b83cd2813542537143783
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sat Apr 4 21:38:17 2020 +0200
plugin: Show custom menu items below plugin name
Previously all custom panel menu items were shown below the "Move"
context menu item.
---
libxfce4panel/xfce-panel-plugin.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index 52159ee..56be944 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -1221,6 +1221,10 @@ xfce_panel_plugin_menu_get (XfcePanelPlugin *plugin)
gtk_widget_set_sensitive (item, FALSE);
gtk_widget_show (item);
+ /* add custom menu items */
+ for (li = plugin->priv->menu_items; li != NULL; li = li->next)
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), GTK_WIDGET (li->data));
+
/* separator */
item = gtk_separator_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
@@ -1273,10 +1277,6 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_widget_show (image);
- /* add custom menu items */
- for (li = plugin->priv->menu_items; li != NULL; li = li->next)
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), GTK_WIDGET (li->data));
-
/* separator */
item = gtk_separator_menu_item_new ();
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list