[gtk+] cell renderer: Strip out :drop(active) state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cell renderer: Strip out :drop(active) state
- Date: Tue, 1 Mar 2016 20:20:13 +0000 (UTC)
commit 87e71afd50e64c3dcbd58284520037db795262ea
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 1 15:18:34 2016 -0500
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
gtk/gtkcellrenderer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index d19143c..ce243b0 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)) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]