} // extern "C"
-// some newer functions not available in older versions of GTK+:
-#if !GTK_CHECK_VERSION(2,9,0)
-#define g_object_ref_sink(x) gtk_object_sink(GTK_OBJECT(x))
-#endif
-
-
// ----------------------------------------------------------------------------
// various private helper functions
// ----------------------------------------------------------------------------
delete m_dc;
if (m_text_renderer)
- g_object_ref_sink(m_text_renderer);
+ gtk_object_sink( GTK_OBJECT(m_text_renderer) );
}
wxDC *wxDataViewCustomRenderer::GetDC()
// NB: keep reference to the menu so that it is not destroyed behind
// our back by GTK+ e.g. when it is removed from menubar:
g_object_ref(m_menu);
- g_object_ref_sink(m_menu);
+ gtk_object_sink(GTK_OBJECT(m_menu));
m_owner = (GtkWidget*) NULL;
m_toolbar = GTK_TOOLBAR( gtk_toolbar_new() );
m_tooltips = gtk_tooltips_new();
g_object_ref(m_tooltips);
- g_object_ref_sink(m_tooltips);
+ gtk_object_sink(GTK_OBJECT(m_tooltips));
GtkSetStyle();
if (style & wxTB_DOCKABLE)