[Xfce4-commits] <thunar:master> Show full template filename in menu (bug #6140).
Nick Schermer
noreply at xfce.org
Wed Sep 26 21:10:01 CEST 2012
Updating branch refs/heads/master
to 44cc46cdbb60dd6d3ba450f38121b9a6aad85c2a (commit)
from 9ceae105dce96ed03b77c2fe7adcfd7dd8c54fd8 (commit)
commit 44cc46cdbb60dd6d3ba450f38121b9a6aad85c2a
Author: Mike Massonnet <mmassonnet at gmail.com>
Date: Wed Sep 26 21:07:44 2012 +0200
Show full template filename in menu (bug #6140).
Quite often template names are easier to understand when
the extension is shown.
thunar/thunar-templates-action.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/thunar/thunar-templates-action.c b/thunar/thunar-templates-action.c
index c700d21..0951c81 100644
--- a/thunar/thunar-templates-action.c
+++ b/thunar/thunar-templates-action.c
@@ -321,8 +321,6 @@ thunar_templates_action_files_ready (ThunarJob *job,
GList *items = NULL;
GList *parent_menus = NULL;
GList *pp;
- gchar *label;
- gchar *dot;
/* determine the menu to add the items and submenus to */
menu = g_object_get_data (G_OBJECT (job), "menu");
@@ -365,14 +363,8 @@ thunar_templates_action_files_ready (ThunarJob *job,
}
else
{
- /* generate a label by stripping off the extension */
- label = g_strdup (thunar_file_get_display_name (file));
- dot = g_utf8_strrchr (label, -1, '.');
- if (G_LIKELY (dot != NULL))
- *dot = '\0';
-
/* allocate a new menu item */
- item = gtk_image_menu_item_new_with_label (label);
+ item = gtk_image_menu_item_new_with_label (thunar_file_get_display_name (file));
g_object_set_data_full (G_OBJECT (item), I_("thunar-file"),
g_object_ref (file), g_object_unref);
g_signal_connect (item, "activate", G_CALLBACK (item_activated),
More information about the Xfce4-commits
mailing list