mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
fix r4646 build error on gtk < 2.10.0 reported by Lacrocivious
This commit is contained in:
11
gtk/util.c
11
gtk/util.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user