From 8ca2b5c5e40b4e1fc3a137aea61d69f6abe48142 Mon Sep 17 00:00:00 2001 From: max ulidtko Date: Wed, 18 Apr 2012 18:38:33 +0300 Subject: [PATCH] add --show and --hide remote controls --- src/guake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/guake b/src/guake index 5fc5a53d..5dbdb038 100644 --- a/src/guake +++ b/src/guake @@ -1340,6 +1340,14 @@ def main(): action='store_true', default=False, help=_('Toggles the visibility of the terminal window')) + parser.add_option('--show', dest="show", + action='store_true', default=False, + help=_('Shows Guake main window')) + + parser.add_option('--hide', dest='hide', + action='store_true', default=False, + help=_('Hides Guake main window')) + parser.add_option('-p', '--preferences', dest='show_preferences', action='store_true', default=False, help=_('Shows Guake preference window')) @@ -1391,6 +1399,14 @@ def main(): if options.fullscreen: instance.fullscreen() + if options.show: + remote_object.show() + called_with_param = True + + if options.hide: + remote_object.hide() + called_with_param = True + if options.show_preferences: remote_object.show_prefs() only_show_hide = False