summaryrefslogtreecommitdiff
path: root/src/gpm-manager.c
diff options
context:
space:
mode:
authorBrent Hull <[email protected]>2012-11-01 19:40:46 -0400
committerBrent Hull <[email protected]>2012-11-01 19:40:46 -0400
commit972be3627b8b6368a0e8c971ade7963ea7d459de (patch)
tree076ec7419159262e65f608da7a3dbccdd8ec3a5a /src/gpm-manager.c
parent1e0bea49d7d1959d063c6ab74c99500067236110 (diff)
downloadmate-power-manager-972be3627b8b6368a0e8c971ade7963ea7d459de.tar.bz2
mate-power-manager-972be3627b8b6368a0e8c971ade7963ea7d459de.tar.xz
Remove unnecessary schema version check and some unused constants
Diffstat (limited to 'src/gpm-manager.c')
-rw-r--r--src/gpm-manager.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index b351b6f..6248b97 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -565,7 +565,7 @@ gpm_manager_sleep_failure (GpmManager *manager, gboolean is_suspend, const gchar
egg_debug ("sleep failed");
gpm_manager_play (manager, GPM_MANAGER_SOUND_SUSPEND_ERROR, TRUE);
- /* only emit if in MateConf */
+ /* only emit if specified in settings */
if (!show_sleep_failed)
goto out;
@@ -1876,7 +1876,6 @@ gpm_manager_init (GpmManager *manager)
gint timeout;
DBusGConnection *connection;
GError *error = NULL;
- guint version;
manager->priv = GPM_MANAGER_GET_PRIVATE (manager);
connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
@@ -1910,21 +1909,6 @@ gpm_manager_init (GpmManager *manager)
/* use libmatenotify */
notify_init (GPM_NAME);
- /* check to see if the user has installed the schema properly */
- version = g_settings_get_int (manager->priv->settings, GPM_SETTINGS_SCHEMA_VERSION);
- if (version != GPM_SETTINGS_SCHEMA_ID) {
- gpm_manager_notify (manager, &manager->priv->notification_general,
- /* TRANSLATORS: there was in install problem */
- _("Install problem!"),
- /* TRANSLATORS: the MateConf schema was not installed properly */
- _("The configuration defaults for MATE Power Manager have not been installed correctly.\n"
- "Please contact your computer administrator."),
- GPM_MANAGER_NOTIFY_TIMEOUT_LONG,
- GTK_STOCK_DIALOG_WARNING,
- NOTIFY_URGENCY_NORMAL);
- egg_error ("no GSettings schema installed!");
- }
-
/* coldplug so we are in the correct state at startup */
g_object_get (manager->priv->client,
"on-battery", &manager->priv->on_battery,