summaryrefslogtreecommitdiff
path: root/gtk/gtkimage.c
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-12-19 14:10:29 +0000
committerRui Matos <tiagomatos@gmail.com>2011-12-19 19:21:16 +0000
commite3d38708abca61bc9dbd059984d137f44736fce9 (patch)
tree63fb7cccd5cb5ca9084c9007c5a0049c9dd21b71 /gtk/gtkimage.c
parentf4b9562f46fa587ad60d6188e20f4afc4d672a28 (diff)
downloadgtk+-e3d38708abca61bc9dbd059984d137f44736fce9.tar.gz
image: Stop setting state flags on the style context for drawing
Diffstat (limited to 'gtk/gtkimage.c')
-rw-r--r--gtk/gtkimage.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 519dfbd2e5..057e750523 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1285,7 +1285,6 @@ gtk_image_draw (GtkWidget *widget,
GtkImage *image;
GtkImagePrivate *priv;
GtkMisc *misc;
- GtkStateFlags state;
GtkStyleContext *context;
gint x, y, width, height;
gint xpad, ypad;
@@ -1298,10 +1297,6 @@ gtk_image_draw (GtkWidget *widget,
priv = image->priv;
context = gtk_widget_get_style_context (widget);
- state = gtk_widget_get_state_flags (widget);
-
- gtk_style_context_save (context);
- gtk_style_context_set_state (context, state);
gtk_misc_get_alignment (misc, &xalign, &yalign);
gtk_misc_get_padding (misc, &xpad, &ypad);
@@ -1328,8 +1323,6 @@ gtk_image_draw (GtkWidget *widget,
x, y);
}
- gtk_style_context_restore (context);
-
return FALSE;
}