As a workaround, the browser now sets its own flag.
{
gboolean minimized = katze_object_get_boolean (view, "minimized");
- if (!(GTK_OBJECT_FLAGS (browser) & GTK_IN_DESTRUCTION))
+ if (g_object_get_data (G_OBJECT (browser), "midori-browser-destroyed"))
tab_panel_remove_view (browser, view, minimized);
}
GtkTreeIter iter;
GtkWidget* view;
- if (GTK_OBJECT_FLAGS (browser) & GTK_IN_DESTRUCTION)
+ if (g_object_get_data (G_OBJECT (browser), "midori-browser-destroyed"))
return;
view = midori_browser_get_current_tab (browser);
static void
midori_browser_destroy_cb (MidoriBrowser* browser)
{
+ g_object_set_data (G_OBJECT (browser), "midori-browser-destroyed", (void*)1);
+
if (G_UNLIKELY (browser->panel_timeout))
g_source_remove (browser->panel_timeout);
if (G_UNLIKELY (browser->alloc_timeout))