hide before quitting
This seems to prevent crashes. No idea why...
+6 · 3 files changed
-
main.cc+1 −0 -
win.cc+4 −0 -
win.h+1 −0
@@ -1082,6 +1082,7 @@ void quit() { if (dead) bail_out(); dead = true; + win->hide(); queue(sigc::ptr_fun(&Gtk::Main::quit)); } @@ -247,6 +247,10 @@ void Win::show_hide() { win->show(); } +void Win::hide() { + win->hide(); +} + bool Win::on_icon_size_changed(int size) { icon_pb[0] = Stroke::trefoil()->draw(size); icon_pb[1] = Stroke::trefoil()->draw(size); @@ -60,6 +60,7 @@ public: void show_hide(); void set_icon(RStroke stroke, bool invert); void show_about(); + void hide(); private: bool on_icon_size_changed(int); virtual void timeout();