Commit c242e9e3 authored by Stefan Jeske's avatar Stefan Jeske Committed by Stefan Jeske

Only call gtk_spin_button_update if the spinbutton is editable.

Mon Dec 14 20:04:31 1998  Stefan Jeske  <stefan@gtk.org>

	* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
 	the spinbutton is editable.
parent 7facb75c
Mon Dec 14 20:04:31 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
the spinbutton is editable.
Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com>
* HACKING: Added gettext-10.35
......
Mon Dec 14 20:04:31 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
the spinbutton is editable.
Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com>
* HACKING: Added gettext-10.35
......
Mon Dec 14 20:04:31 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
the spinbutton is editable.
Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com>
* HACKING: Added gettext-10.35
......
Mon Dec 14 20:04:31 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
the spinbutton is editable.
Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com>
* HACKING: Added gettext-10.35
......
Mon Dec 14 20:04:31 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
the spinbutton is editable.
Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com>
* HACKING: Added gettext-10.35
......
Mon Dec 14 20:04:31 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
the spinbutton is editable.
Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com>
* HACKING: Added gettext-10.35
......
Mon Dec 14 20:04:31 1998 Stefan Jeske <stefan@gtk.org>
* gtk/gtkspinbutton.c: Only call gtk_spin_button_update if
the spinbutton is editable.
Mon Dec 14 12:24:13 1998 Owen Taylor <otaylor@redhat.com>
* HACKING: Added gettext-10.35
......
......@@ -700,7 +700,8 @@ gtk_spin_button_focus_out (GtkWidget *widget,
g_return_val_if_fail (GTK_IS_SPIN_BUTTON (widget), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
gtk_spin_button_update (GTK_SPIN_BUTTON (widget));
if (GTK_EDITABLE (widget)->editable)
gtk_spin_button_update (GTK_SPIN_BUTTON (widget));
return GTK_WIDGET_CLASS (parent_class)->focus_out_event (widget, event);
}
......@@ -726,7 +727,8 @@ gtk_spin_button_button_press (GtkWidget *widget,
gtk_grab_add (widget);
spin->button = event->button;
gtk_spin_button_update (spin);
if (GTK_EDITABLE (widget)->editable)
gtk_spin_button_update (spin);
if (event->y <= widget->requisition.height / 2)
{
......@@ -969,8 +971,9 @@ gtk_spin_button_key_press (GtkWidget *widget,
key_repeat = (event->time == spin->ev_time);
if (key == GDK_Up || key == GDK_Down ||
key == GDK_Page_Up || key == GDK_Page_Down)
if (GTK_EDITABLE (widget)->editable &&
(key == GDK_Up || key == GDK_Down ||
key == GDK_Page_Up || key == GDK_Page_Down))
gtk_spin_button_update (spin);
switch (key)
......
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