[gnote] Port NoteBuffer to new Preferences
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Port NoteBuffer to new Preferences
- Date: Mon, 27 Jun 2011 09:19:53 +0000 (UTC)
commit 935967911d1afb5c129620b71fc68881f329b880
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Tue Jun 21 23:05:32 2011 +0300
Port NoteBuffer to new Preferences
Adapt NoteBuffer to new Preferences API with Gio::Settings.
src/notebuffer.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/notebuffer.cpp b/src/notebuffer.cpp
index 120f3e6..d5f43a3 100644
--- a/src/notebuffer.cpp
+++ b/src/notebuffer.cpp
@@ -51,7 +51,8 @@ namespace gnote {
bool NoteBuffer::get_enable_auto_bulleted_lists() const
{
- return Preferences::obj().get<bool>(Preferences::ENABLE_AUTO_BULLETED_LISTS);
+ return Preferences::obj().get_schema_settings(Preferences::SCHEMA_GNOTE)->get_boolean(
+ Preferences::ENABLE_AUTO_BULLETED_LISTS);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]