Commit 09e5207a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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.
parent f73768b5
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> 2001-01-11 Sven Neumann <sven@gimp.org>
* README: changed for gimp-1.3 * README: changed for gimp-1.3
......
...@@ -199,14 +199,13 @@ gimp_color_button_get_type (void) ...@@ -199,14 +199,13 @@ gimp_color_button_get_type (void)
**/ **/
GtkWidget * GtkWidget *
gimp_color_button_new (const gchar *title, gimp_color_button_new (const gchar *title,
guint width, gint width,
guint height, gint height,
GimpRGB *color, GimpRGB *color,
gboolean alpha) gboolean alpha)
{ {
GimpColorButton *gcb; GimpColorButton *gcb;
g_return_val_if_fail (width > 0 && height > 0, NULL);
g_return_val_if_fail (color != NULL, NULL); g_return_val_if_fail (color != NULL, NULL);
gcb = gtk_type_new (gimp_color_button_get_type ()); gcb = gtk_type_new (gimp_color_button_get_type ());
......
...@@ -52,8 +52,8 @@ struct _GimpColorButtonClass ...@@ -52,8 +52,8 @@ struct _GimpColorButtonClass
GtkType gimp_color_button_get_type (void); GtkType gimp_color_button_get_type (void);
GtkWidget * gimp_color_button_new (const gchar *title, GtkWidget * gimp_color_button_new (const gchar *title,
guint width, gint width,
guint height, gint height,
GimpRGB *color, GimpRGB *color,
gboolean alpha); gboolean alpha);
void gimp_color_button_set_color (GimpColorButton *gcb, void gimp_color_button_set_color (GimpColorButton *gcb,
......
...@@ -199,14 +199,13 @@ gimp_color_button_get_type (void) ...@@ -199,14 +199,13 @@ gimp_color_button_get_type (void)
**/ **/
GtkWidget * GtkWidget *
gimp_color_button_new (const gchar *title, gimp_color_button_new (const gchar *title,
guint width, gint width,
guint height, gint height,
GimpRGB *color, GimpRGB *color,
gboolean alpha) gboolean alpha)
{ {
GimpColorButton *gcb; GimpColorButton *gcb;
g_return_val_if_fail (width > 0 && height > 0, NULL);
g_return_val_if_fail (color != NULL, NULL); g_return_val_if_fail (color != NULL, NULL);
gcb = gtk_type_new (gimp_color_button_get_type ()); gcb = gtk_type_new (gimp_color_button_get_type ());
......
...@@ -52,8 +52,8 @@ struct _GimpColorButtonClass ...@@ -52,8 +52,8 @@ struct _GimpColorButtonClass
GtkType gimp_color_button_get_type (void); GtkType gimp_color_button_get_type (void);
GtkWidget * gimp_color_button_new (const gchar *title, GtkWidget * gimp_color_button_new (const gchar *title,
guint width, gint width,
guint height, gint height,
GimpRGB *color, GimpRGB *color,
gboolean alpha); gboolean alpha);
void gimp_color_button_set_color (GimpColorButton *gcb, void gimp_color_button_set_color (GimpColorButton *gcb,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment