Convert GtkArgs to GParams. Based on patch by John Margaglione. Also do

2001-05-18  Alexander Larsson  <alexl@redhat.com>

	* gtk/gtkspinbutton.c:
	Convert GtkArgs to GParams. Based on patch by John Margaglione.
	Also do size request reasonable for MAXDOUBLE. Previously it printed
	the limits to a buffer and overran it. Instead do it using log10() and
	limit the width to 10 digits.

	* gtk/gtkwidget.c (gtk_widget_get_property):
	Correctly handle setting the parent property to NULL.
This commit is contained in:
Alexander Larsson
2001-05-18 22:31:02 +00:00
committed by Alexander Larsson
parent aa4a41face
commit 7e1acba03c
9 changed files with 278 additions and 101 deletions

View File

@ -1162,7 +1162,10 @@ gtk_widget_get_property (GObject *object,
g_value_set_string (value, "");
break;
case PROP_PARENT:
g_value_set_object (value, G_OBJECT (widget->parent));
if (widget->parent)
g_value_set_object (value, G_OBJECT (widget->parent));
else
g_value_set_object (value, NULL);
break;
case PROP_X:
aux_info =_gtk_widget_get_aux_info (widget, FALSE);