[gnote] Set close_on_escape when opening note from tray
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Set close_on_escape when opening note from tray
- Date: Thu, 20 Jun 2013 13:28:24 +0000 (UTC)
commit 11b03325436eea5314d9480549ea5a72a38cb8bf
Author: Aurimas Černius <aurisc4 gmail com>
Date: Thu Jun 20 16:21:43 2013 +0300
Set close_on_escape when opening note from tray
Part of Bug 700458.
src/notebooks/notebooknewnotemenuitem.cpp | 5 ++++-
src/tray.cpp | 2 ++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/notebooks/notebooknewnotemenuitem.cpp b/src/notebooks/notebooknewnotemenuitem.cpp
index dd2bfcb..bdf5661 100644
--- a/src/notebooks/notebooknewnotemenuitem.cpp
+++ b/src/notebooks/notebooknewnotemenuitem.cpp
@@ -54,7 +54,10 @@ namespace gnote {
// Look for the template note and create a new note
Note::Ptr note = m_notebook->create_notebook_note ();
- IGnote::obj().open_note(note);
+ MainWindow &win = IGnote::obj().new_main_window();
+ win.present_note(note);
+ win.present();
+ win.close_on_escape(true);
}
diff --git a/src/tray.cpp b/src/tray.cpp
index e10dcb5..f26504c 100644
--- a/src/tray.cpp
+++ b/src/tray.cpp
@@ -96,6 +96,7 @@ namespace gnote {
MainWindow & window = IGnote::obj().new_main_window();
window.present_note(m_note);
window.present();
+ window.close_on_escape(true);
}
}
}
@@ -350,6 +351,7 @@ namespace gnote {
MainWindow &win = IGnote::obj().new_main_window();
win.new_note();
win.present();
+ win.close_on_escape(true);
}
void Tray::on_search_notes_activate()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]