diff options
author | Benjamin Otte <otte@redhat.com> | 2014-05-24 19:38:56 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-05-24 19:38:56 +0200 |
commit | 0430ae0ca5096cbe936bf780e9eaa1c9f623d652 (patch) | |
tree | 311d79d860a4e68920c6447be3b345a4b44873cc /gtk | |
parent | 1cbace5f68602575b24627e0e40a1792fb87a97d (diff) | |
download | gtk+-0430ae0ca5096cbe936bf780e9eaa1c9f623d652.tar.gz |
image: Draw the image again
An important line of code was removed in
54d5b426fca71dcda22ea5467054fa801556c20a that lead to an undefined
variable. Add that line back.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkimage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index df2cc3f003..f806cc96a7 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -1623,14 +1623,17 @@ gtk_image_draw (GtkWidget *widget, GtkStyleContext *context; gint x, y, width, height, baseline; gfloat xalign, yalign; + GtkStateFlags state; GtkBorder border; - + g_return_val_if_fail (GTK_IS_IMAGE (widget), FALSE); image = GTK_IMAGE (widget); priv = image->priv; context = gtk_widget_get_style_context (widget); + state = gtk_widget_get_state_flags (GTK_WIDGET (image)); + gtk_style_context_get_border (context, state, &border); gtk_render_background (context, cr, 0, 0, |