use AM_CPPFLAGS instead of CPPFLAGS

2002-09-01  Manish Singh  <yosh@gimp.org>

        * modules/Makefile.am: use AM_CPPFLAGS instead of CPPFLAGS

        * modules/cdisplay_gamma.c
        * modules/cdisplay_highcontrast.c: changed deprecated calls

        * modules/colorsel_triangle.c: #undef GTK_DISABLE_DEPRECATED,
        still needs to be fixed for use of GtkPreview
This commit is contained in:
Manish Singh
2002-09-01 08:10:52 +00:00
committed by Manish Singh
parent f81c13626f
commit 97427f3f07
5 changed files with 21 additions and 5 deletions

View File

@ -2,7 +2,7 @@
libdir = $(gimpplugindir)/modules
CPPFLAGS = -DMODULE_COMPILATION
AM_CPPFLAGS = -DMODULE_COMPILATION
INCLUDES = \
-I$(top_srcdir) \

View File

@ -277,7 +277,7 @@ gamma_configure_ok_callback (GtkWidget *widget,
GammaContext *context = data;
context->gamma =
gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (context->spinner));
gtk_spin_button_get_value (GTK_SPIN_BUTTON (context->spinner));
gamma_create_lookup_table (context);
#if 0
@ -357,7 +357,7 @@ gamma_configure (gpointer cd_ID,
adjustment = gtk_adjustment_new (context->gamma, 0.01, 10.0, 0.01, 0.1, 0.0);
context->spinner = gtk_spin_button_new (GTK_ADJUSTMENT (adjustment),
0.1, 3);
gtk_widget_set_usize (context->spinner, 100, 0);
gtk_widget_set_size_request (context->spinner, 100, -1);
gtk_box_pack_start (GTK_BOX (hbox), context->spinner, FALSE, FALSE, 0);
}

View File

@ -271,7 +271,8 @@ contrast_configure_ok_callback (GtkWidget *widget,
{
ContrastContext *context = data;
context->contrast = gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (context->spinner));
context->contrast =
gtk_spin_button_get_value (GTK_SPIN_BUTTON (context->spinner));
contrast_create_lookup_table (context);
#if 0
@ -349,7 +350,7 @@ contrast_configure (gpointer cd_ID,
adjustment = gtk_adjustment_new (context->contrast, 1.0, 20.0, 0.5, 1.0, 0.0);
context->spinner = gtk_spin_button_new (GTK_ADJUSTMENT (adjustment),
0.1, 3);
gtk_widget_set_usize (context->spinner, 100, 0);
gtk_widget_set_size_request (context->spinner, 100, -1);
gtk_box_pack_start (GTK_BOX (hbox), context->spinner, FALSE, FALSE, 0);
}

View File

@ -24,6 +24,11 @@
#include <stdlib.h>
#ifdef __GNUC__
#warning GTK_DISABLE_DEPRECATED
#endif
#undef GTK_DISABLE_DEPRECATED
#include <gtk/gtk.h>
#include <gdk/gdk.h>