summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* build: fix build with recent mingw64Marc-André Lureau2012-02-232-4/+4
| | | | | | Christophe did similar patches for common/ directory in spice. Some day, we should try to sync and move common/ to a spice-common project...
* usbredir: Add awareness of host/guest side filteringHans de Goede2012-02-224-5/+40
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usbredir: Add a spice_usb_device_manager_can_redirect_device functionHans de Goede2012-02-224-32/+144
| | | | | | | Add a spice_usb_device_manager_can_redirect_device function and use this in SpiceUsbDeviceWidget to check if redirection is available. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usb-device-widget: Use an info_bar for error messagesHans de Goede2012-02-222-14/+79
| | | | | | | | | | | And in general gnome-hig-ify usb-device-widget: * Use spacing instead of padding so that there is no padding at the outside/border of the widget, allowing the user to control the border size. * Use multiple of 6 as spacing / indentation values * Show the label left justified and bold, show the checkboxes (and the info bar) 12 pixels indented from the label Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* configure: Fix "USB redirection support" summary on --disable-usbredirHans de Goede2012-02-221-2/+2
| | | | | | | | When running "./configure --disable-usbredir" the "USB redirection support" line in the summary at the end of ./configure would be empty after "support" instead of ending with yes or no. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usbredir: Treat the user cancelling the policykit dialog as a cancelHans de Goede2012-02-222-3/+15
| | | | | | | Rather then treating it as any other error. This avoids showing an error dialog after the user pressed cancel in the policykit dialog. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usbredir: Add device rejected errorsHans de Goede2012-02-226-3/+117
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* RFC: Use spice protocol as a submoduleMarc-André Lureau2012-02-225-5/+15
| | | | | | Spice protocol contains only headers. We would like to be able to use a protocol update without having to wait for the release, a git submodule works well for this purpose.
* Fix make distcheckMarc-André Lureau2012-02-201-0/+1
|
* usbredir: Shrink the usb device selection dialog when devices are unpluggedHans de Goede2012-02-201-0/+9
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usbredir: make channel lifetime equal to session lifetimeHans de Goede2012-02-206-76/+121
|
* usbutil: Add support for getting strings from usb.idsHans de Goede2012-02-203-0/+172
| | | | | | | | Unfortunately not all device makers go to the "trouble" of adding device identification strings to a device's descriptors. This patch makes spice-gtk translate vid/pid into strings if the device lacks the strings. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usbutil: Add a spice_usb_util_get_device_strings helper functionHans de Goede2012-02-203-28/+50
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usb: Move various helper functions into usbutil.[c,h]Hans de Goede2012-02-207-83/+149
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Add controller ENABLE_SMARTCARD messageMarc-André Lureau2012-02-173-1/+7
|
* widget: fix mouse wrapping failing when the window is outsideMarc-André Lureau2012-02-131-33/+14
| | | | | | | | | | | | | Use a anchor mouse position after every move, similar to spicec to avoid reaching transparent border on the screen. We try to move to the center of the screen, but gdk_display_warp_pointer () will move the cursor within the grabbed window (so it still receives mouse events even on Windows) Tested with Linux and Windows clients. Fixes bug: https://bugs.freedesktop.org/show_bug.cgi?id=45595
* Set keepalive on channel socketNicolas Prochazka2012-02-132-5/+8
| | | | | | | Without keepalive on each connection(channel), channel is destroyed after ip_conntrack_tcp_timeout_established timeout. https://bugs.freedesktop.org/show_bug.cgi?id=45899
* Use an openssl BIO stream using GSocketMarc-André Lureau2012-02-126-6/+152
| | | | | | | | | | | | | | | Until now, the BIO object used by openssl to read & write was using the socket fd directly. But the mainloop integration is done with GSocket. On Windows, the read/write events are cleared after g_socket_send()/receive() with private function _win32_unset_event_mask. If the glib functions aren't cleared, glib source will keep notifying of data available in or out. On Windows, this causes a busy loop when doing SSL_read() for example (glib POLL_IN data condition is reached and SSL_read() return needs data). Instead, openssl should read/write using GSocket methods.
* Don't warn if setsockopt(TCP_NDELAY) fails with errno==ENOTSUPDaniel P. Berrange2012-02-091-1/+1
| | | | | | If connecting to a UNIX domain socket, it is expected that the setsockopt(TCP_NDELAY) call will fail with errno=ENOTSUP, so don't issue a warning in that case
* Link with usbredirparserChristophe Fergeau2012-02-081-1/+1
| | | | | | spice-gtk uses usbredirfilter_string_to_rules which is defined in usbredirparser but does not link with it. This causes link errors on some distributions. Fixes fdo bug #45761.
* Lower or silence some harmless debug messagesMarc-André Lureau2012-02-032-5/+3
|
* widget: allow defining a zoom-levelMarc-André Lureau2012-02-012-4/+34
| | | | | | | | | | | | Add a "zoom-level" property. Maintain the given scaling ratio when scaling is enabled. If scaling is disabled, this property is ignored. For example at 50%, this allows to fit a 640x480 desktop in a 320x240 widget and when resizing it to 640x512 to have a 1280x1024 desktop. (this feature is required by virt-viewer)
* widget: factor out update_size_request() and scaling_updated()Marc-André Lureau2012-02-011-26/+37
| | | | | | | | | | | | | | Factor out and simplify a little the code to allow easier addition of zoom-level property. The "set_display" parameter for recalc_geometry() seems to be useless, since the code was apparently trying to set the guest to the given d->width and d->height, but reseting it to the current value, which cancel the effect. We should fix the problem of setting the guest resolution at display-init time in a follow-up patch since it probably never worked with spice-gtk.
* Report the scaling is 1.0 if the widget isn't realized yetMarc-André Lureau2012-01-311-1/+1
| | | | To avoid a few warnings in some corner cases.
* Do not grab/release the clipboard on guest without clipboard supportMarc-André Lureau2012-01-315-2/+31
| | | | | Add an agent capability check before calling those functions from gtk-session. Avoid extra warnings.
* Release 0.9v0.9Hans de Goede2012-01-312-1/+7
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Add a USB device selection widgetHans de Goede2012-01-3110-9/+558
| | | | | | | | | This patch adds a SpiceUsbDeviceWidget which apps can use to easily add an UI to select USB devices to redirect (or unredirect). See spicy for an example usage. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* usb-device-manager: Cleanup USB manufacturer and product stringsHans de Goede2012-01-301-0/+13
| | | | | | The strings returned by devices sometimes can benefit from some clean-up. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* spice-client-glib-usb-acl-helper: Fix mention of Lesser in license headerHans de Goede2012-01-281-1/+1
| | | | Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* spice-client-glib-usb-acl-helper: ensure we set the acl on a chardevHans de Goede2012-01-281-1/+15
| | | | | | | | Josh Bressers has been so kind to review the usb-acl-helper for possible security issues. One of his recomendations was to ensure that the file we're setting the acl on is a chardev. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* spice-client-glib-usb-acl-helper: Fix memleakHans de Goede2012-01-281-0/+1
| | | | | | | Not really important given the short livedness of the process, but still should be fixed. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* configure: Add an option for building the acl helper as PIEHans de Goede2012-01-282-0/+31
| | | | | | | | Josh Bressers has been so kind to review the usb-acl-helper for possible security issues. One of his recomendations was to harden the usb-acl-helper by building it as a Position Independent Executable. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* configure.ac: s/x"$have_foo"/"x$have_foo"/Hans de Goede2012-01-281-8/+8
| | | | | | | | | | | configure.ac was using 2 slightly different styles for have_foo tests: if test x"$have_foo" = "xyes"; then and: if test "x$have_foo" = "xyes"; then Switch to the latter style everywhere for consistency. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* configure.ac: Cleanup policykit checksHans de Goede2012-01-281-5/+6
| | | | | | | | | | * No need to set AM_CONDITIONAL WITH_POLKIT from the enable_usbredir tests, it get sets from the enable_polkit tests in all paths * Improve the help text: mention auto as option, policykit -> PolicyKit, not yes but auto is the default * Warn when building with usbredir support but not building the acl helper Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Add check for Perl::Text::CSVChristophe Fergeau2012-01-241-0/+10
| | | | | This check is only added to configure.ac contrary to the pyparsing patch.
* Add check for pyparsingChristophe Fergeau2012-01-242-3/+18
| | | | | | Check both in configure.ac (after checking if we need to rebuild the marshalling files) and in the python script using pyparsing (for people modifying .proto files in tarballs)
* Use PKG_CHECK_EXISTS for g-i has_symbol_prefix checkChristophe Fergeau2012-01-241-1/+1
| | | | | | | | GOBJECT_INTROSPECTION_CHECK will alread test for the presence of gobject-introspection. The PKG_CHECK_MODULES(GOBJECT_INTROSPECTION) call only needs to set the has_symbol_prefix variable, so we can use PKG_CHECK_EXISTS here, and let GOBJECT_INTROSPECTION_CHECK do the rest of the work.
* Autodetect usbredir and PolicyKit by defaultChristophe Fergeau2012-01-242-34/+47
| | | | | | | | | | | | Currently, usb redirection and policykit are enabled by default, and configure will error out if the required dependencies cannot be found. This commit changes the default behaviour, by default usb redirection/policykit support is automatically enabled/disabled depending on the availability of the needed dependencies. Passing --enable-usbredir will error out if the dependencies for usb redirection cannot be found, ditto for policykit. This should make things nicer for people running configure or autogen.sh with no argument.
* Add command line options for setting the cache size and the glz window sizeYonit Halperin2012-01-241-0/+10
| | | | This options will help us tune and find the optimal values.
* Change the setting of the images cache size and the glz window sizeYonit Halperin2012-01-245-10/+97
| | | | | | Set the default sizes to be the same as in the old linux spice client. cache_size=20M pixels (instead of 32M), window_size=8M pixels for a 64MB dev ram (instead of 16M pixels).
* build: fix vapigen error and warningsMarc-André Lureau2012-01-242-1/+5
| | | | | | Thanks to Jeremy Bicha for the bug report and testing solution. https://bugs.freedesktop.org/show_bug.cgi?id=45154
* controller: use a controller listener abstractionMarc-André Lureau2012-01-235-47/+209
| | | | | Add a wrapper file for named pipe and socket listener, so we can release tarball with code compatible with windows and unix.
* build: use AM_GLIB_GNU_GETTEXTMarc-André Lureau2012-01-231-4/+4
| | | | | | | | For some unknown reason, this set DATADIRNAME='share' on Windows, which is what is expected. Although some people say only IT_PROG_INTLTOOL is necessary, it gets the path wrong in this case too.
* gtk-session: weak reference the session for clipboard cbMarc-André Lureau2012-01-181-8/+50
| | | | | | | | | | | | | | It seems Gtk is lacking a way to cancel a gtk_clipboard_request_*(). Although it seems like gtk_selection_remove_all() would solve that problem, it will have nasty effect of destroying other pending requests from others.. Let's make use of an extra weak reference object that will be nulled when the session is destroyed. This should help solving the follwing bug: https://bugzilla.redhat.com/show_bug.cgi?id=743773
* gtk-session: ignore destroy of outdated main channelMarc-André Lureau2012-01-181-1/+2
| | | | | | This solves clipboard sharing not working with a password protected server, since new main channel are created for each connection attempt.
* build: allow out-of-tree building of python bindingsMarc-André Lureau2012-01-171-2/+4
|
* spice-channel: Allow calling spice_msg_out_send from any contextHans de Goede2012-01-172-14/+40
| | | | | | | | | | | | | | | | | | spice_msg_out can be not only called from system context and usb event handling thread context, but also from co-routine context. Calling from co-routine context happens when a response gets send synchronously from the handle_msg handler for a certain received packet. This happens with certain usbredir commands. This triggers the following assert in the coroutine code: "GSpice-CRITICAL **: g_coroutine_wakeup: assertion `coroutine != g_coroutine_self()' failed" This patch fixes this by making spice_msg_out_send callable from any context and at the same time changing the code to not do unnecessary wakeups. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* gtk/display: Get rid of old FSF address in copyright headersHans de Goede2012-01-1613-52/+26
| | | | | | | rpmlint pointed this out while I was checking the new spice-gtk-0.8 package for Fedora. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
* Handle spice_audio_new failuresChristophe Fergeau2012-01-161-0/+2
| | | | | | | | | | spice_audio_new can return a NULL pointer when there's a failure during the initialization of the audio system. When this happens, we shouldn't keep initializing the spice audio channel as if nothing happened, but just stop the connection. This can be tested by forcing the "self" variable to NULL in spice_audio_new This should fix https://bugzilla.redhat.com/show_bug.cgi?id=772118
* Release 0.8v0.8Marc-André Lureau2012-01-155-9/+30
|