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.
This commit is contained in:
Stefan Jeske 1998-12-14 19:13:58 +00:00 committed by Stefan Jeske
parent 7facb75c85
commit c242e9e36c
8 changed files with 42 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -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)