Notify the "embedded" property also on normal construction and when

2006-12-25  Christian Persch  <chpe@cvs.gnome.org>

	* gtk/gtkplug.c: (gtk_plug_construct_for_display),
	(gtk_plug_unrealize): Notify the "embedded" property also on
	normal construction and when destroying the socket window.
	Bug #388738.
This commit is contained in:
Christian Persch 2006-12-25 12:29:35 +00:00 committed by Christian Persch
parent bcab1eb30b
commit 65832ae230
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2006-12-25 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkplug.c: (gtk_plug_construct_for_display),
(gtk_plug_unrealize): Notify the "embedded" property also on
normal construction and when destroying the socket window.
Bug #388738.
2006-12-25 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init),

View File

@ -422,8 +422,11 @@ gtk_plug_construct_for_display (GtkPlug *plug,
}
}
if (plug->socket_window)
if (plug->socket_window) {
g_signal_emit (plug, plug_signals[EMBEDDED], 0);
g_object_notify (G_OBJECT (plug), "embedded");
}
}
}
@ -493,6 +496,8 @@ gtk_plug_unrealize (GtkWidget *widget)
gdk_window_set_user_data (plug->socket_window, NULL);
g_object_unref (plug->socket_window);
plug->socket_window = NULL;
g_object_notify (G_OBJECT (widget), "embedded");
}
if (!plug->same_app)