diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-08 00:11:42 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-13 15:05:42 +0100 |
commit | 85faafb667ca2ab548347814595ac9b305c024b8 (patch) | |
tree | 8ff47f29fdfac6d1302238ac20d65d6152ab61d3 /libcaja-private | |
parent | 01e61137a215658271f8b727ba56b8b2272fe1b2 (diff) | |
download | caja-85faafb667ca2ab548347814595ac9b305c024b8.tar.bz2 caja-85faafb667ca2ab548347814595ac9b305c024b8.tar.xz |
Gtk3 tree-drag-dest: set the right style class
taken from:
https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=18e3369
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-tree-view-drag-dest.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libcaja-private/caja-tree-view-drag-dest.c b/libcaja-private/caja-tree-view-drag-dest.c index 2d76a1c1..accf7bb5 100644 --- a/libcaja-private/caja-tree-view-drag-dest.c +++ b/libcaja-private/caja-tree-view-drag-dest.c @@ -199,6 +199,9 @@ highlight_expose (GtkWidget *widget, GdkWindow *bin_window; int width; int height; +#if GTK_CHECK_VERSION(3,0,0) + GtkStyleContext *style; +#endif /* FIXMEchpe: is bin window right here??? */ bin_window = gtk_tree_view_get_bin_window (GTK_TREE_VIEW (widget)); @@ -207,9 +210,16 @@ highlight_expose (GtkWidget *widget, height = gdk_window_get_height(bin_window); #if GTK_CHECK_VERSION(3,0,0) - gtk_render_focus (gtk_widget_get_style_context (widget), + style = gtk_widget_get_style_context (widget); + + gtk_style_context_save (style); + gtk_style_context_add_class (style, "treeview-drop-indicator"); + + gtk_render_focus (style, cr, 0, 0, width, height); + + gtk_style_context_restore (style); #else gtk_paint_focus (gtk_widget_get_style (widget), bin_window, |