1. 10 Jun, 2010 1 commit
  2. 07 Jun, 2010 1 commit
    • Matthias Clasen's avatar
      Merge the wip/gapplication branch · 6427e937
      Matthias Clasen authored
      This adds a GApplication object to GIO, which is the core of
      an application support class, supporting
      - uniqueness
      - exporting actions (simple scripting)
      - standard actions (quit, activate)
      
      The implementation for Linux uses D-Bus, takes a name on the
      session bus, and exports a org.gtk.Application interface.
      
      Implementations for Win32 and OS X are still missing.
      6427e937
  3. 04 Jun, 2010 2 commits
  4. 20 May, 2010 1 commit
    • David Zeuthen's avatar
      Bug 619142 – Build fixes · 366b3ffc
      David Zeuthen authored
       - Fix various #include issues
      
       - Change #error to #warning for the EXTERNAL authentication mechanism.
         It is not clear if this should work on Win32 at all.
      
       - Call close() before unlink() for the SHA1 keyring
      
       - Change #error to #warning so we don't forget to do
         permission checking of the .dbus-keyrings directory
      
       - Use Win32 SID for the SHA1 auth mech
      
       - Apparently we can't use word 'interface' as an identifier
      
       - Implement a _g_dbus_win32_get_user_sid() function. For now it's
         private. Don't know if it should be public somewhere. Maybe in
         a future GCredentials support for Win32? I don't know.
      
       - GFileDescriptorBased is not available on Win32. So avoid using
         it in GLocalFile stuff. Now, Win32 still uses GLocalFile + friends
         (which works with file descriptors) so expose a private function
         to get the fd for an OutputStream so things still work.
      
       - Fixup gio.symbols
      
       - Fixup tests/gdbus-peer.c so it builds
      
      With this, at least things compile and the gdbus-peer.exe test case
      passes. Which is a great start. I've tested this by cross-compiling on
      a x86_64 Fedora 13 host using mingw32 and running the code on a 32-bit
      Windows 7 box.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=619142Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
      366b3ffc
  5. 13 May, 2010 4 commits
    • David Zeuthen's avatar
      GDBus: Remove g_dbus_is_activated() · 1fd55b8b
      David Zeuthen authored
      It's generally hard to get this right so don't attempt to do so.
      1fd55b8b
    • David Zeuthen's avatar
    • David Zeuthen's avatar
      GDBus: add 'monitor' verb to gdbus(1) · ea1e0496
      David Zeuthen authored
      This uncovered a bug in name watching if the name wasn't activatable.
      
      Also provoked the need for on_connection variants of g_bus_watch_name
      (added g_bus_watch_proxy's variant as well).
      ea1e0496
    • David Zeuthen's avatar
      GDBusProxy: Remove error in get_cached_property() and add set_cached_property() · f909cb5b
      David Zeuthen authored
      This makes it possible to use the cached properties mechanism even if
      constructing the proxy with the DO_NOT_LOAD_PROPERTIES flag.
      
      This is useful for cases where you obtain the and track object
      properties out-of-band. For example, in udisks, the plan is to have
      something like this
      
       Manager.GetObjects    (out ao paths, out aa{sa{sv}} all_properties);
       Manager.ObjectAdded   (o path, a{sa{sv}} all_properties);
       Manager.ObjectChanged (o path, a{sa{sv}} all_properties);
       Manager.ObjectRemoved (o path, a{sa{sv}} all_properties);
      
      E.g. the first GetObjects() call will return *all* data about *all*
      exported objects. Further, this way a client will only need to listen
      these three signals (three AddMatch) on the Manager object and it will
      never need to do GetAll() etc (e.g. can use DO_NOT_LOAD_PROPERTIES).
      
      (Of course this only works if the client is interested in all
      objects... while this is true for udisks it is generally not true for
      other D-Bus services).
      
      Also use expected_interface to check for programming errors.
      f909cb5b
  6. 10 May, 2010 1 commit
    • David Zeuthen's avatar
      GDBus: Use call() instead of invoke_method() · 869b4c68
      David Zeuthen authored
      Lots of people been suggesting this. We still use MethodInvocation /
      method_invocation for handling incoming method calls so use call()
      instead of invoke_method() helps to separate the client and server
      facilities. Which is a good thing(tm).
      869b4c68
  7. 09 May, 2010 1 commit
  8. 06 May, 2010 1 commit
  9. 03 May, 2010 1 commit
  10. 28 Apr, 2010 1 commit
  11. 23 Apr, 2010 2 commits
  12. 22 Apr, 2010 1 commit
    • Dan Winship's avatar
      GUnixSocketAddress: handle abstract sockets with non-0-padded names · 19d8cc33
      Dan Winship authored
      There are apparently two incompatible ways of naming abstract sockets:
      pad the sockaddr with 0s and use the entire thing as the name, or else
      don't, and just pass a shorter length value to the relevant functions.
      We previously only supported the former method. Add support for the
      latter.
      
      Also correctly handle "anonymous" unix sockaddrs (eg, the client side
      of a connection, or a socketpair() socket), and add unix domain socket
      support to the socket-client and socket-server test programs to make
      sure this all works.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=615960
      19d8cc33
  13. 21 Apr, 2010 1 commit
  14. 20 Apr, 2010 1 commit
  15. 19 Apr, 2010 1 commit
    • Tor Lillqvist's avatar
      Add GWin32InputStream and GWin32OutputStream classes · 9af8b832
      Tor Lillqvist authored
      Correspond to GUnixInputStream and GUnixOutputStream. No true async
      support though. But that is how the Win32 API is, for files not
      explicitly opened for so-called overlapped IO.
      
      The API to create these streams takes Win32 HANDLEs. Not file
      descriptors, because file descriptors are specific to the C library
      used. The user code and GLib might be using different C libraries.
      
      Also add a test program for the new classes, and a gio-windows-2.0.pc
      file.
      9af8b832
  16. 17 Apr, 2010 2 commits
  17. 16 Apr, 2010 1 commit
  18. 15 Apr, 2010 1 commit
  19. 14 Mar, 2010 1 commit
  20. 01 Mar, 2010 1 commit
    • Alexander Larsson's avatar
      Remove GUtf8InputStream for now · 2bfddf16
      Alexander Larsson authored
      It turns out that the way this worked did not work out for the current
      main usecase (gedit) due to issues with how this is best integrated
      with GtkTextView. So, in order to not have to support an unused non-ideal
      API forever we remove this before its been in a stable release.
      
      The basic feature seems to have some utility though, so we hope for it
      to eventually return in a better form.
      2bfddf16
  21. 22 Feb, 2010 1 commit
  22. 12 Jan, 2010 1 commit
    • Alexander Larsson's avatar
      Add support for lazy loading of giomodules · 488bede1
      Alexander Larsson authored
      Adds an optional query method to giomodules which should return all
      possible extension points the module may implement.
      
      Then we add a new call g_io_modules_scan_all_in_directory() similar to
      g_io_modules_load_all_in_directory() that doesn't return all loaded
      modules, thus allowing lazy loading.
      
      In g_io_modules_scan_all_in_directory we look for an optional
      giomodule.cache file and use the information in that to avoid
      loading modules until they are needed for an extension point.
      488bede1
  23. 06 Dec, 2009 1 commit
  24. 30 Nov, 2009 1 commit
  25. 24 Nov, 2009 1 commit
  26. 19 Nov, 2009 1 commit
  27. 18 Nov, 2009 1 commit
  28. 19 Aug, 2009 1 commit
    • Benjamin Otte's avatar
      Add g_cancellable_release_fd() · 63426886
      Benjamin Otte authored
      This patch only adds the function. The function is a NOP.
      See the API documentation for a rationale.
      
      Part of: Bug 591388 - number of GCancellables available is too limited
      63426886
  29. 06 Jul, 2009 1 commit
    • David Zeuthen's avatar
      Allow interaction when unmounting mounts · 99a1c473
      David Zeuthen authored
      For details, see bug 587482. The new api:
      
       - Provide new _with_operation() variants of all unmount and eject methods
      
       - Add GMountOperation::show-processes signal
         - this can be used to show processes blocking an unmount operation
      
       - Deprecate all unmount and eject methods
      
       - Add g_drive_can_start_degraded() method
         - this is to avoid auto-starting degraded drives
      
       - Make g_drive_stop() resp. g_file_stop_mountable() take a GMountOperation
         - these ops were recently added and not yet public API so it's fine
           to change how they work
      
       - Provide a way to poll mountable files, e.g. g_file_poll_mountable()
      
       - Add some missing file attributes for mountable files
        - G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE
          - needed for the GDU Nautilus extensions to format a volume
        - G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED:
          - mimics g_drive_can_start_degraded()
        - G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL:
          - mimics g_drive_can_poll_for_media()
        - G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC
          - mimics g_drive_is_media_check_automatic()
      99a1c473
  30. 01 Jul, 2009 1 commit
  31. 23 Jun, 2009 3 commits
  32. 15 Jun, 2009 1 commit
    • David Zeuthen's avatar
      Bug 585591 – Starting/stopping drives · fae755e0
      David Zeuthen authored
      Add API for starting/stopping drives. This new API will enable
      GVolumeMonitor and GVfs implementations to add support for the
      following features
      
       1. Powering down external hard disk enclosures / drives
      
       2. Starting/stopping multi-disk devices (such as RAID/btrfs/ZFS)
      
       3. Connecting/disconnecting iSCSI devices
      
       4. Reacting to the user pressing e.g. the "remove drive" button on
          a IBM/Lenovo Ultrabay: http://www.thinkwiki.org/wiki/Ultrabay
      
      See the bug for the corresponding GVfs and Nautilus changes.
      fae755e0