ui/gtk: fix "Copy" menu item segfault
The "Copy" menu item copies VTE terminal text to the clipboard. This
only works with VTE terminals, not with graphics consoles.
Disable the menu item when the current notebook page isn't a VTE
terminal.
This patch fixes a segfault. Reproducer: Start QEMU and click the Copy
menu item when the guest display is visible.
Reported-by: Kevin Wolf <[email protected]>
Reviewed-by: Gerd Hoffmann <[email protected]>
Tested-by: Stefan Weil <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
Message-id:
20161214142518[email protected]
Cc: Michael S. Tsirkin <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>