From: Christian Dywan Date: Thu, 19 Jul 2012 19:06:01 +0000 (+0200) Subject: Consistently use ifdef HAVE_GRANITE X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7f438589f70849b641f3dbd6781a466502630d7;p=midori Consistently use ifdef HAVE_GRANITE --- diff --git a/katze/katze-preferences.c b/katze/katze-preferences.c index 21183bc5..cd89ffe1 100644 --- a/katze/katze-preferences.c +++ b/katze/katze-preferences.c @@ -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))); diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 7239e43c..da96043e 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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"), "w", NULL, G_CALLBACK (_action_window_close_activate) }, - #if HAVE_GRANITE + #ifdef HAVE_GRANITE { "Print", "document-export", N_("_Share"), "p", NULL, G_CALLBACK (_action_print_activate) },