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
This commit is contained in:

committed by
Chris Lahey

parent
563ca6075a
commit
e5ffd512cc
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -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. */
|
||||
|
Reference in New Issue
Block a user