[gtk+] spinbutton: fix a typo



commit 1cbd84633d940bebe7275ab97a00ad4c4aa6cde1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jun 12 09:36:55 2012 -0400

    spinbutton: fix a typo
    
    GTK_STATE_* -> GTK_STATE_FLAG_*

 gtk/gtkspinbutton.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 8dd3e96..8aaacae 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -792,7 +792,7 @@ gtk_spin_button_panel_get_state (GtkSpinButton *spin_button,
   else
     {
       if (priv->click_child == panel)
-        state |= GTK_STATE_ACTIVE;
+        state |= GTK_STATE_FLAG_ACTIVE;
       else if (priv->in_child == panel &&
                priv->click_child == NULL)
         state |= GTK_STATE_FLAG_PRELIGHT;
@@ -855,7 +855,7 @@ gtk_spin_button_panel_get_allocations (GtkSpinButton *spin_button,
   gtk_widget_get_preferred_size (widget, &requisition, NULL);
 
   context = gtk_widget_get_style_context (GTK_WIDGET (spin_button));
-  gtk_style_context_get_border (context, GTK_STATE_NORMAL, &space);
+  gtk_style_context_get_border (context, GTK_STATE_FLAG_NORMAL, &space);
 
   req_height = requisition.height - gtk_widget_get_margin_top (widget) - gtk_widget_get_margin_bottom (widget);
   down_panel_width = gtk_spin_button_panel_get_width (spin_button, priv->down_panel);



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