[gtk+/wip/unfocused-fixes: 22/27] image: Stop setting state flags on the style context for drawing
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/unfocused-fixes: 22/27] image: Stop setting state flags on the style context for drawing
- Date: Mon, 19 Dec 2011 16:26:18 +0000 (UTC)
commit 936ec845d8ff8d48e9f8d20dd2410b9c4c7a2783
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Dec 19 14:10:29 2011 +0000
image: Stop setting state flags on the style context for drawing
gtk/gtkimage.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 519dfbd..057e750 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]