From c85e32d56e3737aaf414f6286c7812cad760ba59 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 18 Feb 2015 17:26:20 -0500 Subject: [PATCH] color scale: simplify code a bit It is not necessary to call gtk_widget_get_accessible repeatedly. --- gtk/gtkcolorscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }