gtk+ r21500 - in branches/gtk-2-14: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21500 - in branches/gtk-2-14: . gtk
- Date: Tue, 23 Sep 2008 22:23:10 +0000 (UTC)
Author: matthiasc
Date: Tue Sep 23 22:23:09 2008
New Revision: 21500
URL: http://svn.gnome.org/viewvc/gtk+?rev=21500&view=rev
Log:
2008-09-23 Matthias Clasen <mclasen redhat com>
* gtk/gtkspinbutton.c: Warn if the adjustment has nonzero page size.
Modified:
branches/gtk-2-14/ChangeLog
branches/gtk-2-14/gtk/gtkspinbutton.c
Modified: branches/gtk-2-14/gtk/gtkspinbutton.c
==============================================================================
--- branches/gtk-2-14/gtk/gtkspinbutton.c (original)
+++ branches/gtk-2-14/gtk/gtkspinbutton.c Tue Sep 23 22:23:09 2008
@@ -1684,6 +1684,13 @@
return GTK_WIDGET (spin);
}
+static void
+warn_nonzero_page_size (GtkAdjustment *adjustment)
+{
+ if (gtk_adjustment_get_page_size (adjustment) != 0.0)
+ g_warning ("GtkSpinButton: setting an adjustment with non-zero page size is deprecated");
+}
+
/* Callback used when the spin button's adjustment changes. We need to redraw
* the arrows when the adjustment's range changes, and reevaluate our size request.
*/
@@ -1695,6 +1702,7 @@
spin_button = GTK_SPIN_BUTTON (data);
spin_button->timer_step = spin_button->adjustment->step_increment;
+ warn_nonzero_page_size (adjustment);
gtk_widget_queue_resize (GTK_WIDGET (spin_button));
}
@@ -1734,6 +1742,7 @@
G_CALLBACK (adjustment_changed_cb),
spin_button);
spin_button->timer_step = spin_button->adjustment->step_increment;
+ warn_nonzero_page_size (adjustment);
}
gtk_widget_queue_resize (GTK_WIDGET (spin_button));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]