Repository navigation
Porting to Gtk::Application - part 1 - #2497
Conversation
| freopen("NUL", "w", stdout); | ||
| freopen("NUL", "w", stderr); | ||
| freopen("NUL", "r", stdin); | ||
| ios::sync_with_stdio(); |
There was a problem hiding this comment.
OK. But I don't even know why such code exists: the comment left by blackwarthog does not mention what bug it prevents: stderr, stdout, stdin does not even exist on Windows without the --console approach.
There was a problem hiding this comment.
I suggest removing this code. In any case, it is better to return the "strange" error and fix it.
003305e to
41187f0
Compare
180e136 to
7620d9c
Compare
|
@ice0 please read and review last commit |
afb142b to
a77b7b4
Compare
|
@rodolforg |
|
OK :) |
a77b7b4 to
a4df64d
Compare
|
I need to make one more PR (fix windows plugins) before this will be merged. |
|
@rodolforg |
Everybody just wants the root path, not the bin path binary_path : executable file path, including its filename e.g. /usr/bin/synfigstudio base_path: directory path of executable/binary e.g. /usr/bin root_path: the root of folders like bin/, share/, etc. e.g. /usr
Although I'm not sure why it exists...
a4df64d to
e77d6be
Compare
e77d6be to
0db1342
Compare
|
Rebased! |
|
Merged. Thank you! |
Steps to reproduce the problem: 1. Select Bline Tool 2. Change a parameter in Tool Options Panel (e.g. Opacity or Line Width) 3. Restart Synfig Studio 4. Select Bline Tool and see the change was not saved. Reason: Since synfig#2497, we finally use Gtk::Application as base class for `App`. `App` is destructed before `MainWindow` is closed (basically at start). So, stuff done on quitting before merging synfig#2497 was not done on the right time now. As `signal-shutdown` is only called in primary instance of Gtk::Application, it's the proper moment to delete and finish stuff on application exit.
Steps to reproduce the problem: 1. Select Bline Tool 2. Change a parameter in Tool Options Panel (e.g. Opacity or Line Width) 3. Restart Synfig Studio 4. Select Bline Tool and see the change was not saved. Reason: Since #2497, we finally use Gtk::Application as base class for `App`. `App` is destructed before `MainWindow` is closed (basically at start). So, stuff done on quitting before merging #2497 was not done on the right time now. As `signal-shutdown` is only called in primary instance of Gtk::Application, it's the proper moment to delete and finish stuff on application exit.
Need to test:
--consoleis working on MS Windowssynfigtool still works