Check "color" argument in gtk_color_button_set_color ()

* gtk/gtkcolorbutton.c: Check "color" argument in gtk_color_button_set_color ()
This commit is contained in:
Tristan Van Berkom
2005-09-14 04:48:38 +00:00
parent ece1601498
commit add83ac92e
3 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-09-14 Tristan Van Berkom <tvb@cvs.gnome.org>
* gtk/gtkcolorbutton.c: Check "color" argument in gtk_color_button_set_color ()
2005-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_get_type):

View File

@ -1,3 +1,7 @@
2005-09-14 Tristan Van Berkom <tvb@cvs.gnome.org>
* gtk/gtkcolorbutton.c: Check "color" argument in gtk_color_button_set_color ()
2005-09-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_get_type):

View File

@ -780,6 +780,7 @@ gtk_color_button_set_color (GtkColorButton *color_button,
const GdkColor *color)
{
g_return_if_fail (GTK_IS_COLOR_BUTTON (color_button));
g_return_if_fail (color != NULL);
color_button->priv->color.red = color->red;
color_button->priv->color.green = color->green;