patches/gnome-power-manager-05-disable-suspend-button.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 12608 06f771225086
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12608
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     1
--- src/gpm-prefs-core.c.orig	2008-06-03 15:51:05.336557000 +0800
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     2
+++ src/gpm-prefs-core.c	2008-06-03 15:54:06.524979000 +0800
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     3
@@ -1081,7 +1081,11 @@
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     4
 	prefs->priv->has_lcd = ((caps & GPM_PREFS_SERVER_BACKLIGHT) > 0);
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     5
 	prefs->priv->has_ambient = ((caps & GPM_PREFS_SERVER_AMBIENT) > 0);
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     6
 	prefs->priv->has_button_lid = ((caps & GPM_PREFS_SERVER_LID) > 0);
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     7
+#if defined(sun) && defined(__SVR4)
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     8
+	prefs->priv->has_button_suspend = FALSE;
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     9
+#else
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    10
 	prefs->priv->has_button_suspend = TRUE;
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    11
+#endif
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    12
 	prefs->priv->can_shutdown = gpm_dbus_method_bool ("CanShutdown");
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    13
 	prefs->priv->can_suspend = gpm_dbus_method_bool ("CanSuspend");
06f771225086 2008-06-06 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    14
 	prefs->priv->can_hibernate = gpm_dbus_method_bool ("CanHibernate");