[Xfce4-commits] <midori:master> Don't use the deprecated GTK_IN_DESTRUCTION flag
Christian Dywan
noreply at xfce.org
Tue Oct 5 00:14:05 CEST 2010
Updating branch refs/heads/master
to 5a0fc37d2f966e47e3ec3607ffc389ffa5421acb (commit)
from d141086b2407471b26ba98abdbddf204bf3b9d21 (commit)
commit 5a0fc37d2f966e47e3ec3607ffc389ffa5421acb
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Oct 4 23:05:21 2010 +0200
Don't use the deprecated GTK_IN_DESTRUCTION flag
As a workaround, the browser now sets its own flag.
extensions/tab-panel.c | 4 ++--
midori/midori-browser.c | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/extensions/tab-panel.c b/extensions/tab-panel.c
index a358818..95e7c53 100644
--- a/extensions/tab-panel.c
+++ b/extensions/tab-panel.c
@@ -462,7 +462,7 @@ tab_panel_browser_remove_tab_cb (MidoriBrowser* browser,
{
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);
}
@@ -475,7 +475,7 @@ tab_panel_browser_notify_tab_cb (MidoriBrowser* browser,
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);
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 092ef51..de6b7cd 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -5196,6 +5196,8 @@ midori_browser_size_allocate_cb (MidoriBrowser* 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))
More information about the Xfce4-commits
mailing list