Updating branch refs/heads/master
         to 910e2d4842130004ebd5a63d3223e115404fec0e (commit)
       from a6606a9cee600ae77ab96736405b138623a6f11d (commit)

commit 910e2d4842130004ebd5a63d3223e115404fec0e
Author: PaweĊ‚ Forysiuk <tuxa...@o2.pl>
Date:   Mon Aug 27 22:50:33 2012 +0200

    Use #ifdef for ZEITGEIST and GCR

 midori/midori-browser.c        |    4 ++--
 midori/midori-locationaction.c |    6 +++---
 midori/midori-view.c           |    8 ++++----
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index b45b4b4..9f12e8b 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -38,7 +38,7 @@
     #include <granite.h>
 #endif
 
-#if HAVE_ZEITGEIST
+#ifdef HAVE_ZEITGEIST
     #include <zeitgeist.h>
 #endif
 
@@ -489,7 +489,7 @@ midori_browser_update_history (KatzeItem*   item,
                                const gchar* type,
                                const gchar* event)
 {
-    #if HAVE_ZEITGEIST
+    #ifdef HAVE_ZEITGEIST
     const gchar* inter;
     if (strstr (event, "access"))
         inter = ZEITGEIST_ZG_ACCESS_EVENT;
diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index dc59549..5bd0b7d 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -1174,7 +1174,7 @@ midori_location_action_focus_out_event_cb (GtkWidget*   
widget,
     return FALSE;
 }
 
-#if HAVE_GCR
+#ifdef HAVE_GCR
     #define GCR_API_SUBJECT_TO_CHANGE
     #include <gcr/gcr.h>
 #endif
@@ -1202,7 +1202,7 @@ midori_map_get_message (SoupMessage* message)
     return full;
 }
 
-#if HAVE_GCR
+#ifdef HAVE_GCR
 typedef enum {
     MIDORI_CERT_TRUST,
     MIDORI_CERT_REVOKE,
@@ -1295,7 +1295,7 @@ midori_location_action_show_page_info (GtkWidget* widget,
     if (tls_cert == NULL)
         return;
 
-    #if HAVE_GCR
+    #ifdef HAVE_GCR
     GByteArray* der_cert;
     GcrCertificate* gcr_cert;
     GtkWidget* details;
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 6dc108d..315f84b 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -26,7 +26,7 @@
 #include <granite.h>
 #endif
 
-#if HAVE_GCR
+#ifdef HAVE_GCR
     #define GCR_API_SUBJECT_TO_CHANGE
     #include <gcr/gcr.h>
 
@@ -965,7 +965,7 @@ midori_view_web_view_navigation_decision_cb (WebKitWebView* 
            web_view
             return TRUE;
         }
     }
-    #if HAVE_GCR
+    #ifdef HAVE_GCR
     else if (/* view->special && */ !strncmp (uri, "https", 5))
     {
         /* We show an error page if the certificate is invalid.
@@ -1054,7 +1054,7 @@ webkit_web_view_load_started_cb (WebKitWebView*  web_view,
     g_object_thaw_notify (G_OBJECT (view));
 }
 
-#if HAVE_GCR
+#ifdef HAVE_GCR
 const gchar*
 midori_location_action_tls_flags_to_string (GTlsCertificateFlags flags);
 #endif
@@ -1111,7 +1111,7 @@ webkit_web_view_load_committed_cb (WebKitWebView*  
web_view,
         if (message
          && soup_message_get_flags (message) & 
SOUP_MESSAGE_CERTIFICATE_TRUSTED)
             view->security = MIDORI_SECURITY_TRUSTED;
-        #if HAVE_GCR
+        #ifdef HAVE_GCR
         else if (!view->special && message != NULL)
         {
             GTlsCertificate* tls_cert;
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to