#include "wx/module.h"
#endif
-#include <gtk/gtkversion.h>
-#if GTK_CHECK_VERSION(2, 9, 0)
- // gtk_object_sink
- #undef GTK_DISABLE_DEPRECATED
-#endif
+
#include <gtk/gtk.h>
// compatibility with older GTK+ versions:
gs_gtkStyle = gtk_rc_get_style(widget);
wxASSERT( gs_gtkStyle != NULL );
g_object_ref(gs_gtkStyle);
- gtk_object_sink((GtkObject*)widget);
+ g_object_ref_sink(widget);
}
GtkIconSet *iconset = gtk_style_lookup_icon_set(gs_gtkStyle, stockid);
delete m_dc;
if (m_text_renderer)
- gtk_object_sink( GTK_OBJECT(m_text_renderer) );
+ g_object_ref_sink(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);
- gtk_object_sink(GTK_OBJECT(m_menu));
+ g_object_ref_sink(m_menu);
m_owner = (GtkWidget*) NULL;
m_toolbar = GTK_TOOLBAR( gtk_toolbar_new() );
m_tooltips = gtk_tooltips_new();
g_object_ref(m_tooltips);
- gtk_object_sink(GTK_OBJECT(m_tooltips));
+ g_object_ref_sink(m_tooltips);
GtkSetStyle();
if (style & wxTB_DOCKABLE)