[gnote] Add static method to get Search dialog instance
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnote] Add static method to get Search dialog instance
- Date: Mon, 27 Jun 2011 20:41:22 +0000 (UTC)
commit 0a5b81ea03519b5ef10705f60eb3c893ae998817
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 be910ca..ce5df00 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 9b51b6a..0e0d1e5 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]