summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-03-01 15:18:34 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-03-01 15:18:34 -0500
commit87e71afd50e64c3dcbd58284520037db795262ea (patch)
tree9cfa2bd51914fc3e41b7aeeeb97c812026d9c0c5 /gtk/gtkcellrenderer.c
parent6230319dba125998f789fb8e5bec4d379585171a (diff)
downloadgtk+-87e71afd50e64c3dcbd58284520037db795262ea.tar.gz
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
Diffstat (limited to 'gtk/gtkcellrenderer.c')
-rw-r--r--gtk/gtkcellrenderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index d19143c563..ce243b0ee5 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -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)) ||