fix r4646 build error on gtk < 2.10.0 reported by Lacrocivious

This commit is contained in:
Charles Kerr
2008-01-15 17:55:09 +00:00
parent 6d799f0f89
commit 3c4ad2caec
3 changed files with 14 additions and 1 deletions

View File

@@ -454,3 +454,14 @@ on_tree_view_button_pressed (GtkWidget * view,
return FALSE;
}
gpointer
tr_object_ref_sink( gpointer object )
{
#if GLIB_CHECK_VERSION(2,10,0)
g_object_ref_sink( object );
#else
g_object_ref( object );
gtk_object_sink( GTK_OBJECT( object ) );
#endif
return object;
}