add --show and --hide remote controls

This commit is contained in:
max ulidtko 2012-04-18 18:38:33 +03:00
parent c6d99c3fe8
commit 8ca2b5c5e4

View File

@ -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