From: Paweł Forysiuk Date: Mon, 27 Aug 2012 20:50:33 +0000 (+0200) Subject: Use #ifdef for ZEITGEIST and GCR X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=910e2d4842130004ebd5a63d3223e115404fec0e;p=midori Use #ifdef for ZEITGEIST and GCR --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index b45b4b46..9f12e8ba 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -38,7 +38,7 @@ #include #endif -#if HAVE_ZEITGEIST +#ifdef HAVE_ZEITGEIST #include #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 dc59549c..5bd0b7da 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 #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 6dc108d5..315f84b9 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -26,7 +26,7 @@ #include #endif -#if HAVE_GCR +#ifdef HAVE_GCR #define GCR_API_SUBJECT_TO_CHANGE #include @@ -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;