[nautilus: 9/18] tree-view-drag-dest: port to GtkStyleContext



commit f8bdf9c68ae156506d04f198e054e9488845c173
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Dec 6 15:40:32 2010 +0100

    tree-view-drag-dest: port to GtkStyleContext

 libnautilus-private/nautilus-tree-view-drag-dest.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/libnautilus-private/nautilus-tree-view-drag-dest.c b/libnautilus-private/nautilus-tree-view-drag-dest.c
index 3b349fa..b91e524 100644
--- a/libnautilus-private/nautilus-tree-view-drag-dest.c
+++ b/libnautilus-private/nautilus-tree-view-drag-dest.c
@@ -191,12 +191,9 @@ highlight_draw (GtkWidget *widget,
         width = gdk_window_get_width (bin_window);
         height = gdk_window_get_height (bin_window);
 
-        gtk_paint_focus (gtk_widget_get_style (widget),
-                         cr,
-                         gtk_widget_get_state (widget),
-                         widget,
-                         "treeview-drop-indicator",
-                         0, 0, width, height);
+        gtk_render_focus (gtk_widget_get_style_context (widget),
+			  cr,
+			  0, 0, width, height);
 
 	return FALSE;
 }



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