[Xfce4-commits] <midori:master> Unconditionally propagae modified user-agent property value

Christian Dywan noreply at xfce.org
Mon Feb 1 23:56:01 CET 2010


Updating branch refs/heads/master
         to c056a21d1ab66f7647e9d2a3b38f03c3568caea6 (commit)
       from 34bc4fa737756e003a53ffc65b436ee157c26000 (commit)

commit c056a21d1ab66f7647e9d2a3b38f03c3568caea6
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Feb 1 23:42:35 2010 +0100

    Unconditionally propagae modified user-agent property value

 midori/midori-websettings.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/midori/midori-websettings.c b/midori/midori-websettings.c
index c53802e..0a75752 100644
--- a/midori/midori-websettings.c
+++ b/midori/midori-websettings.c
@@ -1518,12 +1518,11 @@ midori_web_settings_set_property (GObject*      object,
         break;
     case PROP_USER_AGENT:
         if (web_settings->identify_as == MIDORI_IDENT_CUSTOM)
-        {
             katze_assign (web_settings->ident_string, g_value_dup_string (value));
-            #if WEBKIT_CHECK_VERSION (1, 1, 11)
-            g_object_set (web_settings, "WebKitWebSettings::user-agent", web_settings->ident_string, NULL);
-            #endif
-        }
+        #if WEBKIT_CHECK_VERSION (1, 1, 11)
+        g_object_set (web_settings, "WebKitWebSettings::user-agent",
+                                    web_settings->ident_string, NULL);
+        #endif
         break;
     case PROP_PREFERRED_LANGUAGES:
         katze_assign (web_settings->http_accept_language, g_value_dup_string (value));



More information about the Xfce4-commits mailing list