From 34c5e8ff0832886205484355caa01d3c1931107f Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 31 Dec 2004 21:43:04 +0000 Subject: Save a strdup. 2004-12-31 Christian Persch * src/bookmarks/ephy-bookmarks-editor.c: (delete_topic_dialog_construct): Save a strdup. --- ChangeLog | 6 ++++++ src/bookmarks/ephy-bookmarks-editor.c | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1a4430213..cae7d2a24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-31 Christian Persch + + * src/bookmarks/ephy-bookmarks-editor.c: (delete_topic_dialog_construct): + + Save a strdup. + 2004-12-31 Christian Persch * src/ephy-notebook.c: (tab_label_style_set_cb): diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 514e51280..947d31911 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -458,17 +458,13 @@ delete_topic_dialog_construct (GtkWindow *parent, const char *topic) { GtkWidget *dialog; - char *str; - - str = g_strdup_printf (_("Delete topic %s?"), topic); dialog = gtk_message_dialog_new (GTK_WINDOW (parent), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_CANCEL, - str); - - g_free (str); + _("Delete topic \"%s\"?"), + topic); gtk_window_set_title (GTK_WINDOW (dialog), _("Delete this topic?")); gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), -- cgit v1.2.3