[gnome-screensaver] Remove --poke from the command line tool



commit 46eee9196a8c3a8ad2e7eed9b190b29a11882a02
Author: William Jon McCann <jmccann redhat com>
Date:   Sun Mar 6 02:47:49 2011 -0500

    Remove --poke from the command line tool
    
    It hasn't worked to reset the idle timer for years.  Since the
    idle timer moved to gnome-session.

 data/gnome-screensaver-command.1 |    3 ---
 src/gnome-screensaver-command.c  |    7 -------
 2 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/data/gnome-screensaver-command.1 b/data/gnome-screensaver-command.1
index 13826a4..e47719e 100644
--- a/data/gnome-screensaver-command.1
+++ b/data/gnome-screensaver-command.1
@@ -42,9 +42,6 @@ Turn the screensaver on (blank the screen)
 .B \-d, \-\-deactivate
 If the screensaver is active then deactivate it (un-blank the screen)
 .TP
-.B \-p, \-\-poke
-Poke the running screensaver to simulate user activity
-.TP
 .B \-V, \-\-version
 Version of this application
 .SH AUTHORS
diff --git a/src/gnome-screensaver-command.c b/src/gnome-screensaver-command.c
index 09da9ab..280567a 100644
--- a/src/gnome-screensaver-command.c
+++ b/src/gnome-screensaver-command.c
@@ -47,7 +47,6 @@ static gboolean do_lock       = FALSE;
 static gboolean do_activate   = FALSE;
 static gboolean do_deactivate = FALSE;
 static gboolean do_version    = FALSE;
-static gboolean do_poke       = FALSE;
 
 static gboolean do_query      = FALSE;
 static gboolean do_time       = FALSE;
@@ -65,8 +64,6 @@ static GOptionEntry entries [] = {
           N_("Turn the screensaver on (blank the screen)"), NULL },
         { "deactivate", 'd', 0, G_OPTION_ARG_NONE, &do_deactivate,
           N_("If the screensaver is active then deactivate it (un-blank the screen)"), NULL },
-        { "poke", 'p', 0, G_OPTION_ARG_NONE, &do_poke,
-          N_("Poke the running screensaver to simulate user activity"), NULL },
         { "version", 'V', 0, G_OPTION_ARG_NONE, &do_version,
           N_("Version of this application"), NULL },
         { NULL }
@@ -235,10 +232,6 @@ do_command (DBusConnection *connection)
                 reply = screensaver_send_message_void (connection, "Lock", FALSE);
         }
 
-        if (do_poke) {
-                reply = screensaver_send_message_void (connection, "SimulateUserActivity", FALSE);
-        }
-
         if (do_activate) {
                 reply = screensaver_send_message_bool (connection, "SetActive", TRUE);
                 if (! reply) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]