From 6c57f7db429ab86b9ad27866678226d33532ee03 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 8 Mar 2012 00:50:59 +0100 Subject: [PATCH] Guard transferbar packing against GTK+3 --- midori/midori-browser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 534c5d48..d21cb04b 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -6232,7 +6232,12 @@ midori_browser_init (MidoriBrowser* browser) gtk_box_pack_start (GTK_BOX (vbox), browser->statusbar, FALSE, FALSE, 0); browser->transferbar = g_object_new (MIDORI_TYPE_TRANSFERBAR, NULL); + #if GTK_CHECK_VERSION (3, 0, 0) + /* FIXME: Transfers should go between text and statusbar features like GTK+2 */ gtk_box_pack_end (GTK_BOX (browser->statusbar_contents), browser->transferbar, FALSE, FALSE, 3); + #else + gtk_box_pack_start (GTK_BOX (browser->statusbar_contents), browser->transferbar, FALSE, FALSE, 3); + #endif gtk_toolbar_set_show_arrow (GTK_TOOLBAR (browser->transferbar), FALSE); gtk_widget_show (browser->transferbar); -- 2.39.5