aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-08-18 11:40:14 +1000
committernyamatongwe <unknown>2010-08-18 11:40:14 +1000
commit331e722126061c3d89e7bf1cfd3244bf2acfeb91 (patch)
treee0a5b54b83b7235321ceae631fbe690585c91e18 /gtk
parent622ab914257d6106de604d4e91c5c686eb5e3272 (diff)
downloadscintilla-mirror-331e722126061c3d89e7bf1cfd3244bf2acfeb91.tar.gz
Avoid deprecated API gtk_type_class.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/ScintillaGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index cf0dca5f9..d5349ef5b 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -584,7 +584,7 @@ void ScintillaGTK::SizeAllocate(GtkWidget *widget, GtkAllocation *allocation) {
void ScintillaGTK::Initialise() {
//Platform::DebugPrintf("ScintillaGTK::Initialise\n");
parentClass = reinterpret_cast<GtkWidgetClass *>(
- gtk_type_class(gtk_container_get_type()));
+ g_type_class_ref(gtk_container_get_type()));
GTK_WIDGET_SET_FLAGS(PWidget(wMain), GTK_CAN_FOCUS);
GTK_WIDGET_SET_FLAGS(GTK_WIDGET(PWidget(wMain)), GTK_SENSITIVE);