[gnote] Port applet to new Preferences



commit 7e0edcef959f87af36ff1926b030812ac8ef22d5
Author: Aurimas Äernius <aurisc4 gmail com>
Date:   Tue Jun 21 23:30:18 2011 +0300

    Port applet to new Preferences
    
    Use new Preferences API with Gio::Settings.

 src/applet.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/applet.cpp b/src/applet.cpp
index 6132bf5..4e00af1 100644
--- a/src/applet.cpp
+++ b/src/applet.cpp
@@ -130,7 +130,8 @@ bool GnotePanelAppletEventBox::button_press(GdkEventButton *ev)
     return true;
     break;
   case 2:
-    if (Preferences::obj().get<bool>(Preferences::ENABLE_ICON_PASTE)) {
+    if (Preferences::obj().get_schema_settings(
+            Preferences::SCHEMA_GNOTE)->get_boolean(Preferences::ENABLE_ICON_PASTE)) {
       // Give some visual feedback
       drag_highlight();
       bool retval = paste_primary_clipboard ();



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