]> spindle.queued.net Git - midori/commitdiff
Disable and hide Open external pages in if unique is unavailable
authorChristian Dywan <christian@twotoasts.de>
Wed, 14 Jan 2009 20:38:45 +0000 (21:38 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 14 Jan 2009 20:38:45 +0000 (21:38 +0100)
midori/midori-preferences.c
midori/midori-websettings.c

index f067ca25ae6f4460d2c743d09d74b574ad5e6afd..6db69ba03995475f6ffbb4e4cd40731360997c1d 100644 (file)
@@ -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);
index b0e5607f3919beb69c3af664da65753108f5b8b0..f74f02635e2593632290d685da88dfbb73a5f0f0 100644 (file)
@@ -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,