[Xfce4-commits] [xfce/thunar] 01/01: Restore "Empty File" menu icon (Bug #15540)
noreply at xfce.org
noreply at xfce.org
Mon Jun 3 23:08:47 CEST 2019
This is an automated email from the git hooks/post-receive script.
a l e x 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/thunar.
commit 6956d955dd0dd6dae856506291d85f0f2fbf18d8
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date: Tue May 28 15:16:50 2019 +0200
Restore "Empty File" menu icon (Bug #15540)
---
thunar/thunar-templates-action.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/thunar/thunar-templates-action.c b/thunar/thunar-templates-action.c
index 35df13d..c60956c 100644
--- a/thunar/thunar-templates-action.c
+++ b/thunar/thunar-templates-action.c
@@ -472,6 +472,7 @@ static void
thunar_templates_action_load_finished (GtkWidget *menu,
ThunarTemplatesAction *templates_action)
{
+ GtkWidget *image;
GtkWidget *item;
_thunar_return_if_fail (THUNAR_IS_TEMPLATES_ACTION (templates_action));
@@ -484,11 +485,19 @@ thunar_templates_action_load_finished (GtkWidget *menu,
gtk_widget_show (item);
/* add the "Empty File" item */
- item = gtk_menu_item_new_with_mnemonic (_("_Empty File"));
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ item = gtk_image_menu_item_new_with_mnemonic (_("_Empty File"));
+G_GNUC_END_IGNORE_DEPRECATIONS
g_signal_connect (G_OBJECT (item), "activate", G_CALLBACK (item_activated),
templates_action);
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
gtk_widget_show (item);
+
+ /* add the icon for the emtpy file item */
+ image = gtk_image_new_from_icon_name ("text-x-generic", GTK_ICON_SIZE_MENU);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
+G_GNUC_END_IGNORE_DEPRECATIONS
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list