Commit c85e32d5 authored by Matthias Clasen's avatar Matthias Clasen

color scale: simplify code a bit

It is not necessary to call gtk_widget_get_accessible repeatedly.
parent 50c848a9
......@@ -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);
}
}
......
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