diff options
author | Radek Doulik <rodo@ximian.com> | 2004-01-15 22:56:26 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2004-01-15 22:56:26 +0800 |
commit | 61b6bc071892caa59936667f65bdfce881f8889b (patch) | |
tree | c01ae48703bfacd951aff3ec0bdd620ed51747af /calendar/gui | |
parent | f9377c48533c15010ef9a76c8d6126ebe4732f88 (diff) | |
download | gsoc2013-evolution-61b6bc071892caa59936667f65bdfce881f8889b.tar gsoc2013-evolution-61b6bc071892caa59936667f65bdfce881f8889b.tar.gz gsoc2013-evolution-61b6bc071892caa59936667f65bdfce881f8889b.tar.bz2 gsoc2013-evolution-61b6bc071892caa59936667f65bdfce881f8889b.tar.lz gsoc2013-evolution-61b6bc071892caa59936667f65bdfce881f8889b.tar.xz gsoc2013-evolution-61b6bc071892caa59936667f65bdfce881f8889b.tar.zst gsoc2013-evolution-61b6bc071892caa59936667f65bdfce881f8889b.zip |
reset create_ecal
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
svn path=/trunk/; revision=24239
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/calendar-component.c | 7 | ||||
-rw-r--r-- | calendar/gui/tasks-component.c | 7 |
2 files changed, 14 insertions, 0 deletions
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); } |