|
|
|
@ -384,9 +384,10 @@ void Notebook::toggle_split() { |
|
|
|
show_all(); |
|
|
|
show_all(); |
|
|
|
//Make sure the position is correct
|
|
|
|
//Make sure the position is correct
|
|
|
|
//TODO: report bug to gtk if it is not fixed in gtk3.22
|
|
|
|
//TODO: report bug to gtk if it is not fixed in gtk3.22
|
|
|
|
//while(g_main_context_pending(NULL)) //Caused freeze on OS X sometimes
|
|
|
|
Glib::signal_timeout().connect([this] { |
|
|
|
//g_main_context_iteration(NULL, false);
|
|
|
|
set_position(get_width()/2); |
|
|
|
set_position(get_width()/2); |
|
|
|
return false; |
|
|
|
|
|
|
|
}, 50); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
for(size_t c=size()-1;c!=static_cast<size_t>(-1);--c) { |
|
|
|
for(size_t c=size()-1;c!=static_cast<size_t>(-1);--c) { |
|
|
|
|