gnome-power-manager r2747 - branches/gnome-2-22/src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r2747 - branches/gnome-2-22/src
- Date: Wed, 26 Mar 2008 09:14:29 +0000 (GMT)
Author: rhughes
Date: Wed Mar 26 09:14:29 2008
New Revision: 2747
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2747&view=rev
Log:
2008-03-12 Richard Hughes <richard hughsie com>
* src/gpm-manager.c: (gpm_manager_action_suspend),
(gpm_manager_action_hibernate):
Remove some dead code.
Modified:
branches/gnome-2-22/src/gpm-manager.c
Modified: branches/gnome-2-22/src/gpm-manager.c
==============================================================================
--- branches/gnome-2-22/src/gpm-manager.c (original)
+++ branches/gnome-2-22/src/gpm-manager.c Wed Mar 26 09:14:29 2008
@@ -325,17 +325,6 @@
gboolean allowed;
GError *error = NULL;
- if (gpm_control_is_policy_timout_valid (manager->priv->control) == FALSE) {
- /* error msg timeout not valid */
- gpm_notify_display (manager->priv->notify,
- _("Action forbidden"),
- _("Policy timeout is not valid. Please wait a few seconds and try again."),
- GPM_NOTIFY_TIMEOUT_SHORT,
- GPM_STOCK_APP_ICON,
- GPM_NOTIFY_URGENCY_NORMAL);
- return FALSE;
- }
-
/* check if the admin has disabled */
gpm_conf_get_bool (manager->priv->conf, GPM_CONF_CAN_SUSPEND, &allowed);
if (allowed == FALSE) {
@@ -385,17 +374,6 @@
gboolean allowed;
GError *error = NULL;
- if (gpm_control_is_policy_timout_valid (manager->priv->control) == FALSE) {
- /* error msg timeout not valid */
- gpm_notify_display (manager->priv->notify,
- _("Action forbidden"),
- _("Policy timeout is not valid. Please wait a few seconds and try again."),
- GPM_NOTIFY_TIMEOUT_SHORT,
- GPM_STOCK_APP_ICON,
- GPM_NOTIFY_URGENCY_NORMAL);
- return FALSE;
- }
-
/* check if the admin has disabled */
gpm_conf_get_bool (manager->priv->conf, GPM_CONF_CAN_HIBERNATE, &allowed);
if (allowed == FALSE) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]