aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-12-16 20:24:03 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-12-16 20:24:03 +0800
commit40082bdc4011d04b96a37d36b21f70eb938d1c31 (patch)
tree5a0347141b3f540ed962f4c6dccc83e909cc172c
parent8331d8cacf9b872ba36d86678b3ebb3700671528 (diff)
downloadgsoc2013-evolution-40082bdc4011d04b96a37d36b21f70eb938d1c31.tar
gsoc2013-evolution-40082bdc4011d04b96a37d36b21f70eb938d1c31.tar.gz
gsoc2013-evolution-40082bdc4011d04b96a37d36b21f70eb938d1c31.tar.bz2
gsoc2013-evolution-40082bdc4011d04b96a37d36b21f70eb938d1c31.tar.lz
gsoc2013-evolution-40082bdc4011d04b96a37d36b21f70eb938d1c31.tar.xz
gsoc2013-evolution-40082bdc4011d04b96a37d36b21f70eb938d1c31.tar.zst
gsoc2013-evolution-40082bdc4011d04b96a37d36b21f70eb938d1c31.zip
** Fix for bug #359010
2008-12-16 Milan Crha <mcrha@redhat.com> ** 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
-rw-r--r--plugins/publish-calendar/ChangeLog7
-rw-r--r--plugins/publish-calendar/url-editor-dialog.c6
2 files changed, 13 insertions, 0 deletions
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 <mcrha@redhat.com>
+
+ ** 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 <psankar@novell.com>
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 <libedataserverui/e-passwords.h>
#include <libedataserver/e-url.h>
#include <glib.h>
+#include <glib/gi18n.h>
#include <string.h>
#include <e-util/e-util-private.h>
@@ -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);