[gnote] Save main window pos and size on quit
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Save main window pos and size on quit
- Date: Mon, 28 Jan 2013 20:53:43 +0000 (UTC)
commit fba5826451586d0c30e2cf1e4871faf6ef3f18ff
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Mon Jan 28 22:52:16 2013 +0200
Save main window pos and size on quit
Properly save window state, when quiting gnote using quit app menu
action.
src/recentchanges.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 542f30f..6fb69de 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -71,6 +71,8 @@ namespace gnote {
signal_delete_event().connect(sigc::mem_fun(*this, &NoteRecentChanges::on_delete));
signal_key_press_event()
.connect(sigc::mem_fun(*this, &NoteRecentChanges::on_key_pressed)); // For Escape
+ IGnote::obj().signal_quit
+ .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_close_window));// to save size/pos
embed_widget(m_search_notes_widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]