aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-09-03 18:21:03 +1000
committerNeil <nyamatongwe@gmail.com>2015-09-03 18:21:03 +1000
commit8baed11d7ef1fd794cbbdf250e96b7cefec34ca0 (patch)
treec3b887d5b64056ac7167826fad15603086f683c9 /gtk/PlatGTK.cxx
parent9788889a60b9173015ca30d0b81cc327484b98ac (diff)
downloadscintilla-mirror-8baed11d7ef1fd794cbbdf250e96b7cefec34ca0.tar.gz
Removing support for old GTK+ versions. Minimum GTK+ is 2.18 with glib 2.22.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 3f7fc7ec0..c63583cf3 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -2078,12 +2078,7 @@ Menu::Menu() : mid(0) {}
void Menu::CreatePopUp() {
Destroy();
mid = gtk_menu_new();
-#if GLIB_CHECK_VERSION(2,10,0)
- g_object_ref_sink(G_OBJECT(mid));
-#else
- g_object_ref(G_OBJECT(mid));
- gtk_object_sink(GTK_OBJECT(G_OBJECT(mid)));
-#endif
+ g_object_ref_sink(G_OBJECT(mid));
}
void Menu::Destroy() {