patches/gnome-power-manager-07-screensaver.diff
author xz159989
Tue, 03 Jun 2008 06:35:32 +0000
changeset 12565 5e8beae222a2
parent 12100 1c8ebdb13a39
child 12608 06f771225086
permissions -rw-r--r--
2008-06-03 simon.zheng <[email protected]> * base-specs/gnome-power-manager.spec: Bumped to 2.23.1 * patches/gnome-power-manager-01-build.diff: Reworked. * patches/gnome-power-manager-04-scripts.diff: Upstream, removed. * patches/gnome-power-manager-07-screensaver.diff: Reworked.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11632
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     1
--- data/gnome-power-manager.schemas.in.orig	2008-02-04 10:12:40.941327000 +0800
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     2
+++ data/gnome-power-manager.schemas.in	2008-02-04 10:24:07.361341000 +0800
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     3
@@ -929,6 +929,18 @@
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     4
     </schema>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     5
 
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     6
     <schema>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     7
+      <key>/schemas/apps/gnome-power-manager/ui/enable_screen_lock</key>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     8
+      <applyto>/apps/gnome-power-manager/ui/enable_screen_lock</applyto>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
     9
+      <owner>gnome-power-manager</owner>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    10
+      <type>bool</type>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    11
+      <default>true</default>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    12
+      <locale name="C">
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    13
+        <short>If screen lock should be used</short>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    14
+        <long>If screen lock should be used when lid is closed, or system performs a suspend or hibernate action.</long>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    15
+      </locale>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    16
+    </schema>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    17
+
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    18
+    <schema>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    19
       <key>/schemas/apps/gnome-power-manager/ui/show_actions_in_menu</key>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    20
       <applyto>/apps/gnome-power-manager/ui/show_actions_in_menu</applyto>
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    21
       <owner>gnome-power-manager</owner>
12100
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    22
--- src/gpm-prefs-core.c.org	2008-02-05 13:56:31.775812000 +0800
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    23
+++ src/gpm-prefs-core.c	2008-02-05 13:52:48.084206000 +0800
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    24
@@ -890,6 +890,10 @@
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    25
 	gpm_prefs_setup_checkbox (prefs, "checkbutton_notification_sound",
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    26
 	  			  GPM_CONF_UI_ENABLE_BEEPING);
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    27
 
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    28
+	/* set up the screen locking checkbox */
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    29
+	gpm_prefs_setup_checkbox (prefs, "checkbutton_screen_lock",
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    30
+	  			  GPM_CONF_UI_ENABLE_SCREEN_LOCK);
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    31
+
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    32
 	if (prefs->priv->has_batteries == TRUE) {
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    33
 		/* there's no use case for displaying this option */
1c8ebdb13a39 2008-04-13 simon.zheng <[email protected]>
xz159989
parents: 11924
diff changeset
    34
 		gtk_widget_hide_all (radiobutton_icon_never);
11632
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    35
--- src/gpm-control.c.orig	2007-07-27 07:28:18.000000000 +0800
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    36
+++ src/gpm-control.c	2008-02-13 13:06:29.259536000 +0800
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    37
@@ -377,6 +377,10 @@
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    38
 {
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    39
 	gboolean do_lock;
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    40
 	gboolean use_ss_setting;
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    41
+#ifdef SOLARIS
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    42
+	gpm_conf_get_bool (control->priv->conf, GPM_CONF_UI_ENABLE_SCREEN_LOCK, &do_lock);
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    43
+	gpm_debug ("Using custom locking settings (%i)", do_lock);
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    44
+#else
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    45
 	/* This allows us to over-ride the custom lock settings set in gconf
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    46
 	   with a system default set in gnome-screensaver.
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    47
 	   See bug #331164 for all the juicy details. :-) */
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    48
@@ -388,6 +392,7 @@
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    49
 		gpm_conf_get_bool (control->priv->conf, policy, &do_lock);
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    50
 		gpm_debug ("Using custom locking settings (%i)", do_lock);
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    51
 	}
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    52
+#endif
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    53
 	return do_lock;
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    54
 }
eb80f874b3c3 2008-02-14 simon.zheng <[email protected]>
xz159989
parents:
diff changeset
    55
 
11658
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    56
--- src/gpm-conf.h.orig	2008-02-18 16:47:20.806807000 +0800
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    57
+++ src/gpm-conf.h	2008-02-18 16:48:11.849112000 +0800
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    58
@@ -148,6 +148,7 @@
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    59
 #define GPM_CONF_UI_SHOW_ACTIONS_IN_MENU	GPM_CONF_DIR "/ui/show_actions_in_menu"
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    60
 #define GPM_CONF_UI_ENABLE_BEEPING		GPM_CONF_DIR "/ui/enable_sound"
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    61
 #define GPM_CONF_UI_SHOW_CONTEXT_MENU		GPM_CONF_DIR "/ui/show_context_menu"
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    62
+#define GPM_CONF_UI_ENABLE_SCREEN_LOCK		GPM_CONF_DIR "/ui/enable_screen_lock"
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    63
 
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    64
 /* we use the gnome-session key now */
fd9fb1a5d674 2008-02-18 simon.zheng <[email protected]>
xz159989
parents: 11632
diff changeset
    65
 #define GPM_CONF_SESSION_REQUEST_SAVE		"/apps/gnome-session/options/auto_save_session"
11924
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    66
--- src/gpm-screensaver.c.orig	2008-03-19 22:34:35.519979000 +0800
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    67
+++ src/gpm-screensaver.c	2008-03-27 12:34:08.147100000 +0800
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    68
@@ -29,6 +29,10 @@
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    69
 #include "gpm-conf.h"
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    70
 #include "gpm-screensaver.h"
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    71
 #include "gpm-debug.h"
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    72
+#ifdef SOLARIS
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    73
+#include <gtk/gtk.h>
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    74
+#include <gdk/gdk.h>
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    75
+#endif
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    76
 #include <libdbus-proxy.h>
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    77
 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    78
 static void     gpm_screensaver_class_init (GpmScreensaverClass *klass);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    79
@@ -239,6 +243,49 @@
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    80
 	guint sleepcount = 0;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    81
 	DBusGProxy *proxy;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    82
 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    83
+#ifdef SOLARIS
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    84
+	GError    *error = NULL;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    85
+	char      *command;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    86
+	GdkScreen *screen;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    87
+	GtkWidget *invisible;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    88
+
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    89
+	/* As per ARC requriement, use xdg-screensaver on Solaris */
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    90
+	command = g_strdup ("/usr/bin/xdg-screensaver lock");	
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    91
+	screen = gdk_screen_get_default ();
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    92
+
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    93
+	gpm_debug ("Doing xdg-screensaver lock");
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    94
+	if (! gdk_spawn_command_line_on_screen (screen, command, &error)) {
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    95
+		g_warning ("Cannot lock screen: %s", error->message);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    96
+		g_error_free (error);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    97
+	}
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    98
+	g_free (command);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
    99
+
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   100
+	/* Make sure screen locking takes effect until both point 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   101
+	 * and keyboard are grabbed successfully.
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   102
+	 */
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   103
+	invisible = gtk_invisible_new_for_screen (screen);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   104
+	gtk_widget_show (invisible);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   105
+	while (sleepcount++ < 50) {
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   106
+		gpm_debug ("Try to determine if screen lock is active!");
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   107
+		if (gdk_pointer_grab (invisible->window, 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   108
+				TRUE, 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   109
+				0,
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   110
+				NULL,
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   111
+				NULL,
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   112
+				GDK_CURRENT_TIME) 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   113
+				== GDK_GRAB_SUCCESS) {
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   114
+			if (gdk_keyboard_grab (invisible->window, FALSE, GDK_CURRENT_TIME)
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   115
+		  				== GDK_GRAB_SUCCESS)
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   116
+				break;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   117
+			else
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   118
+				gdk_pointer_ungrab (GDK_CURRENT_TIME);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   119
+		}
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   120
+
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   121
+		g_usleep (1000 * 100);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   122
+	} 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   123
+	gtk_widget_destroy (invisible);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   124
+	gpm_debug ("Screen locking is sucessful!, sleepcount = %d", sleepcount);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   125
+#else
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   126
 	g_return_val_if_fail (GPM_IS_SCREENSAVER (screensaver), FALSE);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   127
 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   128
 	proxy = dbus_proxy_get_proxy (screensaver->priv->gproxy);
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   129
@@ -265,6 +312,7 @@
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   130
 			break;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   131
 		}
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   132
 	}
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   133
+#endif
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   134
 
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   135
 	return TRUE;
15a9f7481755 2008-03-27 simon.zheng <[email protected]>
xz159989
parents: 11658
diff changeset
   136
 }
12565
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   137
--- data/gpm-prefs.glade.orig	2008-06-02 23:14:08.822762000 +0800
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   138
+++ data/gpm-prefs.glade	2008-06-02 23:24:55.877203000 +0800
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   139
@@ -1041,6 +1041,20 @@
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   140
                                 <property name="position">3</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   141
                               </packing>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   142
                             </child>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   143
+                            <child>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   144
+                              <widget class="GtkCheckButton" id="checkbutton_screen_lock">
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   145
+                                <property name="can_focus">True</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   146
+                                <property name="label" translatable="yes">_Lock screen when computer is restored from blank screen, suspend or hibernate</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   147
+                                <property name="use_underline">True</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   148
+                                <property name="response_id">0</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   149
+                                <property name="draw_indicator">True</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   150
+                              </widget>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   151
+                              <packing>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   152
+                                <property name="expand">False</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   153
+                                <property name="fill">False</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   154
+                                <property name="position">4</property>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   155
+                              </packing>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   156
+                            </child>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   157
                           </widget>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   158
                         </child>
5e8beae222a2 2008-06-03 simon.zheng <[email protected]>
xz159989
parents: 12100
diff changeset
   159
                       </widget>