button = katze_property_proxy (settings, "enable-plugins", NULL);
gtk_button_set_label (GTK_BUTTON (button), _("Enable plugins"));
SPANNED_ADD (button, 1, 2, 2, 3);
- #ifdef WEBKIT_CHECK_VERSION
- #if WEBKIT_CHECK_VERSION (1, 0, 3)
button = katze_property_proxy (settings, "enable-developer-extras", NULL);
gtk_button_set_label (GTK_BUTTON (button), _("Enable developer tools"));
SPANNED_ADD (button, 0, 1, 3, 4);
- #endif
- #endif
label = katze_property_label (settings, "location-entry-search");
INDENTED_ADD (label, 0, 1, 4, 5);
entry = katze_property_proxy (settings, "location-entry-search", NULL);
"</span>");
FILLED_ADD (button, 0, 2, 2, 3);
FRAME_NEW (_("Browsing"));
- TABLE_NEW (4, 2);
- label = katze_property_label (settings, "open-external-pages-in");
- INDENTED_ADD (label, 0, 1, 0, 1);
- button = katze_property_proxy (settings, "open-external-pages-in", NULL);
- FILLED_ADD (button, 1, 2, 0, 1);
- /* label = katze_property_label (settings, "open-new-pages-in");
+ TABLE_NEW (5, 2);
+ label = katze_property_label (settings, "open-new-pages-in");
INDENTED_ADD (label, 0, 1, 0, 1);
button = katze_property_proxy (settings, "open-new-pages-in", NULL);
- FILLED_ADD (button, 1, 2, 0, 1); */
+ FILLED_ADD (button, 1, 2, 0, 1);
+ 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);
button = katze_property_proxy (settings, "always-show-tabbar", NULL);
- INDENTED_ADD (button, 0, 1, 1, 2);
+ INDENTED_ADD (button, 0, 1, 2, 3);
button = katze_property_proxy (settings, "compact-sidepanel", NULL);
- INDENTED_ADD (button, 1, 2, 1, 2);
+ INDENTED_ADD (button, 1, 2, 2, 3);
button = katze_property_proxy (settings, "middle-click-opens-selection", NULL);
- INDENTED_ADD (button, 0, 1, 2, 3);
+ INDENTED_ADD (button, 0, 1, 3, 4);
button = katze_property_proxy (settings, "open-tabs-in-the-background", NULL);
- WIDGET_ADD (button, 1, 2, 2, 3);
+ WIDGET_ADD (button, 1, 2, 3, 4);
/* button = katze_property_proxy (settings, "open-popups-in-tabs", NULL);
- SPANNED_ADD (button, 0, 1, 2, 3);*/
+ SPANNED_ADD (button, 0, 1, 4, 5);*/
button = katze_property_proxy (settings, "open-tabs-next-to-current", NULL);
- WIDGET_ADD (button, 0, 1, 3, 4);
+ WIDGET_ADD (button, 0, 1, 5, 6);
button = katze_property_proxy (settings, "close-buttons-on-tabs", NULL);
- WIDGET_ADD (button, 1, 2, 3, 4);
+ WIDGET_ADD (button, 1, 2, 5, 6);
/* Page "Network" */
#if 0
PROP_OPEN_TABS_NEXT_TO_CURRENT,
PROP_OPEN_POPUPS_IN_TABS,
+ PROP_ENABLE_DEVELOPER_EXTRAS,
PROP_ACCEPT_COOKIES,
PROP_ORIGINAL_COOKIES_ONLY,
PROP_MAXIMUM_COOKIE_AGE,
TRUE,
flags));
+ g_type_class_ref (WEBKIT_TYPE_WEB_VIEW);
g_object_class_install_property (gobject_class,
PROP_OPEN_NEW_PAGES_IN,
g_param_spec_enum (
_("Where to open new pages"),
MIDORI_TYPE_NEW_PAGE,
MIDORI_NEW_PAGE_TAB,
- G_PARAM_READABLE));
+ g_signal_lookup ("create-web-view", WEBKIT_TYPE_WEB_VIEW)
+ ? G_PARAM_READWRITE : G_PARAM_READABLE));
g_object_class_install_property (gobject_class,
PROP_OPEN_EXTERNAL_PAGES_IN,
G_PARAM_READABLE));
+ if (!g_object_class_find_property (gobject_class, "enable-developer-extras"))
+ /**
+ * MidoriWebSettings:enable-developer-extras:
+ *
+ * Whether to enable extra developer tools.
+ *
+ * Since: 0.1.2
+ */
+ g_object_class_install_property (gobject_class,
+ PROP_ENABLE_DEVELOPER_EXTRAS,
+ g_param_spec_boolean (
+ "enable-developer-extras",
+ "Enable Developer Extras",
+ "Whether to enable extra developer tools",
+ FALSE,
+ G_PARAM_READABLE));
g_object_class_install_property (gobject_class,
PROP_ACCEPT_COOKIES,
g_value_set_boolean (value, web_settings->open_popups_in_tabs);
break;
+ case PROP_ENABLE_DEVELOPER_EXTRAS:
+ g_value_set_boolean (value, FALSE);
+ break;
case PROP_ACCEPT_COOKIES:
g_value_set_enum (value, web_settings->accept_cookies);
break;