From 6f2a8a88d90bcec610b4391d7b5fbf81f5561cfe Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 18 Feb 2003 20:52:38 +0000 Subject: (shortcut_item_new): Get the name from the name, not the type. Fixes #37952, pointed out by Lonnie Borntreger. svn path=/trunk/; revision=19935 --- shell/ChangeLog | 5 +++++ shell/e-shortcuts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 0cf9b331fa..b9b900caf7 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2003-02-18 Ettore Perazzoli + + * e-shortcuts.c (shortcut_item_new): Get the name from the name, + not the type. Fixes #37952, pointed out by Lonnie Borntreger. + 2003-02-17 Chris Toshok * e-shortcuts.c (load_shortcuts): plug memory leak - free path. diff --git a/shell/e-shortcuts.c b/shell/e-shortcuts.c index b950f2ce44..5def82dcdb 100644 --- a/shell/e-shortcuts.c +++ b/shell/e-shortcuts.c @@ -138,7 +138,7 @@ shortcut_item_new (const char *uri, if (name == NULL) new->name = g_path_get_basename (uri); else - new->name = g_strdup (type); + new->name = g_strdup (name); new->uri = g_strdup (uri); new->type = g_strdup (type); -- cgit