[ekiga] Remove another part of the gmconf api
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Remove another part of the gmconf api
- Date: Tue, 8 Jun 2010 13:56:11 +0000 (UTC)
commit 315024075dca09f158ea953a5f37ba77a327e88a
Author: Julien Puydt <jpuydt gnome org>
Date: Tue Jun 8 15:42:17 2010 +0200
Remove another part of the gmconf api
That one wasn't unused, but it was useless...
lib/gmconf/gmconf-gconf.c | 14 --------------
lib/gmconf/gmconf-glib.c | 31 -------------------------------
lib/gmconf/gmconf.h | 6 ------
src/gui/main_window.cpp | 3 ---
4 files changed, 0 insertions(+), 54 deletions(-)
---
diff --git a/lib/gmconf/gmconf-gconf.c b/lib/gmconf/gmconf-gconf.c
index 0ce2fb5..a613af1 100644
--- a/lib/gmconf/gmconf-gconf.c
+++ b/lib/gmconf/gmconf-gconf.c
@@ -411,17 +411,3 @@ gm_conf_notifier_trigger (const gchar *namespac)
gconf_client_notify (client, namespac);
}
-
-void
-gm_conf_watch ()
-{
- gconf_client_add_dir (client, "/apps/" PACKAGE_NAME,
- GCONF_CLIENT_PRELOAD_NONE, NULL);
-}
-
-
-void
-gm_conf_unwatch ()
-{
- gconf_client_remove_dir (client, "/apps/" PACKAGE_NAME, NULL);
-}
diff --git a/lib/gmconf/gmconf-glib.c b/lib/gmconf/gmconf-glib.c
index c26b3ad..5a15631 100644
--- a/lib/gmconf/gmconf-glib.c
+++ b/lib/gmconf/gmconf-glib.c
@@ -97,7 +97,6 @@
*/
typedef struct _DataBase
{
- gboolean is_watched;
GData *entries;
} DataBase;
@@ -261,7 +260,6 @@ static GmConfEntry *database_get_entry_for_key (DataBase *, const gchar *);
static GmConfEntry *database_get_entry_for_key_create (DataBase *,
const gchar *);
-static void database_set_watched (DataBase *, const gboolean);
static void database_notify_on_namespace (DataBase *, const gchar *);
/*
@@ -766,7 +764,6 @@ database_new ()
DataBase *db = NULL;
db = g_new (DataBase, 1);
- db->is_watched = FALSE;
db->entries = NULL;
g_datalist_init (&db->entries);
return db;
@@ -1105,15 +1102,6 @@ database_get_entry_for_key_create (DataBase *db,
}
static void
-database_set_watched (DataBase *db,
- const gboolean bool)
-{
- g_return_if_fail (db != NULL);
-
- db->is_watched = bool;
-}
-
-static void
database_notify_on_namespace (DataBase *db,
const gchar *namespac)
{
@@ -1129,9 +1117,6 @@ database_notify_on_namespace (DataBase *db,
g_return_if_fail (entry != NULL);
- if (db->is_watched == FALSE)
- return;
-
for (key = g_strdup (namespac);
key[0] != 0;
g_strrstr (key, "/")[0] = 0) {
@@ -1259,22 +1244,6 @@ gm_conf_save ()
g_free (user_conf);
}
-void
-gm_conf_watch ()
-{
- DataBase *db = database_get_default ();
-
- database_set_watched (db, TRUE);
-}
-
-void
-gm_conf_unwatch ()
-{
- DataBase *db = database_get_default ();
-
- database_set_watched (db, FALSE);
-}
-
gpointer
gm_conf_notifier_add (const gchar *namespac,
GmConfNotifier func,
diff --git a/lib/gmconf/gmconf.h b/lib/gmconf/gmconf.h
index fb210f7..917ff80 100644
--- a/lib/gmconf/gmconf.h
+++ b/lib/gmconf/gmconf.h
@@ -81,12 +81,6 @@ void gm_conf_init (); /* don't try anything before! */
void gm_conf_shutdown (); /* don't try anything after! */
void gm_conf_save (); /* to forcibly save */
-/* to accept/refuse that the notifiers get fired:
- * the configuration is still readable/writable, but
- * the changes aren't propagated to the gui */
-void gm_conf_watch ();
-void gm_conf_unwatch ();
-
/* to set/unset notifiers */
/* sets a notifier on namespac, calling func, with user_data*/
gpointer gm_conf_notifier_add (const gchar *namespac,
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index 963aa8b..e9915cc 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -4474,9 +4474,6 @@ main (int argc,
}
#endif
- /* Init gm_conf */
- gm_conf_watch ();
-
Ekiga::Runtime::init ();
engine_init (service_core, argc, argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]