[gnote/stable-0.7] Fix dragging notes to Unfiled notes



commit c0e10e569b48fc452854e2bcab9646e43dd268b3
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Tue Jul 26 21:36:40 2011 +0300

    Fix dragging notes to Unfiled notes
    
    When dragging notes to Unfiled notes, the note view is not updated.
    Fixes bug 655208.

 src/recentchanges.cpp |    6 +++---
 src/recentchanges.hpp |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 5d27405..f1bbee6 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -218,8 +218,8 @@ namespace gnote {
     // until the note's queue_save () kicks in.
     notebooks::NotebookManager::instance().signal_note_added_to_notebook()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_note_added_to_notebook));
-    notebooks::NotebookManager::instance().signal_note_added_to_notebook()
-      .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_note_removed_to_notebook));
+    notebooks::NotebookManager::instance().signal_note_removed_from_notebook()
+      .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_note_removed_from_notebook));
                         
     Gtk::Main::signal_quit()
       .connect(sigc::mem_fun(*this, &NoteRecentChanges::on_exiting_event));
@@ -1527,7 +1527,7 @@ namespace gnote {
     update_results ();
   }
     
-  void NoteRecentChanges::on_note_removed_to_notebook (const Note & , 
+  void NoteRecentChanges::on_note_removed_from_notebook (const Note & , 
                                                        const notebooks::Notebook::Ptr & )
   {
     update_results ();
diff --git a/src/recentchanges.hpp b/src/recentchanges.hpp
index 560b970..f8212b6 100644
--- a/src/recentchanges.hpp
+++ b/src/recentchanges.hpp
@@ -134,7 +134,7 @@ private:
   bool on_notebooks_tree_button_pressed(GdkEventButton *);
   bool on_notebooks_key_pressed(GdkEventKey *);
   void on_note_added_to_notebook (const Note & note, const notebooks::Notebook::Ptr & notebook);
-  void on_note_removed_to_notebook (const Note & note, const notebooks::Notebook::Ptr & notebook);
+  void on_note_removed_from_notebook (const Note & note, const notebooks::Notebook::Ptr & notebook);
   std::string get_search_text();
   void save_position ();
   void restore_position();



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