changeset 91632:370f67c176eb

(xg_create_frame_widgets): If frame is embedded, call gtk_plug_new.
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 07 Feb 2008 14:07:55 +0000
parents bcad1e8fbfa2
children e33a0659fabe
files src/gtkutil.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkutil.c	Thu Feb 07 14:07:45 2008 +0000
+++ b/src/gtkutil.c	Thu Feb 07 14:07:55 2008 +0000
@@ -786,7 +786,11 @@
 
   BLOCK_INPUT;
 
-  wtop = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  if (FRAME_X_EMBEDDED_P (f))
+    wtop = gtk_plug_new (f->output_data.x->parent_desc);
+  else
+    wtop = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+
   xg_set_screen (wtop, f);
 
   wvbox = gtk_vbox_new (FALSE, 0);