[gnote] Make about dialog a child of Search All Notes
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Make about dialog a child of Search All Notes
- Date: Mon, 27 Jun 2011 20:41:27 +0000 (UTC)
commit e217b43dba009f39d87d935e0ff446ff300829ee
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 6074575..d036b1e 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -388,6 +388,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]