fix the calendar not exiting with a gross hack because i don't have time

2001-07-11  JP Rosevear  <jpr@ximian.com>

	* gui/component-factory.c: fix the calendar not exiting with a
	gross hack because i don't have time to fix the ref counting right
	now

svn path=/trunk/; revision=11022
This commit is contained in:
JP Rosevear
2001-07-12 00:02:32 +00:00
committed by JP Rosevear
parent 768ef5c60b
commit ac4fa265eb
3 changed files with 42 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-07-11 JP Rosevear <jpr@ximian.com>
* gui/component-factory.c: fix the calendar not exiting with a
gross hack because i don't have time to fix the ref counting right
now
2001-07-11 JP Rosevear <jpr@ximian.com>
* gui/dialogs/meeting-page.c: be careful about adding and

View File

@ -288,8 +288,21 @@ owner_set_cb (EvolutionShellComponent *shell_component,
tasks_migrate ();
migrated = TRUE;
}
shells = g_list_append (shells, shell_component);
}
static void
owner_unset_cb (EvolutionShellComponent *shell_component,
gpointer user_data)
{
shells = g_list_remove (shells, shell_component);
if (g_list_length (shells) == 0)
gtk_main_quit ();
}
#if 0
static void
destroy_cb (EvolutionShellComponent *shell_component,
gpointer user_data)
@ -299,6 +312,7 @@ destroy_cb (EvolutionShellComponent *shell_component,
if (g_list_length (shells) == 0)
gtk_main_quit ();
}
#endif
/* The factory function. */
@ -321,10 +335,14 @@ factory_fn (BonoboGenericFactory *factory,
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set",
GTK_SIGNAL_FUNC (owner_set_cb), NULL);
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_unset",
GTK_SIGNAL_FUNC (owner_unset_cb), NULL);
#if 0
gtk_signal_connect (GTK_OBJECT (shell_component), "destroy",
GTK_SIGNAL_FUNC (destroy_cb), NULL);
shells = g_list_append (shells, shell_component);
#endif
return BONOBO_OBJECT (shell_component);
}

View File

@ -288,8 +288,21 @@ owner_set_cb (EvolutionShellComponent *shell_component,
tasks_migrate ();
migrated = TRUE;
}
shells = g_list_append (shells, shell_component);
}
static void
owner_unset_cb (EvolutionShellComponent *shell_component,
gpointer user_data)
{
shells = g_list_remove (shells, shell_component);
if (g_list_length (shells) == 0)
gtk_main_quit ();
}
#if 0
static void
destroy_cb (EvolutionShellComponent *shell_component,
gpointer user_data)
@ -299,6 +312,7 @@ destroy_cb (EvolutionShellComponent *shell_component,
if (g_list_length (shells) == 0)
gtk_main_quit ();
}
#endif
/* The factory function. */
@ -321,10 +335,14 @@ factory_fn (BonoboGenericFactory *factory,
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set",
GTK_SIGNAL_FUNC (owner_set_cb), NULL);
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_unset",
GTK_SIGNAL_FUNC (owner_unset_cb), NULL);
#if 0
gtk_signal_connect (GTK_OBJECT (shell_component), "destroy",
GTK_SIGNAL_FUNC (destroy_cb), NULL);
shells = g_list_append (shells, shell_component);
#endif
return BONOBO_OBJECT (shell_component);
}