Emission hooks for parent-set signal.(cont.)
- From: Yu Feng <fengy indiana edu>
- To: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Emission hooks for parent-set signal.(cont.)
- Date: Mon, 06 Oct 2008 04:12:22 -0400
static void
gtk_window_destroy (GtkObject *object)
{
GtkWindow *window = GTK_WINDOW (object);
toplevel_list = g_slist_remove (toplevel_list, window);
if (window->transient_parent)
gtk_window_set_transient_for (window, NULL);
/* frees the icons */
gtk_window_set_icon_list (window, NULL);
if (window->has_user_ref_count)
{
window->has_user_ref_count = FALSE;
g_object_unref (window);
}
if (window->group)
gtk_window_group_remove_window (window->group, window);
gtk_window_free_key_hash (window);
GTK_OBJECT_CLASS (gtk_window_parent_class)->destroy (object);
}
Maybe moving the ->destroy line to the beginning of this function can fix the problem?
Yu
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]