diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-12-19 15:56:43 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-12-21 10:54:27 +0100 |
commit | 008491a2d99b626877898a6782cf4c2010bbb7db (patch) | |
tree | de9d7173650d85f8868af21bf890efb1c94bd247 /src/virt-viewer-main.c | |
parent | aecd80ec77108beb982140a2bb4f7f8bc23090bb (diff) | |
download | virt-viewer-008491a2d99b626877898a6782cf4c2010bbb7db.tar.gz virt-viewer-008491a2d99b626877898a6782cf4c2010bbb7db.tar.xz virt-viewer-008491a2d99b626877898a6782cf4c2010bbb7db.zip |
Make hotkey configuration functionality available from the cmdline (v2)
Changes in v2:
-Add --hotkeys documentation to the man-pages
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/virt-viewer-main.c')
-rw-r--r-- | src/virt-viewer-main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/virt-viewer-main.c b/src/virt-viewer-main.c index 8dca48b..8ac061a 100644 --- a/src/virt-viewer-main.c +++ b/src/virt-viewer-main.c @@ -49,6 +49,7 @@ int main(int argc, char **argv) char *uri = NULL; int zoom = 100; gchar **args = NULL; + gchar *hotkeys = NULL; gboolean verbose = FALSE; gboolean debug = FALSE; gboolean direct = FALSE; @@ -80,6 +81,8 @@ int main(int argc, char **argv) N_("Display debugging information"), NULL }, { "full-screen", 'f', 0, G_OPTION_ARG_NONE, &fullscreen, N_("Open in full screen mode"), NULL }, + { "hotkeys", 'h', 0, G_OPTION_ARG_STRING, &hotkeys, + N_("Customise hotkeys"), NULL }, { G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_STRING_ARRAY, &args, NULL, "DOMAIN-NAME|ID|UUID" }, { NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL } @@ -131,6 +134,7 @@ int main(int argc, char **argv) goto cleanup; g_object_set(viewer, "fullscreen", fullscreen, NULL); + virt_viewer_app_set_hotkeys(VIRT_VIEWER_APP(viewer), hotkeys); if (!virt_viewer_app_start(VIRT_VIEWER_APP(viewer))) goto cleanup; |