]> git.proxmox.com Git - mirror_qemu.git/commit
ui/gtk.c: add ctrl-alt-= support for zoom in acceleration
authorZiyue Yang <yzylivezh@hotmail.com>
Tue, 31 Jan 2017 01:32:15 +0000 (09:32 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 31 Jan 2017 07:49:49 +0000 (08:49 +0100)
commit66f6b82bf26cc15e33a39390844035d017102902
tree7f34b8c473003d3c2818a4006e1dadea7d171077
parent6b557d7c933442377de59b71d0d82c3ccba68b2e
ui/gtk.c: add ctrl-alt-= support for zoom in acceleration

Solving wishlist item at
https://bugs.launchpad.net/qemu/+bug/1656710
by accepting Ctrl-Alt-= as an additional zoom-in acceleration.

Using gtk_accel_group_connect to support multiple accelerations
triggering a single menu item since that gtk_accel_map_add_entry
seems to support only one acceleration. A wrapper function
gd_accel_zoom_in is added to support gtk_accel_group_connect's
callback activities.

Signed-off-by: Ziyue Yang <skiver.cloud.yzy@gmail.com>
Message-id: 1485826335-15686-1-git-send-email-skiver.cloud.yzy@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c