diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-02-18 17:26:20 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-02-18 17:28:08 -0500 |
commit | c85e32d56e3737aaf414f6286c7812cad760ba59 (patch) | |
tree | 5b16907007f312053d9c189ebd3d0969d10c5e0c /gtk/gtkcolorscale.c | |
parent | 50c848a992282f411511d0fef4642026dec6bef6 (diff) | |
download | gtk+-c85e32d56e3737aaf414f6286c7812cad760ba59.tar.gz |
color scale: simplify code a bit
It is not necessary to call gtk_widget_get_accessible repeatedly.
Diffstat (limited to 'gtk/gtkcolorscale.c')
-rw-r--r-- | gtk/gtkcolorscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcolorscale.c b/gtk/gtkcolorscale.c index 9f882ba6f5..81dd685e5c 100644 --- a/gtk/gtkcolorscale.c +++ b/gtk/gtkcolorscale.c @@ -309,7 +309,7 @@ scale_set_type (GtkColorScale *scale, atk_object_set_name (atk_obj, C_("Color channel", "Hue")); else if (type == GTK_COLOR_SCALE_ALPHA) atk_object_set_name (atk_obj, C_("Color channel", "Alpha")); - atk_object_set_role (gtk_widget_get_accessible (GTK_WIDGET (scale)), ATK_ROLE_COLOR_CHOOSER); + atk_object_set_role (atk_obj, ATK_ROLE_COLOR_CHOOSER); } } |