[gnote] Present main window when creating note from tray menu



commit 61e1db8addf657bc9ad6ea0f37113d41e4ef90a4
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Fri Nov 30 22:18:27 2012 +0200

    Present main window when creating note from tray menu

 src/gnote.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gnote.cpp b/src/gnote.cpp
index 1f55f76..af2da20 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -502,7 +502,9 @@ namespace gnote {
       rc->new_note();
     }
     else {
-      get_main_window()->new_note();
+      NoteRecentChanges::Ptr recent_changes = get_main_window();
+      recent_changes->new_note();
+      recent_changes->present();
     }
   }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]