aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog4
-rw-r--r--calendar/gui/calendar-component.c7
-rw-r--r--calendar/gui/tasks-component.c7
3 files changed, 18 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 52691a0e08..71b23af741 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,7 +1,11 @@
2004-01-15 Radek Doulik <rodo@ximian.com>
+ * gui/tasks-component.c (primary_source_selection_changed_cb):
+ reset create_ecal
+
* gui/calendar-component.c (impl_requestCreateItem): merge with
JP's changes
+ (primary_source_selection_changed_cb): reset create_ecal
2004-01-14 Radek Doulik <rodo@ximian.com>
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 6baccb487b..e0452088a6 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -361,6 +361,13 @@ static void
primary_source_selection_changed_cb (ESourceSelector *selector,
CalendarComponent *calendar_component)
{
+ CalendarComponentPrivate *priv = calendar_component->priv;
+
+ if (priv->create_ecal) {
+ g_object_unref (priv->create_ecal);
+ priv->create_ecal = NULL;
+ }
+
update_uri_for_primary_selection (calendar_component);
}
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c
index 3472aeb418..7aac4dae0c 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -411,6 +411,13 @@ source_selection_changed_cb (ESourceSelector *selector, TasksComponent *componen
static void
primary_source_selection_changed_cb (ESourceSelector *selector, TasksComponent *component)
{
+ TasksComponentPrivate *priv = component->priv;
+
+ if (priv->create_ecal) {
+ g_object_unref (priv->create_ecal);
+ priv->create_ecal = NULL;
+ }
+
update_uri_for_primary_selection (component);
}