Commit b58d9cdc authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Remove some unnecessary checks

parent a32b9712
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> 2006-02-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working * gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working
......
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> 2006-02-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working * gtk/gtkicontheme.c (gtk_icon_theme_list_icons): Give working
......
...@@ -408,8 +408,7 @@ gtk_color_button_realize (GtkWidget *widget) ...@@ -408,8 +408,7 @@ gtk_color_button_realize (GtkWidget *widget)
GTK_WIDGET_CLASS (parent_class)->realize (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); render (color_button);
} }
...@@ -419,8 +418,7 @@ gtk_color_button_unrealize (GtkWidget *widget) ...@@ -419,8 +418,7 @@ gtk_color_button_unrealize (GtkWidget *widget)
{ {
GtkColorButton *color_button = GTK_COLOR_BUTTON (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; color_button->priv->gc = NULL;
GTK_WIDGET_CLASS (parent_class)->unrealize (widget); GTK_WIDGET_CLASS (parent_class)->unrealize (widget);
......
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