[gnote/stable-0.7] Make about dialog a child of Search All Notes



commit dacc5e60662579d36d7406a52dbbc464fd3ebdb8
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Mon Jun 27 23:23:59 2011 +0300

    Make about dialog a child of Search All Notes
    
    If Search All Notes dialog is shown, make about dialog a child of it.

 src/gnote.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gnote.cpp b/src/gnote.cpp
index 8bda8d4..f71a8e9 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -358,6 +358,11 @@ namespace gnote {
     about.set_documenters(documenters);
     about.set_translator_credits(translators);
 //      about.set_icon_name("gnote");
+    NoteRecentChanges *recent_changes = NoteRecentChanges::get_instance();
+    if(recent_changes && recent_changes->get_visible()) {
+      about.set_transient_for(*recent_changes);
+      recent_changes->present();
+    }
     about.run();
   }
 



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