color scale: simplify code a bit

It is not necessary to call gtk_widget_get_accessible repeatedly.
This commit is contained in:
Matthias Clasen 2015-02-18 17:26:20 -05:00
parent 50c848a992
commit c85e32d56e

View File

@ -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);
}
}