From aab35cf3a61797f5edc6d9af7dd416821a2a0c5c Mon Sep 17 00:00:00 2001 From: Mike Massonnet Date: Thu, 1 Apr 2010 09:15:49 +0200 Subject: [PATCH] Don't strip filenames extension in templates menu --- thunar/thunar-templates-action.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/thunar/thunar-templates-action.c b/thunar/thunar-templates-action.c index 2202dc5..deaaaf7 100644 --- a/thunar/thunar-templates-action.c +++ b/thunar/thunar-templates-action.c @@ -322,7 +322,6 @@ thunar_templates_action_files_ready (ThunarJob *job, 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"); @@ -367,9 +366,6 @@ thunar_templates_action_files_ready (ThunarJob *job, { /* 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); -- 1.7.0.3