From 7cff8c4403a05fff3afebc7975c49fa2e5fe3d21 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 11 Sep 2011 10:48:58 -0700 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c index 49db14e91..b577bb6f1 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); -- 2.43.2