summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-04 22:11:54 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-13 15:05:41 +0100
commitd74c80ebae7d2acd4804ac1d20f6d77b1df53a2a (patch)
treeb0dba8967f4b9c3f16e6eeb050bafa863456ce3f /libcaja-private
parent569a001e73f2963f239da92c433e62de2a030509 (diff)
downloadcaja-d74c80ebae7d2acd4804ac1d20f6d77b1df53a2a.tar.bz2
caja-d74c80ebae7d2acd4804ac1d20f6d77b1df53a2a.tar.xz
Gtk3 tree-view-drag-dest: port to GtkStyleContext
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=f8bdf9c
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-tree-view-drag-dest.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libcaja-private/caja-tree-view-drag-dest.c b/libcaja-private/caja-tree-view-drag-dest.c
index 22a5cc51..2d76a1c1 100644
--- a/libcaja-private/caja-tree-view-drag-dest.c
+++ b/libcaja-private/caja-tree-view-drag-dest.c
@@ -206,18 +206,19 @@ highlight_expose (GtkWidget *widget,
width = gdk_window_get_width(bin_window);
height = gdk_window_get_height(bin_window);
- gtk_paint_focus (gtk_widget_get_style (widget),
#if GTK_CHECK_VERSION(3,0,0)
- cr,
- gtk_widget_get_state (widget),
+ gtk_render_focus (gtk_widget_get_style_context (widget),
+ cr,
+ 0, 0, width, height);
#else
+ gtk_paint_focus (gtk_widget_get_style (widget),
bin_window,
gtk_widget_get_state (widget),
NULL,
-#endif
widget,
"treeview-drop-indicator",
0, 0, width, height);
+#endif
return FALSE;
}