[gtk+] Quartz: gtk_drag_highlight_draw(): Set the GtkStyleContext to the widget.



commit 7cff8c4403a05fff3afebc7975c49fa2e5fe3d21
Author: John Ralls <jralls ceridwen us>
Date:   Sun Sep 11 10:48:58 2011 -0700

    Quartz: gtk_drag_highlight_draw(): Set the GtkStyleContext to the widget.
    
    
    Otherwise there's no actual context to save and restore.

 gtk/gtkdnd-quartz.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index 49db14e..b577bb6 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -348,7 +348,7 @@ gtk_drag_highlight_draw (GtkWidget *widget,
 {
   int width = gtk_widget_get_allocated_width (widget);
   int height = gtk_widget_get_allocated_height (widget);
-  GtkStyleContext *context;
+  GtkStyleContext *context = gtk_widget_get_style_context (widget);
 
   gtk_style_context_save (context);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_DND);



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