From 541d65f01308c62fd34ddeb0285bad8e2b1a87c8 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 12 May 2009 01:33:44 +0200 Subject: [PATCH] Fix Gtk version check for speed dial, this is >= Gtk 2.14 --- midori/midori-browser.c | 2 +- midori/midori-websettings.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 892250f7..29d018b9 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -406,7 +406,7 @@ midori_browser_update_thumbnail (GtkWidget* view, { GtkWidget* child; - #if GTK_CHECK_VERSION (2, 12, 0) + #if GTK_CHECK_VERSION (2, 14, 0) if (midori_view_get_load_status (MIDORI_VIEW (view)) != MIDORI_LOAD_FINISHED) return; diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c index 49c4304d..b2dffb0d 100644 --- a/midori/midori-websettings.c +++ b/midori/midori-websettings.c @@ -588,7 +588,11 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class) _("Show speed dial in new tabs"), _("Show speed dial in newly opened tabs"), TRUE, + #if GTK_CHECK_VERSION (2, 14, 0) flags)); + #else + G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + #endif g_object_class_install_property (gobject_class, PROP_DOWNLOAD_FOLDER, -- 2.39.5