[gnote] No need to monitor gnome font anymore



commit e8bf34617aa7fabe9aa06e9328e6647e8cb684f1
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Tue May 11 23:03:32 2021 +0300

    No need to monitor gnome font anymore

 src/noteeditor.cpp | 11 -----------
 src/noteeditor.hpp |  1 -
 2 files changed, 12 deletions(-)
---
diff --git a/src/noteeditor.cpp b/src/noteeditor.cpp
index b1159004..e9dc843b 100644
--- a/src/noteeditor.cpp
+++ b/src/noteeditor.cpp
@@ -44,9 +44,6 @@ namespace gnote {
 
     m_preferences.signal_enable_custom_font_changed.connect(sigc::mem_fun(*this, 
&NoteEditor::update_custom_font_setting));
     m_preferences.signal_custom_font_face_changed.connect(sigc::mem_fun(*this, 
&NoteEditor::update_custom_font_setting));
-    //Set up the schema to watch the default document font
-    m_preferences.signal_desktop_gnome_font_changed
-      .connect(sigc::mem_fun(*this, &NoteEditor::on_gnome_font_setting_changed));
 
     // query all monitored settings to get change notifications
     bool enable_custom_font = m_preferences.enable_custom_font();
@@ -73,14 +70,6 @@ namespace gnote {
   }
 
 
-  void NoteEditor::on_gnome_font_setting_changed()
-  {
-    if(!m_preferences.enable_custom_font()) {
-      Gtk::Settings::get_default()->reset_property("gtk-font-name");
-    }
-  }
-
-
   void NoteEditor::update_custom_font_setting()
   {
     if (m_preferences.enable_custom_font()) {
diff --git a/src/noteeditor.hpp b/src/noteeditor.hpp
index 03483e2c..3dab1fbc 100644
--- a/src/noteeditor.hpp
+++ b/src/noteeditor.hpp
@@ -61,7 +61,6 @@ private:
   static void paste_started(GtkTextView*, NoteEditor *_this);
   static void paste_ended(GtkTextView*, NoteEditor *_this);
 
-  void on_gnome_font_setting_changed();
   void update_custom_font_setting();
   void modify_font_from_string (const Glib::ustring & fontString);
   bool key_pressed (GdkEventKey * ev);


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