[gnote/stable-0.7] Add static method to get Search dialog instance



commit e88be9b6acd298f41ddb6d002456df9ccce51df8
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Mon Jun 27 23:22:07 2011 +0300

    Add static method to get Search dialog instance
    
    Do not create instance if there isn't any.

 src/recentchanges.cpp |    6 ++++++
 src/recentchanges.hpp |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index bc95119..5d27405 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -61,6 +61,12 @@ namespace gnote {
 
 
 
+  NoteRecentChanges *NoteRecentChanges::get_instance()
+  {
+    return s_instance;
+  }
+
+
   NoteRecentChanges *NoteRecentChanges::get_instance(NoteManager& m)
   {
     if(!s_instance) {
diff --git a/src/recentchanges.hpp b/src/recentchanges.hpp
index 136f1a4..560b970 100644
--- a/src/recentchanges.hpp
+++ b/src/recentchanges.hpp
@@ -60,6 +60,7 @@ class NoteRecentChanges
   : public utils::ForcedPresentWindow
 {
 public:
+  static NoteRecentChanges *get_instance();
   static NoteRecentChanges *get_instance(NoteManager& m);
 
   void set_search_text(const std::string & value);



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