mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1291769 - use correct "checked" state for treeview expanders, r=acomminos
This commit is contained in:
parent
41b10604fb
commit
e2cbfe0761
@ -1187,9 +1187,9 @@ moz_gtk_treeview_expander_paint(cairo_t *cr, GdkRectangle* rect,
|
||||
* in gtk_render_expander()
|
||||
*/
|
||||
if (expander_state == GTK_EXPANDER_EXPANDED)
|
||||
state_flags = static_cast<GtkStateFlags>(state_flags|GTK_STATE_FLAG_ACTIVE);
|
||||
state_flags = static_cast<GtkStateFlags>(state_flags|checkbox_check_state);
|
||||
else
|
||||
state_flags = static_cast<GtkStateFlags>(state_flags&~(GTK_STATE_FLAG_ACTIVE));
|
||||
state_flags = static_cast<GtkStateFlags>(state_flags&~(checkbox_check_state));
|
||||
|
||||
GtkStyleContext *style = ClaimStyleContext(MOZ_GTK_TREEVIEW_EXPANDER,
|
||||
direction, state_flags);
|
||||
|
Loading…
Reference in New Issue
Block a user