diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-07-13 16:34:05 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-07-13 16:34:05 +0000 |
commit | a6f92ce4b04abd38bc56b4080b48879ae6022ab3 (patch) | |
tree | a2c7e42e636fd00077d837a2735118121c1ccc97 /gtk/gtkrecentmanager.c | |
parent | da989212f391c4c10f9b0136bef3167a33239a26 (diff) | |
download | gtk+-a6f92ce4b04abd38bc56b4080b48879ae6022ab3.tar.gz |
Avoid gratitious use of g_strdup_printf().
2007-07-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentmanager.c (get_uri_shortname_for_display): Avoid
gratitious use of g_strdup_printf().
* gtk/gtkrecentchooserdefault.c:
* gtk/gtkrecentchoosermenu.c: Mark some strings for
translation. (#439480, Murray Cumming)
svn path=/trunk/; revision=18465
Diffstat (limited to 'gtk/gtkrecentmanager.c')
-rw-r--r-- | gtk/gtkrecentmanager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index aeb3055195..e9bfa2d469 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -2136,7 +2136,7 @@ get_uri_shortname_for_display (const gchar *uri) rest = get_method_string (uri, &method); local_file = g_filename_display_basename (rest); - name = g_strdup_printf ("%s: %s", method, local_file); + name = g_strconcat (method, ": ", local_file, NULL); g_free (local_file); g_free (method); |