Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
b58d9cdc
Commit
b58d9cdc
authored
Feb 14, 2006
by
Matthias Clasen
Browse files
Remove some unnecessary checks
parent
a32b9712
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
b58d9cdc
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
...
...
ChangeLog.pre-2-10
View file @
b58d9cdc
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
...
...
gtk/gtkcolorbutton.c
View file @
b58d9cdc
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment