From 65832ae230ade85083c5cd9738f5f05c7fd94fad Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 25 Dec 2006 12:29:35 +0000 Subject: [PATCH] Notify the "embedded" property also on normal construction and when 2006-12-25 Christian Persch * 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. --- ChangeLog | 7 +++++++ gtk/gtkplug.c | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3c526aa74a..2cdce168ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-12-25 Christian Persch + + * 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 * gtk/gtkaboutdialog.c: (gtk_about_dialog_class_init), diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c index 499b1e04da..f9ca4eff8a 100644 --- a/gtk/gtkplug.c +++ b/gtk/gtkplug.c @@ -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)