]> spindle.queued.net Git - midori/commitdiff
Consistently use ifdef HAVE_GRANITE
authorChristian Dywan <christian@twotoasts.de>
Thu, 19 Jul 2012 19:06:01 +0000 (21:06 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 19 Jul 2012 19:14:10 +0000 (21:14 +0200)
katze/katze-preferences.c
midori/midori-browser.c

index 21183bc5ea266a887f5997fe01e57f67a4bfa40a..cd89ffe1d228b25d19a321f29d0c6b1173fde00b 100644 (file)
@@ -209,7 +209,7 @@ katze_preferences_prepare (KatzePreferences* preferences)
     g_signal_connect (priv->scrolled, "destroy",
                       G_CALLBACK (gtk_widget_destroyed), &priv->scrolled);
     #else
-    #if HAVE_GRANITE
+    #ifdef HAVE_GRANITE
     /* FIXME: granite: should return GtkWidget* like GTK+ */
     priv->notebook = (GtkWidget*)granite_widgets_static_notebook_new (FALSE);
     #else
@@ -308,7 +308,7 @@ katze_preferences_add_category (KatzePreferences* preferences,
     priv->sizegroup = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
     gtk_widget_show (priv->page);
     gtk_container_set_border_width (GTK_CONTAINER (priv->page), 4);
-    #if HAVE_GRANITE
+    #ifdef HAVE_GRANITE
     granite_widgets_static_notebook_append_page (
         GRANITE_WIDGETS_STATIC_NOTEBOOK (priv->notebook),
         priv->page, GTK_LABEL (gtk_label_new (label)));
index 7239e43cf81028ab662d46bc225f2cdad9932a7b..da96043eb877abc6583a92f212f8b8ca7fe5516e 100644 (file)
@@ -2708,7 +2708,7 @@ _action_print_activate (GtkAction*     action,
     if (!(view = midori_browser_get_current_tab (browser)))
         return;
 
-    #if HAVE_GRANITE
+    #ifdef HAVE_GRANITE
     /* FIXME: Blacklist/ custom contract doesn't work
     gchar* blacklisted_contracts[] = { "print", NULL }; */
     /* FIXME: granite: should return GtkWidget* like GTK+ */
@@ -3283,7 +3283,7 @@ _action_compact_menu_populate_popup (GtkAction*     action,
       #endif
       { NULL },
       #if !HAVE_HILDON
-      #if !HAVE_GRANITE
+      #ifndef HAVE_GRANITE
       { "HelpFAQ" },
       { "HelpBugs"},
       #endif
@@ -5078,7 +5078,7 @@ _action_about_activate (GtkAction*     action,
     gtk_about_dialog_set_email_hook (_action_about_activate_email, NULL, NULL);
     gtk_about_dialog_set_url_hook (_action_about_activate_link, browser, NULL);
 #endif
-#if HAVE_GRANITE
+#ifdef HAVE_GRANITE
     /* FIXME: granite: should return GtkWidget* like GTK+ */
     dialog = (GtkWidget*)granite_widgets_about_dialog_new ();
     {
@@ -5557,7 +5557,7 @@ static const GtkActionEntry entries[] =
     { "WindowClose", NULL,
         N_("C_lose Window"), "<Ctrl><Shift>w",
         NULL, G_CALLBACK (_action_window_close_activate) },
-    #if HAVE_GRANITE
+    #ifdef HAVE_GRANITE
     { "Print", "document-export",
         N_("_Share"), "<Ctrl>p",
         NULL, G_CALLBACK (_action_print_activate) },