From adb892f2c92f2cd984099d567907734710ac5d60 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Wed, 9 Jan 2002 10:28:02 +0000 Subject: don't cast a possible NULL pointer. Wed Jan 9 11:23:39 2002 Tim Janik * gtk/gtklayout.c (gtk_layout_get_property): * gtk/gtkspinbutton.c (gtk_spin_button_get_property): * gtk/gtktreeview.c (gtk_tree_view_get_property): * gtk/gtkwidget.c (gtk_widget_get_property): * gtk/gtkfontsel.c (gtk_font_selection_get_property): * gtk/gtkrange.c (gtk_range_get_property): * gtk/gtkviewport.c (gtk_viewport_get_property): * gtk/gtkprogressbar.c (gtk_progress_bar_get_property): don't cast a possible NULL pointer. --- gtk/gtklayout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtklayout.c') diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index 5e8363ffdc..3948fb0fd7 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -656,10 +656,10 @@ gtk_layout_get_property (GObject *object, switch (prop_id) { case PROP_HADJUSTMENT: - g_value_set_object (value, G_OBJECT (layout->hadjustment)); + g_value_set_object (value, layout->hadjustment); break; case PROP_VADJUSTMENT: - g_value_set_object (value, G_OBJECT (layout->vadjustment)); + g_value_set_object (value, layout->vadjustment); break; case PROP_WIDTH: g_value_set_uint (value, layout->width); -- cgit v1.2.1