Better debug information, realize the correct widget.
authorIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Mon, 15 Sep 2008 12:21:40 +0000 (15:21 +0300)
committerIlpo Ruotsalainen <ilpo.ruotsalainen@movial.fi>
Mon, 15 Sep 2008 12:21:40 +0000 (15:21 +0300)
isatis-player/player.c

index 86a6724..4ab15f3 100644 (file)
@@ -57,6 +57,7 @@ static gboolean setup_ui(void)
 {
        GtkWidget *window;
        GtkWidget *vbox;
+       GtkWidget *hbox;
        GtkWidget *darea;
 
        if (xid == -1)
@@ -67,7 +68,7 @@ static gboolean setup_ui(void)
        }
        else
        {
-               g_debug("plugging into window");
+               g_debug("plugging into window 0x%x", xid);
 
                window = gtk_plug_new(xid);
 
@@ -76,7 +77,6 @@ static gboolean setup_ui(void)
                g_debug("plug->window = %p", GTK_PLUG(window)->socket_window);
        }
 
-       gtk_widget_realize(window);
 
        vbox = gtk_vbox_new(FALSE, 0);
 
@@ -92,6 +92,7 @@ static gboolean setup_ui(void)
 
        gtk_widget_show_all(window);
 
+       gtk_widget_realize(darea);
        xid = GDK_WINDOW_XWINDOW(darea->window);
 
        g_debug("video pane xid = 0x%x", xid);