aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-20 18:37:56 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-20 18:37:56 +0800
commite5ffd512cc5e2b633be9c51d20c9a79cddf0aa53 (patch)
treeb8fe6828357d47deec035fc1913113783cb25275 /addressbook
parent563ca6075aaed1bfd08f984aefd6facb82f3107e (diff)
downloadgsoc2013-evolution-e5ffd512cc5e2b633be9c51d20c9a79cddf0aa53.tar.gz
gsoc2013-evolution-e5ffd512cc5e2b633be9c51d20c9a79cddf0aa53.tar.zst
gsoc2013-evolution-e5ffd512cc5e2b633be9c51d20c9a79cddf0aa53.zip
Repeatedly call gtk_main_quit here as long as there is a main loop around.
2001-10-20 Christopher James Lahey <clahey@ximian.com> * gui/component/addressbook-component.c (owner_unset_cb): Repeatedly call gtk_main_quit here as long as there is a main loop around. This is an ugly hack around Ximian bug #11760. svn path=/trunk/; revision=13821
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/component/addressbook-component.c12
2 files changed, 16 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 301c492dcf..f7ab9730b6 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,11 @@
2001-10-20 Christopher James Lahey <clahey@ximian.com>
+ * gui/component/addressbook-component.c (owner_unset_cb):
+ Repeatedly call gtk_main_quit here as long as there is a main loop
+ around. This is an ugly hack around Ximian bug #11760.
+
+2001-10-20 Christopher James Lahey <clahey@ximian.com>
+
* gui/component/select-names/e-select-names.c: Added #include
<gal/widgets/e-unicode.h>.
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index b9f0a57e27..c0f834f08c 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -264,14 +264,22 @@ owner_set_cb (EvolutionShellComponent *shell_component,
addressbook_storage_setup (shell_component, evolution_homedir);
}
+static gboolean
+gtk_main_quit_cb (gpointer closure)
+{
+ gtk_main_quit ();
+ return TRUE;
+}
+
static void
owner_unset_cb (EvolutionShellComponent *shell_component,
GNOME_Evolution_Shell shell_interface,
gpointer user_data)
{
owner_count --;
- if (owner_count == 0)
- gtk_main_quit();
+ if (owner_count == 0) {
+ g_idle_add (gtk_main_quit_cb, NULL);
+ }
}
/* FIXME We should perhaps take the time to figure out if the book is editable. */