[gtk+] Revert "progressbar: Set state flags on draw"



commit f4c698ef9391c459ac722f44bbfd05b18669f184
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Dec 19 20:59:06 2011 +0000

    Revert "progressbar: Set state flags on draw"
    
    This reverts commit 6ed591871862ec87ee66fe69dca5c42087a12160 which is no
    longer needed as the style context now has the state flags updated when going
    into draw.

 gtk/gtkprogressbar.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index 33439a0..319ac1a 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -759,7 +759,6 @@ gtk_progress_bar_paint_activity (GtkProgressBar *pbar,
     }
 
   gtk_style_context_save (context);
-  gtk_style_context_set_state (context, state);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_PROGRESSBAR);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_PULSE);
 
@@ -814,7 +813,6 @@ gtk_progress_bar_paint_continuous (GtkProgressBar *pbar,
     }
 
   gtk_style_context_save (context);
-  gtk_style_context_set_state (context, state);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_PROGRESSBAR);
 
   gtk_render_activity (context, cr, area.x, area.y, area.width, area.height);
@@ -921,7 +919,6 @@ gtk_progress_bar_paint_text (GtkProgressBar *pbar,
     }
 
   gtk_style_context_save (context);
-  gtk_style_context_set_state (context, state);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_TROUGH);
 
   if (start_clip.width > 0 && start_clip.height > 0)
@@ -951,7 +948,6 @@ gtk_progress_bar_paint_text (GtkProgressBar *pbar,
   cairo_clip (cr);
 
   gtk_style_context_save (context);
-  gtk_style_context_set_state (context, state);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_PROGRESSBAR);
 
   gtk_render_layout (context, cr, x, y, layout);
@@ -991,7 +987,6 @@ gtk_progress_bar_draw (GtkWidget      *widget,
   height = gtk_widget_get_allocated_height (widget);
 
   gtk_style_context_save (context);
-  gtk_style_context_set_state (context, state);
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_TROUGH);
 
   gtk_render_background (context, cr, 0, 0, width, height);



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