Commit 8abed09a authored by Stefan Jeske's avatar Stefan Jeske

Grey out arrows if wrap == FALSE and interval borders are reached.

* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
  arrows if wrap == FALSE and interval borders are reached.
parent 5c42d2f6
Sun Dec 6 14:27:35 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
arrows if wrap == FALSE and interval borders are reached.
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
......
Sun Dec 6 14:27:35 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
arrows if wrap == FALSE and interval borders are reached.
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
......
Sun Dec 6 14:27:35 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
arrows if wrap == FALSE and interval borders are reached.
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
......
Sun Dec 6 14:27:35 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
arrows if wrap == FALSE and interval borders are reached.
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
......
Sun Dec 6 14:27:35 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
arrows if wrap == FALSE and interval borders are reached.
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
......
Sun Dec 6 14:27:35 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
arrows if wrap == FALSE and interval borders are reached.
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
......
Sun Dec 6 14:27:35 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): Grey out
arrows if wrap == FALSE and interval borders are reached.
Sat Dec 5 21:07:09 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkaspectframe.c (gtk_aspect_frame_size_allocate): Fixed
......
......@@ -560,21 +560,34 @@ gtk_spin_button_draw_arrow (GtkSpinButton *spin_button,
if (GTK_WIDGET_DRAWABLE (spin_button))
{
if (spin_button->in_child == arrow)
{
if (spin_button->click_child == arrow)
state_type = GTK_STATE_ACTIVE;
else
state_type = GTK_STATE_PRELIGHT;
}
else
state_type = GTK_STATE_NORMAL;
if (spin_button->click_child == arrow)
shadow_type = GTK_SHADOW_IN;
if (!spin_button->wrap &&
(((arrow == GTK_ARROW_UP &&
(spin_button->adjustment->upper - spin_button->adjustment->value
<= EPSILON))) ||
((arrow == GTK_ARROW_DOWN &&
(spin_button->adjustment->value - spin_button->adjustment->lower
<= EPSILON)))))
{
shadow_type = GTK_SHADOW_ETCHED_IN;
state_type = GTK_STATE_NORMAL;
}
else
shadow_type = GTK_SHADOW_OUT;
{
if (spin_button->in_child == arrow)
{
if (spin_button->click_child == arrow)
state_type = GTK_STATE_ACTIVE;
else
state_type = GTK_STATE_PRELIGHT;
}
else
state_type = GTK_STATE_NORMAL;
if (spin_button->click_child == arrow)
shadow_type = GTK_SHADOW_IN;
else
shadow_type = GTK_SHADOW_OUT;
}
if (arrow == GTK_ARROW_UP)
{
if (spin_button->shadow_type != GTK_SHADOW_NONE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment