[Xfce4-commits] <midori:master> Add behavior preference 'Allow scripts to open popups'

Christian Dywan noreply at xfce.org
Tue Mar 23 20:54:01 CET 2010


Updating branch refs/heads/master
         to a15c70ec619013567eafdb4617427f9a58461a95 (commit)
       from a8c055bdbcfdaf853edc4b3e5be798af13917aa8 (commit)

commit a15c70ec619013567eafdb4617427f9a58461a95
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Mar 23 20:52:06 2010 +0100

    Add behavior preference 'Allow scripts to open popups'

 midori/midori-preferences.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c
index 3898ccd..f8820aa 100644
--- a/midori/midori-preferences.c
+++ b/midori/midori-preferences.c
@@ -410,6 +410,12 @@ midori_preferences_set_settings (MidoriPreferences* preferences,
     SPANNED_ADD (button);
     button = katze_property_proxy (settings, "zoom-text-and-images", NULL);
     INDENTED_ADD (button);
+    #if WEBKIT_CHECK_VERSION (1, 1, 11)
+    button = katze_property_proxy (settings, "javascript-can-open-windows-automatically", NULL);
+    gtk_button_set_label (GTK_BUTTON (button), _("Allow scripts to open popups"));
+    gtk_widget_set_tooltip_text (button, _("Whether scripts are allowed to open popup windows automatically"));
+    SPANNED_ADD (button);
+    #endif
     #if WEBKIT_CHECK_VERSION (1, 1, 6)
     FRAME_NEW (_("Spell Checking"));
     /* FIXME: Provide a nice dictionary selection */



More information about the Xfce4-commits mailing list