evolution r36902 - trunk/plugins/publish-calendar



Author: mcrha
Date: Tue Dec 16 12:24:03 2008
New Revision: 36902
URL: http://svn.gnome.org/viewvc/evolution?rev=36902&view=rev

Log:
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.



Modified:
   trunk/plugins/publish-calendar/ChangeLog
   trunk/plugins/publish-calendar/url-editor-dialog.c

Modified: trunk/plugins/publish-calendar/url-editor-dialog.c
==============================================================================
--- trunk/plugins/publish-calendar/url-editor-dialog.c	(original)
+++ trunk/plugins/publish-calendar/url-editor-dialog.c	Tue Dec 16 12:24:03 2008
@@ -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 @@
 	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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]