From 0430ae0ca5096cbe936bf780e9eaa1c9f623d652 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 24 May 2014 19:38:56 +0200 Subject: [PATCH] image: Draw the image again An important line of code was removed in 54d5b426fca71dcda22ea5467054fa801556c20a that lead to an undefined variable. Add that line back. --- gtk/gtkimage.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,