[gnote] Remove deprecated scroll_mark_onscreen from noteeditor.cpp



commit e27d072e6835e601e7eb83712563b1729c084f78
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date:   Sat Mar 5 22:05:03 2011 +0200

    Remove deprecated scroll_mark_onscreen from noteeditor.cpp
    
    Replace it by scroll_to.

 src/noteeditor.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/noteeditor.cpp b/src/noteeditor.cpp
index ae828a6..9e6d71d 100644
--- a/src/noteeditor.cpp
+++ b/src/noteeditor.cpp
@@ -47,7 +47,7 @@ namespace gnote {
                                                                 this);
 
     // Make sure the cursor position is visible
-    scroll_mark_onscreen (buffer->get_insert());
+    scroll_to (buffer->get_insert());
 
     // Set Font from GConf preference
     if (Preferences::obj().get<bool>(Preferences::ENABLE_CUSTOM_FONT)) {
@@ -243,21 +243,21 @@ namespace gnote {
           else {
             ret_value = NoteBuffer::Ptr::cast_static(get_buffer())->add_new_line (false);
           }          
-          scroll_mark_onscreen (get_buffer()->get_insert());
+          scroll_to (get_buffer()->get_insert());
         }
         break;
       case GDK_KEY_Tab:
         ret_value = NoteBuffer::Ptr::cast_static(get_buffer())->add_tab ();
-        scroll_mark_onscreen (get_buffer()->get_insert());
+        scroll_to (get_buffer()->get_insert());
         break;
       case GDK_KEY_ISO_Left_Tab:
         ret_value = NoteBuffer::Ptr::cast_static(get_buffer())->remove_tab ();
-        scroll_mark_onscreen (get_buffer()->get_insert());
+        scroll_to (get_buffer()->get_insert());
         break;
       case GDK_KEY_Delete:
         if (Gdk::SHIFT_MASK != (ev->state & Gdk::SHIFT_MASK)) {
           ret_value = NoteBuffer::Ptr::cast_static(get_buffer())->delete_key_handler();
-          scroll_mark_onscreen (get_buffer()->get_insert());
+          scroll_to (get_buffer()->get_insert());
         }
         break;
       case GDK_KEY_BackSpace:



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