Browse Source

Reversed control-click to run source files on Linux for the time being

merge-requests/181/head
eidheim 1 year ago
parent
commit
f4a1498c99
  1. 4
      src/directories.cpp

4
src/directories.cpp

@ -147,10 +147,13 @@ Directories::Directories() : Gtk::ListViewText(1) {
if(iter) { if(iter) {
auto filesystem_path = iter->get_value(column_record.path); auto filesystem_path = iter->get_value(column_record.path);
if(filesystem_path != "") { if(filesystem_path != "") {
#ifdef __APPLE__
GdkModifierType state; GdkModifierType state;
#endif
boost::system::error_code ec; boost::system::error_code ec;
if(boost::filesystem::is_directory(boost::filesystem::path(filesystem_path), ec)) if(boost::filesystem::is_directory(boost::filesystem::path(filesystem_path), ec))
row_expanded(path) ? collapse_row(path) : expand_row(path, false); 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))) { else if(gtk_get_current_event_state(&state) && (state & (GDK_CONTROL_MASK | GDK_MOD2_MASK))) {
if(Project::compiling || Project::debugging) { if(Project::compiling || Project::debugging) {
Info::get().print("Compile or debug in progress"); Info::get().print("Compile or debug in progress");
@ -166,6 +169,7 @@ Directories::Directories() : Gtk::ListViewText(1) {
set_cursor(path); set_cursor(path);
} }
#endif
else else
Notebook::get().open(filesystem_path); Notebook::get().open(filesystem_path);
} }

Loading…
Cancel
Save