diff --git a/libgthumb/gth-image-list.c b/libgthumb/gth-image-list.c
index aec9d02..e56c86a 100644
--- a/libgthumb/gth-image-list.c
+++ b/libgthumb/gth-image-list.c
@@ -1848,7 +1848,7 @@ set_scroll_adjustments (GthImageList  *image_list,
 	if (image_list->priv->hadjustment != hadj) {
 		image_list->priv->hadjustment = hadj;
 		g_object_ref (image_list->priv->hadjustment);
-		gtk_object_sink (GTK_OBJECT (image_list->priv->hadjustment));
+		g_object_ref_sink (image_list->priv->hadjustment);
 
 		g_signal_connect (G_OBJECT (image_list->priv->hadjustment),
 				  "value_changed",
@@ -1863,7 +1863,7 @@ set_scroll_adjustments (GthImageList  *image_list,
 	if (image_list->priv->vadjustment != vadj) {
 		image_list->priv->vadjustment = vadj;
 		g_object_ref (image_list->priv->vadjustment);
-		gtk_object_sink (GTK_OBJECT (image_list->priv->vadjustment));
+		g_object_ref_sink (image_list->priv->vadjustment);
 
 		g_signal_connect (G_OBJECT (image_list->priv->vadjustment),
 				  "value_changed",
diff --git a/src/gth-image-selector.c b/src/gth-image-selector.c
index 578cf3a..58dc9c7 100644
--- a/src/gth-image-selector.c
+++ b/src/gth-image-selector.c
@@ -1759,7 +1759,7 @@ set_scroll_adjustments (GtkWidget     *widget,
         if (priv->hadj != hadj) {
                 priv->hadj = hadj;
                 g_object_ref (priv->hadj);
-                gtk_object_sink (GTK_OBJECT (priv->hadj));
+                g_object_ref_sink (priv->hadj);
 
 		g_signal_connect (G_OBJECT (priv->hadj),
 				  "value_changed",
@@ -1770,7 +1770,7 @@ set_scroll_adjustments (GtkWidget     *widget,
         if (priv->vadj != vadj) {
 		priv->vadj = vadj;
 		g_object_ref (priv->vadj);
-		gtk_object_sink (GTK_OBJECT (priv->vadj));
+		g_object_ref_sink (priv->vadj);
 
 		g_signal_connect (G_OBJECT (priv->vadj),
 				  "value_changed",
@@ -1887,9 +1887,9 @@ init (GthImageSelector *selector)
 								   1.0, 1.0, 1.0));
 
 	g_object_ref (selector->priv->hadj);
-	gtk_object_sink (GTK_OBJECT (selector->priv->hadj));
+	g_object_ref_sink (selector->priv->hadj);
 	g_object_ref (selector->priv->vadj);
-	gtk_object_sink (GTK_OBJECT (selector->priv->vadj));
+	g_object_ref_sink (selector->priv->vadj);
 
 	g_signal_connect (G_OBJECT (selector->priv->hadj),
 			  "value_changed",
