projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eefaf8
)
iconview: Render drop highlight properly
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 7 Jan 2020 02:25:15 +0000
(21:25 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:22 +0000
(18:48 -0500)
Use :drop(active) and render a frame, not focus.
gtk/gtkiconview.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconview.c
b/gtk/gtkiconview.c
index 21ba41a2e1db43369b4e45c5c75ff1e815add98a..85f90a2991c167cfb637369fbe01f5d39bef7096 100644
(file)
--- a/
gtk/gtkiconview.c
+++ b/
gtk/gtkiconview.c
@@
-1754,9
+1754,15
@@
gtk_icon_view_snapshot (GtkWidget *widget,
break;
}
- gtk_snapshot_render_focus (snapshot, context,
+
+ gtk_style_context_save (context);
+ gtk_style_context_set_state (context, gtk_style_context_get_state (context) | GTK_STATE_FLAG_DROP_ACTIVE);
+
+ gtk_snapshot_render_frame (snapshot, context,
rect.x, rect.y,
rect.width, rect.height);
+
+ gtk_style_context_restore (context);
}
if (icon_view->priv->doing_rubberband)