summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-util.c
Commit message (Collapse)AuthorAgeFilesLines
* Shift top-left display to originJonathon Jongsma2014-10-271-0/+42
| | | | | | | | | | | | | | When using a custom fullscreen display configuration, it's possible to specify that e.g. a single screen should be fullscreen on client monitor #4. Since we send down absolute positions and disable alignment when all windows are in fullscreen, we can send configurations with a very large offset to the top-left corner. This could result in the guest trying to create a screen that was much larger than necessary. For example when sending a configuration of 1280x1024+4240+0, the guest would need to allocate a screen of size 5520x1024, which might fail if video memory was too low. To avoid this issue, we shift all displays so that the minimum X coordinate for all screens is at x=0, and the minimum y coordinate is at y=0.
* Move monitor alignment function to util headerJonathon Jongsma2014-10-241-0/+50
|
* Don't check for NULL when it never can happenFabiano Fidêncio2014-08-191-1/+1
|
* Only filter virt-viewer debug messagesMarc-André Lureau2014-07-211-1/+1
| | | | | | Filter only our own debug messages. https://bugzilla.redhat.com/show_bug.cgi?id=1118365
* util: fix glib_check_version() conditionMarc-André Lureau2014-06-121-1/+1
| | | | glib_check_version() returns NULL if version is higher or equal.
* Use a custom log handler to silence debug messagesMarc-André Lureau2014-06-101-0/+14
| | | | | | | On RHEL6, with old glib, all g_log messages are printed. Filter the messages with a custom handler instead. https://bugzilla.redhat.com/show_bug.cgi?id=1107518
* Display warning if UI file failsJonathon Jongsma2014-02-111-1/+6
| | | | | | | | | | | When trying to load ui files, we try to find the file in several directories. If a file is not found in one directory, try to load it from the next directory. However, if a file is found in a directory but we are not able to load it (e.g. due to unsupported versions of glade used to generate it, etc), we should print a warning to the terminal to help the developer debug the issue. This is an unexpected failure (whereas not finding the file in that directory at all is an 'expected' failure).
* Load ui files first from installed locationJonathon Jongsma2014-01-201-11/+17
| | | | | | | virt_viewer_util_load_ui() looks first in the current directory, and then looks in the system data dirs for a ui file to load, but if you install virt-viewer in a different prefix, it will load the system UI file rather than the one from the install prefix. Try to load the ui file from pkgdatadir first.
* Add ability to use 'End' key in hotkeysJonathon Jongsma2013-09-101-1/+1
| | | | | | | | | | ctrl_key_to_gtk_key() capitalizes all key names not explicitly specified in the translation table. So 'end' becomes 'END', which is not a valid key name according to GTK+. Un-comment out the 'end' item from the table and set it to the properly capitalized key name ("End"). This allows users to specify e.g. "ctrl+alt+end" as a hotkey for sending the secure attention sequence.
* Add virt_viewer_compare_version()Marc-André Lureau2013-03-081-0/+49
|
* Add VIRT_VIEWER_ERROR GErrorMarc-André Lureau2013-03-081-0/+6
|
* Move spice_hotkey_to_gtk_accelerator() to utilMarc-André Lureau2012-11-271-0/+113
| | | | | To be compatible with RHEVM, VirtViewerFile hotkey format will use the Spice Controller format.
* Fix jenkins build failureMarc-André Lureau2012-10-231-0/+1
| | | | | | | | | virt-viewer-util.c: In function 'virt_viewer_util_init': virt-viewer-util.c:289: warning: implicit declaration of function 'setlocale' virt-viewer-util.c:289: warning: nested extern declaration of 'setlocale' virt-viewer-util.c:289: error: 'LC_ALL' undeclared (first use in this function) virt-viewer-util.c:289: error: (Each undeclared identifier is reported only once virt-viewer-util.c:289: error: for each function it appears in.)
* Use a mutex to check if VirtViewer runningMarc-André Lureau2012-10-231-0/+9
| | | | | | | We need to warn user that installer can't proceed if there is already a running instance of VirtViewer or of the installer. https://bugzilla.redhat.com/show_bug.cgi?id=864033
* Use a common early init() functionMarc-André Lureau2012-10-231-0/+32
| | | | | There is a number of things both virt-viewer and remote-viewer need to do early during execution. Do it only in one place.
* spice: disconnect signal handlers when either object is destroyedMarc-André Lureau2012-07-231-0/+117
| | | | | | | | | | | Use virt_viewer_signal_connect_object(), a copy of telepathy utility function tp_g_signal_connect_object(). This function will take care of removing signal handler if any of emitter or attached object are destroyed. The following patches will have this condition met, since there is no longer 1-1 relation between channel and display. The channels can continue to be around when some of the display are removed.
* Add support for raw IPv6 addresses in VNC & libvirt URIsDaniel P. Berrange2012-04-231-3/+11
| | | | | | Support vnc://[x:y:z:]:5901/ for raw IPv6 addresses in URIs, and qemu+ssh://root@[x:y:x:]:22/ for raw IPv6 addresses in libvirt URIs
* Do not crash so easily when given invalid uriMarc-André Lureau2012-03-161-4/+5
| | | | 'remote-viewer foobar' shouldn't crash
* Update copyright headersDaniel P. Berrange2012-02-061-2/+2
|
* Convert TABS to spaces & reindent everywhereDaniel P. Berrange2012-02-061-83/+83
|
* build: replace deprecated functionsMarc-André Lureau2012-01-301-1/+1
|
* Return if xmlParseURI() failed, instead of crashingMarc-André Lureau2011-08-041-0/+2
|
* Lookup UI file correctly, to fix Windows supportMarc-André Lureau2011-08-041-4/+22
|
* Inherit from VirtViewerApp for VirtViewerMarc-André Lureau2011-07-221-0/+55
| | | | | | Make it a real GObject. The parts specific to virt should go in virt-viewer.c
* Introduce standard naming convention to files & methodsDaniel P. Berrange2011-07-011-0/+61
All source files must be named virt-viewer-XXXX All methods named virt_viewer_XXX