From f3350286b3e6e41db9425b16946b4278693a1138 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Thu, 18 May 2017 11:28:12 +0200 Subject: [PATCH] Quit deprecating stuff GTK+ --- flips-gtk.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flips-gtk.cpp b/flips-gtk.cpp index 599b612..dc64339 100644 --- a/flips-gtk.cpp +++ b/flips-gtk.cpp @@ -14,6 +14,9 @@ #include "flips.h" #ifdef FLIPS_GTK +#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_10 +//I'd prefer enabling this, but that makes the GTK headers throw about 500 warnings about GtkFileChooserNative. probably missing ifdef +//#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_10 #include class file_gtk : public file { @@ -754,7 +757,6 @@ static void a_SetEmulatorFor(GtkButton* widget, gpointer user_data) static void SetEmuActivate(GtkTreeView* tree_view, GtkTreePath* path, GtkTreeViewColumn* column, gpointer user_data) { GtkListStore* list = GTK_LIST_STORE(gtk_tree_view_get_model(tree_view)); - int item = gtk_tree_path_get_indices(path)[0]; GtkTreeModel* model = gtk_tree_view_get_model(tree_view); GtkTreeIter iter;