From 40082bdc4011d04b96a37d36b21f70eb938d1c31 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 16 Dec 2008 12:24:03 +0000 Subject: ** Fix for bug #359010 2008-12-16 Milan Crha ** Fix for bug #359010 * url-editor-dialog.c: (url_editor_dialog_new): Set title of the window based on the parameter/action. svn path=/trunk/; revision=36902 --- plugins/publish-calendar/ChangeLog | 7 +++++++ plugins/publish-calendar/url-editor-dialog.c | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/plugins/publish-calendar/ChangeLog b/plugins/publish-calendar/ChangeLog index fa6c292d11..ad18f9331a 100644 --- a/plugins/publish-calendar/ChangeLog +++ b/plugins/publish-calendar/ChangeLog @@ -1,3 +1,10 @@ +2008-12-16 Milan Crha + + ** Fix for bug #359010 + + * url-editor-dialog.c: (url_editor_dialog_new): + Set title of the window based on the parameter/action. + 2008-10-03 Sankar P License Changes diff --git a/plugins/publish-calendar/url-editor-dialog.c b/plugins/publish-calendar/url-editor-dialog.c index abcd1ede38..8e1c735dc3 100644 --- a/plugins/publish-calendar/url-editor-dialog.c +++ b/plugins/publish-calendar/url-editor-dialog.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -456,6 +457,11 @@ url_editor_dialog_new (GtkTreeModel *url_list_model, EPublishUri *uri) dialog->url_list_model = g_object_ref (url_list_model); dialog->uri = uri; + if (!uri) + gtk_window_set_title (GTK_WINDOW (dialog), _("New Location")); + else + gtk_window_set_title (GTK_WINDOW (dialog), _("Edit Location")); + if (url_editor_dialog_construct (dialog)) return GTK_WIDGET (dialog); -- cgit