From f4a1498c99e15f3932bdc58acddf27d871aa8080 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 12 Nov 2024 20:01:31 +0100 Subject: [PATCH] Reversed control-click to run source files on Linux for the time being --- src/directories.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/directories.cpp b/src/directories.cpp index db36901..1462fa4 100644 --- a/src/directories.cpp +++ b/src/directories.cpp @@ -147,10 +147,13 @@ Directories::Directories() : Gtk::ListViewText(1) { if(iter) { auto filesystem_path = iter->get_value(column_record.path); if(filesystem_path != "") { +#ifdef __APPLE__ GdkModifierType state; +#endif boost::system::error_code ec; if(boost::filesystem::is_directory(boost::filesystem::path(filesystem_path), ec)) row_expanded(path) ? collapse_row(path) : expand_row(path, false); +#ifdef __APPLE__ else if(gtk_get_current_event_state(&state) && (state & (GDK_CONTROL_MASK | GDK_MOD2_MASK))) { if(Project::compiling || Project::debugging) { Info::get().print("Compile or debug in progress"); @@ -166,6 +169,7 @@ Directories::Directories() : Gtk::ListViewText(1) { set_cursor(path); } +#endif else Notebook::get().open(filesystem_path); }