[gtk+] Remove ::state-hint use
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Remove ::state-hint use
- Date: Thu, 2 Sep 2010 13:00:24 +0000 (UTC)
commit ece148eec0f0226df55efac0668255a0e64a6951
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Sep 2 08:56:20 2010 -0400
Remove ::state-hint use
This use of the property was overlooked when it was removed.
We now always behave as if state-hint == TRUE.
gtk/gtkspinbutton.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 19b0029..649b0da 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -787,15 +787,10 @@ gtk_spin_button_expose (GtkWidget *widget,
if (shadow_type != GTK_SHADOW_NONE)
{
gint width, height;
- gboolean state_hint;
GtkStateType state;
- gtk_widget_style_get (widget, "state-hint", &state_hint, NULL);
- if (state_hint)
- state = gtk_widget_has_focus (widget) ?
- GTK_STATE_ACTIVE : gtk_widget_get_state (widget);
- else
- state = GTK_STATE_NORMAL;
+ state = gtk_widget_has_focus (widget) ?
+ GTK_STATE_ACTIVE : gtk_widget_get_state (widget);
gdk_drawable_get_size (priv->panel, &width, &height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]