[Xfce4-commits] [xfce/xfdesktop] 01/01: Add padding to Window Actions menu entry (Bug #14628)
noreply at xfce.org
noreply at xfce.org
Thu Jul 11 04:25:18 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e 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/xfdesktop.
commit 7328581b30410d7e29e68ee5d356d9627feaa544
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date: Tue Jul 9 15:04:04 2019 +0200
Add padding to Window Actions menu entry (Bug #14628)
---
src/xfdesktop-window-icon.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/xfdesktop-window-icon.c b/src/xfdesktop-window-icon.c
index f6e4396..b2c490f 100644
--- a/src/xfdesktop-window-icon.c
+++ b/src/xfdesktop-window-icon.c
@@ -29,6 +29,7 @@
#include <libwnck/libwnck.h>
#include <libxfce4ui/libxfce4ui.h>
+#include "xfdesktop-common.h"
#include "xfdesktop-window-icon.h"
struct _XfdesktopWindowIconPrivate
@@ -186,9 +187,10 @@ xfdesktop_window_icon_populate_context_menu(XfdesktopIcon *icon,
{
XfdesktopWindowIcon *window_icon = XFDESKTOP_WINDOW_ICON(icon);
GtkWidget *amenu = wnck_action_menu_new(window_icon->priv->window);
- GtkWidget *mi;
+ GtkWidget *mi, *img;
- mi = gtk_menu_item_new_with_mnemonic(_("_Window Actions"));
+ img = gtk_image_new_from_icon_name("", GTK_ICON_SIZE_MENU);
+ mi = xfdesktop_menu_create_menu_item_with_mnemonic(_("_Window Actions"), img);
gtk_menu_item_set_submenu (GTK_MENU_ITEM(mi), amenu);
gtk_menu_shell_append(GTK_MENU_SHELL(menu), mi);
gtk_widget_show_all(mi);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list