From 09e5207a33cfc2a7d6db70165fbe82ef451fca7d Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 11 Jan 2001 14:11:02 +0000 Subject: [PATCH] allow width/height of the color_area to be set to negative values so the 2001-01-11 Sven Neumann * libgimp/gimpcolorbutton.[ch]: allow width/height of the color_area to be set to negative values so the GimpColorButton can be set up resizeable. --- ChangeLog | 6 ++++++ libgimp/gimpcolorbutton.c | 5 ++--- libgimp/gimpcolorbutton.h | 4 ++-- libgimpwidgets/gimpcolorbutton.c | 5 ++--- libgimpwidgets/gimpcolorbutton.h | 4 ++-- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index b2ba67cc7f..27f55814b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-01-11 Sven Neumann + + * libgimp/gimpcolorbutton.[ch]: allow width/height of the color_area + to be set to negative values so the GimpColorButton can be set up + resizeable. + 2001-01-11 Sven Neumann * README: changed for gimp-1.3 diff --git a/libgimp/gimpcolorbutton.c b/libgimp/gimpcolorbutton.c index 94bf2dae95..166f364af1 100644 --- a/libgimp/gimpcolorbutton.c +++ b/libgimp/gimpcolorbutton.c @@ -199,14 +199,13 @@ gimp_color_button_get_type (void) **/ GtkWidget * gimp_color_button_new (const gchar *title, - guint width, - guint height, + gint width, + gint height, GimpRGB *color, gboolean alpha) { GimpColorButton *gcb; - g_return_val_if_fail (width > 0 && height > 0, NULL); g_return_val_if_fail (color != NULL, NULL); gcb = gtk_type_new (gimp_color_button_get_type ()); diff --git a/libgimp/gimpcolorbutton.h b/libgimp/gimpcolorbutton.h index 74e580e243..13b52bd632 100644 --- a/libgimp/gimpcolorbutton.h +++ b/libgimp/gimpcolorbutton.h @@ -52,8 +52,8 @@ struct _GimpColorButtonClass GtkType gimp_color_button_get_type (void); GtkWidget * gimp_color_button_new (const gchar *title, - guint width, - guint height, + gint width, + gint height, GimpRGB *color, gboolean alpha); void gimp_color_button_set_color (GimpColorButton *gcb, diff --git a/libgimpwidgets/gimpcolorbutton.c b/libgimpwidgets/gimpcolorbutton.c index 94bf2dae95..166f364af1 100644 --- a/libgimpwidgets/gimpcolorbutton.c +++ b/libgimpwidgets/gimpcolorbutton.c @@ -199,14 +199,13 @@ gimp_color_button_get_type (void) **/ GtkWidget * gimp_color_button_new (const gchar *title, - guint width, - guint height, + gint width, + gint height, GimpRGB *color, gboolean alpha) { GimpColorButton *gcb; - g_return_val_if_fail (width > 0 && height > 0, NULL); g_return_val_if_fail (color != NULL, NULL); gcb = gtk_type_new (gimp_color_button_get_type ()); diff --git a/libgimpwidgets/gimpcolorbutton.h b/libgimpwidgets/gimpcolorbutton.h index 74e580e243..13b52bd632 100644 --- a/libgimpwidgets/gimpcolorbutton.h +++ b/libgimpwidgets/gimpcolorbutton.h @@ -52,8 +52,8 @@ struct _GimpColorButtonClass GtkType gimp_color_button_get_type (void); GtkWidget * gimp_color_button_new (const gchar *title, - guint width, - guint height, + gint width, + gint height, GimpRGB *color, gboolean alpha); void gimp_color_button_set_color (GimpColorButton *gcb,