[gnote/tabbed: 3/19] Remove note window sizing




commit 12e131f7e2bdcea6aa2b4df80ff9be60a78f4f70
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Oct 17 17:34:31 2021 +0300

    Remove note window sizing

 src/notewindow.cpp | 8 --------
 src/notewindow.hpp | 1 -
 2 files changed, 9 deletions(-)
---
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index 5d998d6f..08a72221 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -189,14 +189,6 @@ namespace gnote {
     m_important_note_slot.disconnect();
   }
 
-  void NoteWindow::hint_size(int & width, int & height)
-  {
-    if(m_gnote.preferences().autosize_note_window()) {
-      width = m_width;
-      height = m_height;
-    }
-  }
-
   void NoteWindow::size_internals()
   {
     m_editor->scroll_to(m_editor->get_buffer()->get_insert());
diff --git a/src/notewindow.hpp b/src/notewindow.hpp
index 32cf275d..3e10a271 100644
--- a/src/notewindow.hpp
+++ b/src/notewindow.hpp
@@ -140,7 +140,6 @@ public:
   void set_name(const Glib::ustring & name);
   virtual void foreground() override;
   virtual void background() override;
-  virtual void hint_size(int & width, int & height) override;
   virtual void size_internals() override;
 
   virtual void perform_search(const Glib::ustring & text) override;


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