From 963067da7876ede0ddbaa91db48e3443b24e94ed Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 18 May 2007 15:48:43 +0000 Subject: [PATCH] Mark string for translation. (#439437) 2007-05-18 Emmanuele Bassi * gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark string for translation. (#439437) svn path=/trunk/; revision=17865 --- ChangeLog | 5 +++++ gtk/gtkrecentchooserdefault.c | 22 +++++++--------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7a24b1dae6..a4a2bc81ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-18 Emmanuele Bassi + + * gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark + string for translation. (#439437) + 2007-05-18 Matthias Clasen * gtk/gtkwindow.c (gtk_window_set_transient_for): Fix diff --git a/gtk/gtkrecentchooserdefault.c b/gtk/gtkrecentchooserdefault.c index 6c61a1750e..3cd4d6a4d7 100644 --- a/gtk/gtkrecentchooserdefault.c +++ b/gtk/gtkrecentchooserdefault.c @@ -971,11 +971,8 @@ recent_meta_data_func (GtkTreeViewColumn *tree_column, gpointer user_data) { GtkRecentInfo *info = NULL; - gchar *uri; - gchar *name; - GString *data; - - data = g_string_new (NULL); + gchar *uri, *name; + gchar *str; gtk_tree_model_get (model, iter, RECENT_DISPLAY_NAME_COLUMN, &name, @@ -987,18 +984,13 @@ recent_meta_data_func (GtkTreeViewColumn *tree_column, if (!name) name = gtk_recent_info_get_short_name (info); - - g_string_append_printf (data, - "%s\n" - "Location: %s", - name, - uri); + + str = g_strconcat ("", name, "\n", + "", _("Location:"), " ", uri, "", + NULL); - g_object_set (cell, - "markup", data->str, - NULL); + g_object_set (cell, "markup", str, NULL); - g_string_free (data, TRUE); g_free (uri); g_free (name); gtk_recent_info_unref (info);