[gtk+] image: Draw the image again



commit 0430ae0ca5096cbe936bf780e9eaa1c9f623d652
Author: Benjamin Otte <otte redhat com>
Date:   Sat May 24 19:38:56 2014 +0200

    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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index df2cc3f..f806cc9 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,


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