Linux Dialogs in GTK for SNAP compatibility

Discarding use of ZENITY under linux (previously used with the tinyfiledialog) because snapcraft makes  it impossible to use :(. Reimplementation of GTK+ dialogs directly inside vimix code. Note: no changes for OSX. Complete cleanup of cmake file.
This commit is contained in:
Bruno
2021-03-27 13:03:22 +01:00
parent 43d44634f7
commit ee2ce3802f
12 changed files with 650 additions and 178 deletions

View File

@@ -479,7 +479,7 @@ public:
if( FD_ISSET( breakPipe_[0], &tempfds ) ){
// clear pending data from the asynchronous break pipe
char c;
read( breakPipe_[0], &c, 1 );
size_t n = read( breakPipe_[0], &c, 1 );
}
if( break_ )
@@ -534,7 +534,8 @@ public:
break_ = true;
// Send a termination message to the asynchronous break pipe, so select() will return
write( breakPipe_[1], "!", 1 );
if (write( breakPipe_[1], "!", 1 ) < 1)
throw std::runtime_error("AsynchronousBreak failed\n");
}
};