[gnote] Remove leftover uses of schema
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove leftover uses of schema
- Date: Sun, 20 Dec 2020 10:58:50 +0000 (UTC)
commit fcee6c1a8f224c4b0a41612a9e086a0e51f503d4
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Dec 20 12:33:23 2020 +0200
Remove leftover uses of schema
src/noteeditor.cpp | 2 --
src/preferencesdialog.cpp | 2 --
src/searchnoteswidget.cpp | 1 -
3 files changed, 5 deletions(-)
---
diff --git a/src/noteeditor.cpp b/src/noteeditor.cpp
index 85ecd066..29e99904 100644
--- a/src/noteeditor.cpp
+++ b/src/noteeditor.cpp
@@ -98,8 +98,6 @@ namespace gnote {
void NoteEditor::update_custom_font_setting()
{
- Glib::RefPtr<Gio::Settings> settings = m_preferences.get_schema_settings(Preferences::SCHEMA_GNOTE);
-
if (m_preferences.enable_custom_font()) {
auto fontString = m_preferences.custom_font_face();
DBG_OUT( "Switching note font to '%s'...", fontString.c_str());
diff --git a/src/preferencesdialog.cpp b/src/preferencesdialog.cpp
index 31003267..fa832b82 100644
--- a/src/preferencesdialog.cpp
+++ b/src/preferencesdialog.cpp
@@ -381,8 +381,6 @@ namespace gnote {
Gtk::CheckButton *check;
sharp::PropertyEditorBool *peditor;
int vbox_row = 0;
- Glib::RefPtr<Gio::Settings> settings = m_gnote.preferences()
- .get_schema_settings(Preferences::SCHEMA_GNOTE);
// internal links
check = manage(make_check_button(_("_Automatically link to notes")));
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index 5bae7f5a..497d2b18 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -106,7 +106,6 @@ SearchNotesWidget::SearchNotesWidget(IGnote & g, NoteManagerBase & m)
notebook_manager.signal_note_pin_status_changed
.connect(sigc::mem_fun(*this, &SearchNotesWidget::on_note_pin_status_changed));
- Glib::RefPtr<Gio::Settings> settings = g.preferences().get_schema_settings(Preferences::SCHEMA_GNOTE);
g.preferences().signal_open_notes_in_new_window_changed.connect(sigc::mem_fun(*this,
&SearchNotesWidget::on_settings_changed));
parse_sorting_setting(g.preferences().search_sorting());
g.preferences().signal_desktop_gnome_clock_format_changed.connect(sigc::mem_fun(*this,
&SearchNotesWidget::update_results));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]