summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Display correct key bindings to release cursorMarc-André Lureau2012-03-212-3/+34
| | | | | If the accels are enabled (with Spice controller custom bindings), show the configured keybinding in the title bar.
* spice: implement --fullscreen=auto-confMarc-André Lureau2012-03-217-21/+155
| | | | | | | - auto-conf is an optionnal argument to --fullscreen: it will set the guest display configuration to match the client display configuration, by sending the client monitors size and position to capable guests.
* Fix indentationMarc-André Lureau2012-03-181-13/+13
|
* Do not crash so easily when given invalid uriMarc-André Lureau2012-03-163-5/+7
| | | | 'remote-viewer foobar' shouldn't crash
* Make sure we call g_thread_init()Marc-André Lureau2012-03-093-6/+10
| | | | GThread is needed by spice-gtk
* Notify of focus state when a client connectsMarc-André Lureau2012-03-091-4/+6
| | | | | | The current code notifies the controller when the remote-viewer application starts, but not when the client is connected. We should do the later instead
* Add a send-key menu in fullscreenMarc-André Lureau2012-03-081-1/+57
|
* virt-viewer-window: Don't try to resize non visible windowsHans de Goede2012-03-071-0/+10
| | | | | | | | | | | Trying to resize not visible windows leads to the following being printed to the console: Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion `GDK_IS_WINDOW (window)' This gets triggered by the gdk_screen_get_monitor_geometry() call in virt_viewer_window_resize() Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt-viewer-window: Add show / hide utility functionsHans de Goede2012-03-073-23/+23
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt-viewer-window: Move checks before resize to virt_viewer_window_resizeHans de Goede2012-03-071-5/+5
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt-viewer-window: Remove useless tests for priv->window != NULLHans de Goede2012-03-071-7/+1
| | | | | | | priv->window gets set on init and never unset, so there is no need to check for it. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt-viewer-window: Add a USB device selection to the fullscreen menu (v2)Hans de Goede2012-03-061-0/+10
| | | | | | | | | Note this button only gets shown on USB redir capable virtual machines. Changes in v2: -Use gtk_widget_set_visible for simpler code Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* window: Call virt_viewer_app_quit instead of gtk_main_quitHans de Goede2012-03-061-1/+1
| | | | | | | When quiting from the fullscreen menu call virt_viewer_app_quit instead of gtk_main_quit so that the session gets properly disconnected before quiting. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt_viewer_app_quit: Cleanly close the connection before quitingHans de Goede2012-03-061-1/+11
| | | | | | | | | Even though the previous patches in this series ensure that the session gets properly finalized, we still need to wait for the disconnect signal, as spice-glib uses co-routines which need some time to cleanly close the connection / session. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* session-spice: Delay the disconnected signal till all channels are closedHans de Goede2012-03-061-4/+13
| | | | | | | | | | | | | | | | | | | | Before this patch session-spice would emit the disconnected signal as soon as the main channel is closed, but other channels may still be open at that time and raising the disconnected signal usally leads to the app class calling gtk_main_quit, at which point the other channels never get properly finalized (as there co-routines still hold a reference to them). This is esp. bad for usbredir channels as these re-attach the kernel driver for redirected devices when finalized. So exiting without properly finalizing them leads to the formerly redirected devices not being usuable until the driver is manually reloaded or the device is unplugged and re-plugged (the kernel does not automatically re-bind kernel drivers when userspace closes a usbfs node). This patch fixes this by delaying the emitting of the disconnect signal until the last channel has been destroyed. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt-viewer-app: unref the session on disposeHans de Goede2012-03-061-0/+5
| | | | | | | With this patch combined with the previous patches in this series, the VirtViewerSession (finally) gets properly finalized on exit. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt-viewer-display: Use a borrowed reference to sessionHans de Goede2012-03-061-1/+1
| | | | | | | | | | | | | | Before this patch there was a cyclic reference between VirtViewerSesion and VirtViewerDisplay, since all VirtViewerDisplays are created / destroyed by VirtViewerSession it is safe to assume that lifetime of VirtViewerSession >= VirtViewerDisplay, so VirtViewerDisplay can take a borrowed reference breaking the circle, and allowing proper cleanup on exit. Note that there is no g_object_unref removed from virt-viewer-display, this because there is no finalize / dispose and before this patch VirtViewerDisplay never unref-ed the reference it hold to the session. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt-viewer-window: Use a borrowed reference to appHans de Goede2012-03-061-6/+1
| | | | | | | | | | Before this patch there was a cyclic reference between VirtViewerApp and VirtViewerWindow, since all VirtViewerWindows are created / destroyed by VirtViewerApp it is safe to assume that lifetime of VirtViewerApp >= VirtViewerWindow, so VirtViewerWindow can take a borrowed reference breaking the circle, and allowing proper cleanup on exit. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* virt-viewer-app: main_window is part of our windows hashtableHans de Goede2012-03-061-5/+0
| | | | | | | | | | | | | This means that: 1) There is no need to explictly set its title separately 2) It is unref-ed when we do g_hash_table_unref(priv->windows), so it should not be unref-ed separately otherwise it is unref-ed twice! Notice that 2 was never a problem because of circular references between VirtViewerApp and VirtViewerWindow, but once the follow up patch to this one breaks the circle 2 becomes an issue. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* session-spice: dispose should chain up to dispose not finalize!!Hans de Goede2012-03-061-1/+1
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usbredir: Gnome HIG-ify USB device selection dialogHans de Goede2012-03-061-1/+4
| | | | | | | These changes match the changes already made to the spice-gtk usb device selection widget to match the spacing advised by the Gnome HIG. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usbredir: Shrink the usb device selection dialog when devices are unpluggedHans de Goede2012-03-061-0/+11
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Don't attempt to translate ""Christophe Fergeau2012-03-051-2/+2
| | | | | | | The empty string has a magic meaning for gettext, it's used to store a translation header with all kind of information about the po file. This is not something we want to use as a window title, so change to _("") to "" when we want an empty string.
* Fix path to spice-controller.hChristophe Fergeau2012-03-051-1/+1
|
* Remove trailing blank lineDaniel P. Berrange2012-03-011-1/+0
|
* fix make distcheckMarc-André Lureau2012-03-011-1/+1
|
* remote-viewer: support spice foreign menuMarc-Andre Lureau2012-03-011-51/+160
|
* Add property app:has-focusMarc-André Lureau2012-03-011-0/+44
|
* Fix compilation with gtk 2.18Marc-André Lureau2012-03-014-24/+69
|
* spice: fix connecting via ssh to a password-protected serverMarc-André Lureau2012-03-011-1/+8
| | | | | | spice_session_connect() will attempt to connect directly to the server, we need to continue calling spice_session_open_fd() for ssh tunnel to work.
* spice: fix double unref of main channelMarc-André Lureau2012-03-011-10/+3
| | | | | | | | | | | | | When doing unref() on a channel, channel-destroy signal may be emitted during object dispose time, and it will attempt to unref() the channel again likely leading to a crash. It may be that spice-gtk should have a different/simpler object life-cycle model, but it's also a good assumption to not take strong references on the channels, but just keep a weak reference as the session is really the channel life-cycle manager. https://bugzilla.redhat.com/show_bug.cgi?id=797082
* remote-viewer: add smartcard controller messageMarc-André Lureau2012-02-221-1/+2
|
* spice: teach customizable key bindings with controllerMarc-André Lureau2012-02-221-0/+150
| | | | | Tested with RHEVM 3.0 instance with custom bindings for fullscreen & ungrab.
* Small code simplificationMarc-André Lureau2012-02-223-16/+5
|
* Use the accelgroup to define key bindingsMarc-André Lureau2012-02-223-1/+23
| | | | With accelgroups, we can redefine the keybindings
* Add hidden menu smartcard remove/insert and release-cursorMarc-André Lureau2012-02-222-0/+56
|
* Add virt_viewer_app_get_session()Marc-André Lureau2012-02-222-0/+9
|
* spice: implement smartcard-{insert,remove} virtual methodsMarc-André Lureau2012-02-222-3/+28
|
* Add smartcard-{insert,remove} and release-cursor virtual methodsMarc-André Lureau2012-02-224-4/+52
|
* Do not disable accelgroup if accels are enabledMarc-André Lureau2012-02-221-0/+10
|
* Add VirtViewerApp:enable-accel propertyMarc-André Lureau2012-02-222-0/+29
|
* 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.
* Add back compat for GObject 2.22 which lacks GBindingDaniel P. Berrange2012-02-164-1/+1358
|
* Only link remote-viewer program against SPICE controllerDaniel P. Berrange2012-02-161-2/+2
|
* Remove use of a libtool convenience libraryDaniel P. Berrange2012-02-161-46/+64
| | | | | | | The use of a libtool convenience library causes some platforms to loose the ability to use the GNU_RELRO security feature in the resulting binary. Refactor the makefile to simply compile the common files twice, once for virt-viewer & once for remote-viewer
* First %d in controller title should be substituted with window nthMarc-André Lureau2012-02-141-1/+12
|
* Set pretty icon for remote-viewer windows tooDaniel P. Berrange2012-02-141-0/+2
|
* Don't hardcode 'localhost' in no @listen parameter is givenDaniel P. Berrange2012-02-141-5/+3
| | | | | | If no @listen parameter is given, we must not hardcode 'localhost' since we can't assume we are running on the same host. Instead use the hostname from the connection URI
* Extract tlsPort for SPICE and use it to enable secure connectionsDaniel P. Berrange2012-02-147-33/+49
|
* Set transient parent for screenshot dialogDaniel P. Berrange2012-02-081-11/+13
|