[nautilus] tree-drag-dest: set the right style class



commit 18e3369f02c4ff6a3eb01048e623fff8eb9aded4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Dec 14 01:21:48 2010 +0100

    tree-drag-dest: set the right style class

 libnautilus-private/nautilus-tree-view-drag-dest.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/libnautilus-private/nautilus-tree-view-drag-dest.c b/libnautilus-private/nautilus-tree-view-drag-dest.c
index b91e524..432b95a 100644
--- a/libnautilus-private/nautilus-tree-view-drag-dest.c
+++ b/libnautilus-private/nautilus-tree-view-drag-dest.c
@@ -184,6 +184,7 @@ highlight_draw (GtkWidget *widget,
 	GdkWindow *bin_window;
 	int width;
 	int height;
+	GtkStyleContext *style;
 
         /* FIXMEchpe: is bin window right here??? */
         bin_window = gtk_tree_view_get_bin_window (GTK_TREE_VIEW (widget));
@@ -191,10 +192,17 @@ highlight_draw (GtkWidget *widget,
         width = gdk_window_get_width (bin_window);
         height = gdk_window_get_height (bin_window);
 
-        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);
+
 	return FALSE;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]