summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer.xml
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: Don't use GtkStockFabiano Fidêncio2016-02-241-15/+10
| | | | | | | | | | | | It has been deprecated since Gtk 3.10. New strings have been added as the GTK_STOCK_* defines had their translations done inside Gtk itself, but now the translations of the new added labels must be done by virt-viewer translators. Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
* Port to GtkApplication API'sEduardo Lima (Etrunko)2016-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of this patch consists in code being shuffled around to fit the expected flow while using the new APIs. I tried my best to make this patch the less intrusive as possible. Main changes are: - Updated build requirements * glib version 2.38 * gtk+ version 3.10 * gio - VirtViewerApp is now a subclass of GtkApplication. Some mainloop calls were replaced: * gtk_main() -> g_application_run() * gtk_quit() -> g_application_quit() - Unified command line option handling. The logic has moved from the main functions and split in common options, and specific ones for each application. With this, the main functions were highly simplified, and now basically responsible for instantiating the App object and running the main loop. - All Window objects must be associated with the Application. With this, there is no need to emit our own 'window-added'/'window- removed' signals, as those will be emited by GtkApplication whenever gtk_application_add_window() and gtk_application_remove_window() are called. Also, 'window-removed' was not being used anywhere. Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
* Show preferences dialogMarc-André Lureau2015-03-051-0/+9
| | | | Add a menu item Preferences under File and show the preferences dialog
* Make default window size a bit more usefulJonathon Jongsma2014-09-241-2/+2
| | | | | | | | Currently, windows have a default size of 400x400 pixels. This is a strange aspect ratio for a display, and it is also too small to be useful for much. Since the default window size determines the initial size of newly-enabled displays, it would be nice if we used a slightly better size.
* Revert changes related to numpad acceleratorsFabiano Fidêncio2014-09-231-36/+0
| | | | | | | | | | | | | | | | | | | | Due to a GTK+ limitation and bad testing from my side, I've pushed two patches trying to add support to use Ctrl + {+, -, 0} from numpad to control zoom-in, zoom-out and zoom-reset. Unfortunately, with the first patch (3a168815) I've duplicated the menu items related to the zoom functions. With the second one (55cdb986), provided to not show the duplicated menu items, we came back to the initial state, where the numpad accelerators don't work. So, in resume, multiple accelerators in a GTK+ widget are only supported on applications using GApplication, what is not our case and won't be till we drop the GTK+2 support. Revert "Do not show duplicated menu items" and Revert "Add support to use numpad accelarators for zoom-{in.out,reset}" This reverts commits 55cdb9867df05f1c4f6c8e569a6f0c1e0bc28d99 and 3a168815b738076526ba0f3e9a82e6fb1db482e9.
* Do not show duplicated menu itemsFabiano Fidêncio2014-09-151-3/+3
| | | | | | When the support to use numpad accelerators for zoom-{in,out,reset} was added (3a168815), by mistake, we have added duplicated buttons in View -> Zoom.
* Add support to use numpad accelarators for zoom-{in.out,reset}Fabiano Fidêncio2014-08-191-0/+36
| | | | | | | | As virt-viewer uses GtkAccelMap for shortcuts and that GTK only can have one key binding per accelerator (in accel_map_add_entry), let's also add support specificly for the numpad keys in the virt-viewer code https://bugzilla.redhat.com/show_bug.cgi?id=883433
* Add a dialog showing details of the current guestJonathon Jongsma2014-08-071-0/+10
| | | | | | This allows the user to obtain the GUID and vm name of the currently-connected guest. Obviously, this only works with spice. In the future, it will allow them to set guest-specific configuration options (using a GUID as a key)
* virt-viewer.xml: remove zoom-{in,out} acceleratorsMarc-André Lureau2014-07-221-2/+0
| | | | | The XML menu accelerators conflict with accelerator set in the code and prevent using them. This is a regression from d29fc63d.
* Make ctrl-[+-] zoom in/out in fullscreenMarc-André Lureau2014-07-081-0/+2
| | | | | | | Make ctrl-[+-] zoom in/out in fullscreen with mouse over the control bar. https://bugzilla.redhat.com/show_bug.cgi?id=987549
* Remove "Automatically resize" menuMarc-André Lureau2014-03-131-10/+0
| | | | | | | Remove "Automatically resize" menu item (always enabled for Spice display now) https://bugzilla.redhat.com/show_bug.cgi?id=1007649
* Rename internal toggle-fullscreen menu accel nameMarc-André Lureau2013-11-071-1/+1
| | | | This avoid confusion with other fullscreen state property
* window: use dynamically generated menuMarc-André Lureau2013-07-301-168/+0
| | | | | Remove the static Glade menu in favour of the one generated dynamically already used for the toolbar.
* Make zoom-reset a global key bindingMarc-André Lureau2013-07-301-1/+2
|
* Use the accelgroup to define key bindingsMarc-André Lureau2012-02-221-1/+0
| | | | With accelgroups, we can redefine the keybindings
* Add hidden menu smartcard remove/insert and release-cursorMarc-André Lureau2012-02-221-0/+31
|
* Require an accel group for full-screen menuMarc-André Lureau2012-02-221-0/+3
| | | | Bump Gtk depedency to 2.18, since we already use symbols from it.
* Only make the USB device selection sensitive when the vm is USB capableHans de Goede2012-02-061-0/+1
|
* Add a menu entry for USB device selectionHans de Goede2012-02-061-0/+10
|
* Add a "Displays" submenu, and warn when closing last displayMarc-André Lureau2011-07-261-31/+107
|
* Split VirtViewerApp window into VirtViewerWindowMarc-André Lureau2011-07-261-24/+24
|
* Turn VirtViewer into a VirtViewerApp objectMarc-André Lureau2011-07-221-24/+24
|
* Replace use of GtkAlignment with a custom align widgetDaniel P. Berrange2011-07-011-3/+11
| | | | | | | | | | To use the GtkAlignment we have to play evil tricks overriding its size request, to make it reallocate the child to the preferred size we desire based on the virtual desktop size + zoom level. By replacing the GtkAlignment with a custom widget we can directly implement the layout/sizing semantics we want without playing stupid games
* Introduce standard naming convention to files & methodsDaniel P. Berrange2011-07-011-0/+291
All source files must be named virt-viewer-XXXX All methods named virt_viewer_XXX