Remove some unnecessary checks

This commit is contained in:
Matthias Clasen 2006-02-14 13:50:03 +00:00
parent a32b9712f3
commit b58d9cdc85
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2006-02-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcolorbutton.c (gtk_color_button_[un]realize):
Remove unnecessary checks.
2006-02-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working

View File

@ -1,3 +1,8 @@
2006-02-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcolorbutton.c (gtk_color_button_[un]realize):
Remove unnecessary checks.
2006-02-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working

View File

@ -408,8 +408,7 @@ gtk_color_button_realize (GtkWidget *widget)
GTK_WIDGET_CLASS (parent_class)->realize (widget);
if (color_button->priv->gc == NULL)
color_button->priv->gc = gdk_gc_new (widget->window);
color_button->priv->gc = gdk_gc_new (widget->window);
render (color_button);
}
@ -419,8 +418,7 @@ gtk_color_button_unrealize (GtkWidget *widget)
{
GtkColorButton *color_button = GTK_COLOR_BUTTON (widget);
if (color_button->priv->gc)
g_object_unref (color_button->priv->gc);
g_object_unref (color_button->priv->gc);
color_button->priv->gc = NULL;
GTK_WIDGET_CLASS (parent_class)->unrealize (widget);