summaryrefslogtreecommitdiff
path: root/gtk/gtkviewport.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2002-01-09 10:28:02 +0000
committerTim Janik <timj@src.gnome.org>2002-01-09 10:28:02 +0000
commitadb892f2c92f2cd984099d567907734710ac5d60 (patch)
tree535d1e22db71e8111bcf1dfda603bd65e906f4ab /gtk/gtkviewport.c
parent8ccfa3edb95ed3fb5d0ba4f3c0a46e8c729a768e (diff)
downloadgtk+-adb892f2c92f2cd984099d567907734710ac5d60.tar.gz
don't cast a possible NULL pointer.
Wed Jan 9 11:23:39 2002 Tim Janik <timj@gtk.org> * 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.
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r--gtk/gtkviewport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 43341fec2d..e10bc95d4d 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -200,10 +200,10 @@ gtk_viewport_get_property (GObject *object,
switch (prop_id)
{
case PROP_HADJUSTMENT:
- g_value_set_object (value, G_OBJECT (viewport->hadjustment));
+ g_value_set_object (value, viewport->hadjustment);
break;
case PROP_VADJUSTMENT:
- g_value_set_object (value, G_OBJECT (viewport->vadjustment));
+ g_value_set_object (value, viewport->vadjustment);
break;
case PROP_SHADOW_TYPE:
g_value_set_enum (value, viewport->shadow_type);