From: Christian Dywan Date: Wed, 14 Jan 2009 20:38:45 +0000 (+0100) Subject: Disable and hide Open external pages in if unique is unavailable X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0939bab342cfc137f6bf86b1c2cdf9cb0fa196e8;p=midori Disable and hide Open external pages in if unique is unavailable --- diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c index f067ca25..6db69ba0 100644 --- a/midori/midori-preferences.c +++ b/midori/midori-preferences.c @@ -512,10 +512,12 @@ midori_preferences_set_settings (MidoriPreferences* preferences, INDENTED_ADD (label, 0, 1, 0, 1); button = katze_property_proxy (settings, "open-new-pages-in", NULL); FILLED_ADD (button, 1, 2, 0, 1); + #if HAVE_UNIQUE label = katze_property_label (settings, "open-external-pages-in"); INDENTED_ADD (label, 0, 1, 1, 2); button = katze_property_proxy (settings, "open-external-pages-in", NULL); FILLED_ADD (button, 1, 2, 1, 2); + #endif button = katze_property_proxy (settings, "always-show-tabbar", NULL); INDENTED_ADD (button, 0, 1, 2, 3); button = katze_property_proxy (settings, "compact-sidepanel", NULL); diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c index b0e5607f..f74f0263 100644 --- a/midori/midori-websettings.c +++ b/midori/midori-websettings.c @@ -525,7 +525,11 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class) _("Where to open externally opened pages"), MIDORI_TYPE_NEW_PAGE, MIDORI_NEW_PAGE_TAB, + #if HAVE_UNIQUE G_PARAM_READWRITE)); + #else + G_PARAM_READABLE)); + #endif g_object_class_install_property (gobject_class, PROP_MIDDLE_CLICK_OPENS_SELECTION,