mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
cell renderer: Strip out :drop(active) state
It does not make sense to render every cell in a treeview as drop target, even when the treeview itself is set as a drop destination. https://bugzilla.gnome.org/show_bug.cgi?id=761686
This commit is contained in:
parent
6230319dba
commit
87e71afd50
@ -1817,7 +1817,7 @@ gtk_cell_renderer_get_state (GtkCellRenderer *cell,
|
||||
if (widget)
|
||||
state |= gtk_widget_get_state_flags (widget);
|
||||
|
||||
state &= ~(GTK_STATE_FLAG_FOCUSED | GTK_STATE_FLAG_PRELIGHT | GTK_STATE_FLAG_SELECTED);
|
||||
state &= ~(GTK_STATE_FLAG_FOCUSED | GTK_STATE_FLAG_PRELIGHT | GTK_STATE_FLAG_SELECTED | GTK_STATE_FLAG_DROP_ACTIVE);
|
||||
|
||||
if ((state & GTK_STATE_FLAG_INSENSITIVE) != 0 ||
|
||||
(cell && !gtk_cell_renderer_get_sensitive (cell)) ||
|
||||
|
Loading…
Reference in New Issue
Block a user