[gtk+/wip/unfocused-fixes: 19/27] hsv: 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: 19/27] hsv: Stop setting state flags on the style context for drawing
- Date: Mon, 19 Dec 2011 16:26:02 +0000 (UTC)
commit 00dda4180132545cf2919b90215c19a64079b7b8
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Dec 19 13:37:19 2011 +0000
hsv: Stop setting state flags on the style context for drawing
gtk/gtkhsv.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index 6266b4f..044a3a3 100644
--- a/gtk/gtkhsv.c
+++ b/gtk/gtkhsv.c
@@ -1007,7 +1007,6 @@ paint_triangle (GtkHSV *hsv,
gint stride;
int width, height;
GtkStyleContext *context;
- GtkStateFlags state;
priv = hsv->priv;
width = gtk_widget_get_allocated_width (widget);
@@ -1153,8 +1152,6 @@ paint_triangle (GtkHSV *hsv,
context = gtk_widget_get_style_context (widget);
gtk_style_context_save (context);
- state = gtk_widget_get_state_flags (widget);
- gtk_style_context_set_state (context, state);
if (INTENSITY (r, g, b) > 0.5)
{
@@ -1214,19 +1211,12 @@ gtk_hsv_draw (GtkWidget *widget,
if (draw_focus && priv->focus_on_ring)
{
GtkStyleContext *context;
- GtkStateFlags state;
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_render_focus (context, cr, 0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
-
- gtk_style_context_restore (context);
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]