diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2012-01-05 03:09:27 +0200 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2012-01-06 18:35:37 +0200 |
commit | 19966185695648e50961a3f9c0151bfa73b1a206 (patch) | |
tree | e398f5fa942cdc022e0c12048e075c0ca63353fc /gtk/gtkspinbutton.c | |
parent | e2dd95aced36fcc379691e0382f3ec092a4a604c (diff) | |
download | gtk+-19966185695648e50961a3f9c0151bfa73b1a206.tar.gz |
gtkspinbutton: Don't hilight buttons when !editable
Don't hilight the buttons on mouse over when 'editable' property is set to
'FALSE.
https://bugzilla.gnome.org/show_bug.cgi?id=667229
Diffstat (limited to 'gtk/gtkspinbutton.c')
-rw-r--r-- | gtk/gtkspinbutton.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index bff3d66071..bd4f8a3534 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -816,7 +816,8 @@ gtk_spin_button_panel_get_state (GtkSpinButton *spin_button, GtkStateFlags state; GtkSpinButtonPrivate *priv = spin_button->priv; - if (gtk_spin_button_panel_at_limit (spin_button, panel)) + if (gtk_spin_button_panel_at_limit (spin_button, panel) || + !gtk_editable_get_editable (GTK_EDITABLE (spin_button))) state = GTK_STATE_FLAG_INSENSITIVE; else { |