aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJain Vivek <jvivek@src.gnome.org>2004-12-13 11:58:16 +0800
committerJain Vivek <jvivek@src.gnome.org>2004-12-13 11:58:16 +0800
commit102f8ffa61a356bfe57669f7540d836d29758cec (patch)
tree7cc5dfbbe685191a74724d8de1801219e5a77b36 /calendar/gui
parent531170207903c208b13369328ed61433a45c5ba7 (diff)
downloadgsoc2013-evolution-102f8ffa61a356bfe57669f7540d836d29758cec.tar
gsoc2013-evolution-102f8ffa61a356bfe57669f7540d836d29758cec.tar.gz
gsoc2013-evolution-102f8ffa61a356bfe57669f7540d836d29758cec.tar.bz2
gsoc2013-evolution-102f8ffa61a356bfe57669f7540d836d29758cec.tar.lz
gsoc2013-evolution-102f8ffa61a356bfe57669f7540d836d29758cec.tar.xz
gsoc2013-evolution-102f8ffa61a356bfe57669f7540d836d29758cec.tar.zst
gsoc2013-evolution-102f8ffa61a356bfe57669f7540d836d29758cec.zip
+2004-12-10 Vivek Jain <jvivek@novell.com>
* gui/dialogs/calendar-setup.c : Changed the window title based upon the source. svn path=/trunk/; revision=28112
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/calendar-setup.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c
index f848504981..3ae732cab3 100644
--- a/calendar/gui/dialogs/calendar-setup.c
+++ b/calendar/gui/dialogs/calendar-setup.c
@@ -371,7 +371,6 @@ calendar_setup_edit_calendar (struct _GtkWindow *parent, ESource *source, ESourc
} else {
GConfClient *gconf;
GSList *l;
-
sdialog->source = e_source_new ("", "");
gconf = gconf_client_get_default ();
sdialog->source_list = e_source_list_new_for_gconf (gconf, "/apps/evolution/calendar/sources");
@@ -397,8 +396,11 @@ calendar_setup_edit_calendar (struct _GtkWindow *parent, ESource *source, ESourc
target = e_cal_config_target_new_source (ec, sdialog->source);
e_config_set_target ((EConfig *) ec, (EConfigTarget *) target);
- sdialog->window = e_config_create_window ((EConfig *)ec, NULL, _("Calendar Properties"));
-
+ if (source)
+ sdialog->window = e_config_create_window ((EConfig *)ec, NULL, _("Calendar Properties"));
+ else
+ sdialog->window = e_config_create_window ((EConfig *)ec, NULL, _("New Calendar"));
+
/* forces initial validation */
if (!sdialog->original_source)
e_config_target_changed ((EConfig *)ec, E_CONFIG_TARGET_CHANGED_STATE);