allow width/height of the color_area to be set to negative values so the

2001-01-11  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpcolorbutton.[ch]: allow width/height of the color_area
	to be set to negative values so the GimpColorButton can be set up
	resizeable.
This commit is contained in:
Sven Neumann
2001-01-11 14:11:02 +00:00
committed by Sven Neumann
parent f73768b5b5
commit 09e5207a33
5 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,9 @@
2001-01-11 Sven Neumann <sven@gimp.org>
* 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 <sven@gimp.org>
* README: changed for gimp-1.3

View File

@ -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 ());

View File

@ -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,

View File

@ -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 ());

View File

@ -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,