[epiphany/wip/security-origins: 5/8] permissions-manager: Remove setting-changed signal
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/security-origins: 5/8] permissions-manager: Remove setting-changed signal
- Date: Fri, 30 Dec 2016 17:19:11 +0000 (UTC)
commit e355f117296e9b91634f53941b3abc38b971916e
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Thu Dec 29 16:03:36 2016 -0600
permissions-manager: Remove setting-changed signal
This signal is unused. It should be easy to bring back if desired, but I
can't think of any part of the code that would want to use it.
lib/ephy-permissions-manager.c | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/lib/ephy-permissions-manager.c b/lib/ephy-permissions-manager.c
index ab7a42d..274d7aa 100644
--- a/lib/ephy-permissions-manager.c
+++ b/lib/ephy-permissions-manager.c
@@ -62,34 +62,6 @@ ephy_permissions_manager_class_init (EphyPermissionsManagerClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->dispose = ephy_permissions_manager_dispose;
-
- /**
- * EphyPermissionsManager::setting-changed:
- * @permissions_manager: the #EphyPermissionsManager that received the signal
- * @host: the hostname for which the setting changed
- * @key: the name of the key that changed
- *
- * The ::setting-changed signal is emitted when the a setting changes for
- * one of the hosts managed by the manager. It can be used to represent the
- * change on the UI for instance.
- **/
- g_signal_new ("setting-changed",
- EPHY_TYPE_PERMISSIONS_MANAGER,
- G_SIGNAL_RUN_FIRST,
- 0, NULL, NULL, NULL,
- G_TYPE_NONE,
- 2,
- G_TYPE_STRING,
- G_TYPE_STRING);
-}
-
-static void
-setting_changed_cb (GSettings *settings,
- char *key,
- EphyPermissionsManager *manager)
-{
- const char *host = g_hash_table_lookup (manager->settings_mapping, settings);
- g_signal_emit_by_name (manager, "setting-changed", host, key);
}
static GSettings *
@@ -124,9 +96,6 @@ ephy_permissions_manager_get_settings_for_address (EphyPermissionsManager *manag
g_hash_table_insert (manager->hosts_mapping, host, settings);
g_hash_table_insert (manager->settings_mapping, settings, host);
- g_signal_connect (settings, "changed",
- G_CALLBACK (setting_changed_cb), manager);
-
return settings;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]