From 04dfda755dbade7eb591fedcee1e4186212d1653 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 23 Apr 2009 04:14:08 +0200 Subject: [PATCH] Make console panel properly detachable --- panels/midori-console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panels/midori-console.c b/panels/midori-console.c index 0f662ca5..f47227fc 100644 --- a/panels/midori-console.c +++ b/panels/midori-console.c @@ -231,8 +231,8 @@ static void midori_console_hierarchy_changed_cb (MidoriConsole* console, GtkWidget* old_parent) { - GtkWidget* browser = gtk_widget_get_toplevel (GTK_WIDGET (console)); - if (GTK_WIDGET_TOPLEVEL (browser)) + MidoriBrowser* browser = midori_browser_get_for_widget (GTK_WIDGET (console)); + if (MIDORI_IS_BROWSER (browser)) g_signal_connect (browser, "add-tab", G_CALLBACK (midori_console_browser_add_tab_cb), console); } -- 2.39.5