From d7d06b9acda3d48119a92471583d13e4931fea4d Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 18 Jun 2009 23:55:16 +0200 Subject: [PATCH] Use midori_browser_get_for_widget in Colourful Tabs --- extensions/colorful-tabs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/colorful-tabs.c b/extensions/colorful-tabs.c index 0cd76368..69f584fd 100644 --- a/extensions/colorful-tabs.c +++ b/extensions/colorful-tabs.c @@ -72,7 +72,7 @@ static void colorful_tabs_button_toggled_cb (GtkWidget* button, MidoriExtension* extension) { - MidoriBrowser* browser = MIDORI_BROWSER (gtk_widget_get_toplevel (button)); + MidoriBrowser* browser = midori_browser_get_for_widget (button); midori_extension_set_boolean (extension, "tint", !midori_extension_get_boolean (extension, "tint")); @@ -96,7 +96,7 @@ colorful_tabs_deactivate_cb (MidoriExtension* extension, g_signal_handlers_disconnect_by_func ( extension, colorful_tabs_deactivate_cb, bbox); /* FIXME: Disconnect signals */ - midori_browser_foreach (MIDORI_BROWSER (gtk_widget_get_toplevel (bbox)), + midori_browser_foreach (midori_browser_get_for_widget (bbox), (GtkCallback)colorful_tabs_browser_foreach_cb, extension); gtk_widget_destroy (bbox); } -- 2.39.5