summaryrefslogtreecommitdiffstats
path: root/src/ovirt-foreign-menu.c
Commit message (Collapse)AuthorAgeFilesLines
* foreign-menu: Don't show empty foreign menu on secondary displaysChristophe Fergeau2015-03-131-0/+3
| | | | | | | | | | When using ovirt://, the foreign menu will only be shown in the primary window after getting notified about OvirtForeignMenu::files (ie when it managed to fetch some ISO files to show in the foreign menu). However, for secondary windows, the foreign menu will be added to the window even if there are no files to show. This commit makes sure we destroy the window foreign menu whenever it would be empty.
* ovirt: Allow to remove CD imagesChristophe Fergeau2014-10-091-4/+0
| | | | | | | | | | | | | It turns out this is supposed to be done through update requests with a CD image with an empty name, which is what the current code tries to do. The only reason it's not working is because of server-side bugs with oVirt < 3.5 The requirement on libgovirt is raised to 0.3.2 as a small change is needed as well in libgovirt to allow empty filenames: https://git.gnome.org/browse/libgovirt/commit/?id=bdb788fcc Without this change, nothing too bad will happen, but the CD won't be removed and warnings will be logged in the console.
* Remove inaccurate G_GNUC_UNUSEDChristophe Fergeau2014-09-221-1/+1
| | | | The 'user_data' variable is used in the callback.
* Create foreign menu from .vv file informationChristophe Fergeau2014-08-181-0/+186
| | | | | | | | | | | | | When the .vv file has an [ovirt] section, we should try to create a foreign menu out of it. This will allow remote-viewer to offer a menu to change the currenty inserted cdrom. Contrary to the ovirt:// case when we already have fetched an OvirtAPI and OvirtVm instance in order to get the SPICE/VNC connection details, when working from a .vv file, we'll need to get them from the REST API. Authentication should happen through the JSESSIONID cookie, if that fails we want to give up on using the foreign menu, so we don't need to set up authentication callbacks.
* ovirt: Add OvirtForeignMenu classChristophe Fergeau2014-08-181-0/+686
This class is used to implement the so-called oVirt 'foreign menu' which is a menu populated with ISO images available on the oVirt instance that the user can dynamically insert into the virtual machine he is currently viewing.