diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpm-common.h | 9 | ||||
-rw-r--r-- | src/gpm-manager.c | 18 |
2 files changed, 2 insertions, 25 deletions
diff --git a/src/gpm-common.h b/src/gpm-common.h index 7b5822b..5cb0696 100644 --- a/src/gpm-common.h +++ b/src/gpm-common.h @@ -36,13 +36,7 @@ G_BEGIN_DECLS #define GPM_NAME _("Power Manager") #define GPM_DESCRIPTION _("Power Manager for the MATE desktop") -/* help location */ -#define GPM_HOMEPAGE_URL "http://www.gnome.org/projects/mate-power-manager/" -#define GPM_BUGZILLA_URL "http://bugzilla.gnome.org/buglist.cgi?product=mate-power-manager" -#define GPM_FAQ_URL "http://live.gnome.org/MatePowerManager/Faq" - -/* change general/installed_schema whenever adding or moving keys */ -#define GPM_SETTINGS_SCHEMA_ID 3 +/* schema location */ #define GPM_SETTINGS_SCHEMA "org.mate.power-manager" /* actions */ @@ -73,7 +67,6 @@ G_BEGIN_DECLS #define GPM_SETTINGS_BUTTON_POWER "button-power" /* general */ -#define GPM_SETTINGS_SCHEMA_VERSION "schema-version" #define GPM_SETTINGS_USE_TIME_POLICY "use-time-for-policy" #define GPM_SETTINGS_NETWORKMANAGER_SLEEP "network-sleep" #define GPM_SETTINGS_IDLE_CHECK_CPU "check-type-cpu" 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, |