[gnote] Hotkeys changes not being taken into account until restart. (Closes #582789)
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnote] Hotkeys changes not being taken into account until restart. (Closes #582789)
- Date: Thu, 11 Jun 2009 21:56:43 -0400 (EDT)
commit 22e48c6de1373c73f64196b29f7d1b274d1300b4
Author: Yves Junqueira <yves cetico org>
Date: Wed Jun 10 02:10:46 2009 +0200
Hotkeys changes not being taken into account until restart. (Closes #582789)
gconf_client_notify_add() requires gconf_client_add_dir() first
Signed-off-by: Hubert Figuiere <hub figuiere net>
NEWS | 2 ++
src/preferences.cpp | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index a39f4b5..b65240d 100644
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,8 @@ Fixes:
* Allow using Boost TR1 implementation if really needed.
* No longer reference Tomboy in the help screenshot (Closes #581195)
(Tony Manco)
+ * Hotkeys changes not being taken into account until restart.
+ (Closes #582789) (Yves Junqueira)
Translations:
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 41ca3a3..075fcc1 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -68,6 +68,7 @@ namespace gnote {
Preferences::Preferences()
: m_client(gconf_client_get_default())
{
+ gconf_client_add_dir(m_client, "/apps/gnote", GCONF_CLIENT_PRELOAD_NONE, NULL);
m_cnx = gconf_client_notify_add(m_client, "/apps/gnote" ,
GConfClientNotifyFunc(&Preferences::gconf_notify_glue),
this, NULL, NULL);
@@ -75,6 +76,7 @@ namespace gnote {
Preferences::~Preferences()
{
+ gconf_client_remove_dir(m_client, "/apps/gnote", NULL);
gconf_client_notify_remove(m_client, m_cnx);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]