[gtk+/gtk-3-4] spinbutton: fix a typo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-4] spinbutton: fix a typo
- Date: Sun, 15 Jul 2012 17:00:10 +0000 (UTC)
commit 195da30575680e5d561e90be8f0ab71ea9f524bb
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 3092bc1..25196d9 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -791,7 +791,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;
@@ -854,7 +854,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]