~watuppa-team/indicator-session/packaging

« back to all changes in this revision

Viewing changes to debian/patches/use-xflock4-to-lock.patch

  • Committer: Aurelien Gateau
  • Date: 2010-09-17 13:23:24 UTC
  • Revision ID: aurelien.gateau@canonical.com-20100917132324-yavgkd1xv2v3xn0i
debian/patches/use-xflock4-to-lock.patch: Use xflock4 to implement the
lock action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Description: add some description
 
2
## Origin/Author: add some origin or author
 
3
## Bug: bug URL
 
4
diff -Nur -x '*.orig' -x '*~' ubuntu//src/lock-helper.c ubuntu.new//src/lock-helper.c
 
5
--- ubuntu//src/lock-helper.c   2010-09-17 15:22:28.000000000 +0200
 
6
+++ ubuntu.new//src/lock-helper.c       2010-09-17 15:23:00.872975003 +0200
 
7
@@ -19,6 +19,7 @@
 
8
 with this program.  If not, see <http://www.gnu.org/licenses/>.
 
9
 */
 
10
 
 
11
+#if 0
 
12
 #include <glib/gi18n.h>
 
13
 #include <gconf/gconf-client.h>
 
14
 #include <dbus/dbus-glib.h>
 
15
@@ -229,4 +230,22 @@
 
16
 
 
17
        return FALSE;
 
18
 }
 
19
+#endif
 
20
 
 
21
+#include "lock-helper.h"
 
22
+
 
23
+void screensaver_throttle (gchar * reason)
 
24
+{}
 
25
+
 
26
+void screensaver_unthrottle (void)
 
27
+{}
 
28
+
 
29
+void lock_screen (DbusmenuMenuitem * mi, guint timestamp, gpointer data)
 
30
+{
 
31
+       g_spawn_command_line_async ("xflock4", NULL);
 
32
+}
 
33
+
 
34
+gboolean lock_screen_setup (gpointer data)
 
35
+{
 
36
+       return TRUE;
 
37
+}