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 x f c e - 4 . 1 4 in repository xfce/thunar.
commit 6edb44fa6da40f2f99dd5230a12981080ec6e627 Author: Theo Linkspfeifer <[email protected]> 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. _______________________________________________ Xfce4-commits mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-commits
