diff options
author | John Ralls <jralls@ceridwen.us> | 2011-09-11 10:48:58 -0700 |
---|---|---|
committer | John Ralls <jralls@ceridwen.us> | 2011-09-11 10:49:54 -0700 |
commit | 7cff8c4403a05fff3afebc7975c49fa2e5fe3d21 (patch) | |
tree | cbc11a474d67ff393d5731324f1e855dc514b2ad /gtk/gtkdnd-quartz.c | |
parent | 442b3d265a5bf9df0a6c3448c4579557e2d7cdbe (diff) | |
download | gtk+-7cff8c4403a05fff3afebc7975c49fa2e5fe3d21.tar.gz |
Quartz: gtk_drag_highlight_draw(): Set the GtkStyleContext to the widget.
Otherwise there's no actual context to save and restore.
Diffstat (limited to 'gtk/gtkdnd-quartz.c')
-rw-r--r-- | 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 49db14e91e..b577bb6f10 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); |