[Xfce4-commits] <midori:master> Reduce notebook alloc timeout and update each time
Christian Dywan
noreply at xfce.org
Sat Dec 10 19:54:02 CET 2011
Updating branch refs/heads/master
to 1845d0bcbc53fed0d260f52b9255b89ce437700a (commit)
from 5d9a8d73f320af6b86b1e44d2518baf476567273 (commit)
commit 1845d0bcbc53fed0d260f52b9255b89ce437700a
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Dec 10 19:27:05 2011 +0100
Reduce notebook alloc timeout and update each time
midori/midori-browser.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 5117d6f..76283b4 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -1527,10 +1527,13 @@ midori_browser_notebook_size_allocate_cb (GtkWidget* widget,
GdkRectangle* allocation,
MidoriBrowser* browser)
{
- if (browser->notebook_alloc_timeout > 0)
+ if (!gtk_notebook_get_show_tabs (GTK_NOTEBOOK (browser->notebook)))
return;
- browser->notebook_alloc_timeout = g_timeout_add_full (G_PRIORITY_LOW, 2500,
+ if (browser->notebook_alloc_timeout > 0)
+ g_source_remove (browser->notebook_alloc_timeout);
+
+ browser->notebook_alloc_timeout = g_timeout_add_full (G_PRIORITY_LOW, 250,
(GSourceFunc)midori_browser_notebook_alloc_timeout, browser, NULL);
}
More information about the Xfce4-commits
mailing list