1. 12 Sep, 2018 1 commit
  2. 01 Sep, 2018 1 commit
    • Florian Müllner's avatar
      portal network monitor: Always emit changed signal on changed · 423a2936
      Florian Müllner authored
      The ::network-changed signal is documented to indicate any change in
      network configuration, which doesn't necessarily imply a property
      change - additional services becoming available after connecting to
      a VPN comes to mind for instance.
      
      In order to match the "native" network monitor's behavior, always
      emit the signal when it's in response to the 'changed' D-Bus signal.
      
      Also emit the signal unconditionally when loading the initial property
      values, to allow clients to differentiate between "offline" meaning
      "offline" and "offline" meaning "uninitialized".
      423a2936
  3. 27 Aug, 2018 6 commits
  4. 16 Aug, 2018 1 commit
  5. 21 Jul, 2018 1 commit
    • Matthias Clasen's avatar
      network monitor: Update portal implementation · 5ed808d7
      Matthias Clasen authored
      The network monitor portal interface is changing.
      Version 2 is no longer using properties, but getters
      instead (this lets the portal apply access control
      and avoid sending information to non-networked
      sandboxes).
      
      To support both version 1 and 2 of the interface,
      we stop using generated code and instead deal with
      the api differences in our own code, which is not
      too difficult.
      
      Support version 1 as well
      5ed808d7
  6. 11 Apr, 2018 1 commit
    • Milan Crha's avatar
      gnetworkmonitor: Fix use-after-free when using from another thread · ca0add4b
      Milan Crha authored
      When using g_network_monitor_get_default() from another thread, it’s
      possible for network-changed events to be processed after an instance of
      GNetworkMonitor has been disposed, causing use-after-free problems.
      
      Fix that by moving some of the initialisation into the GInitable.init()
      chain, rather than in a main context idle callback.
      
      This includes a unit test which probabilistically reproduces the bug
      (but can’t do so deterministically due to it being a race condition).
      
      Commit amended by Philip Withnall <withnall@endlessm.com> before
      pushing.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=793727
      ca0add4b
  7. 29 May, 2017 1 commit
  8. 02 May, 2017 1 commit
    • Matthias Clasen's avatar
      portal support: Raise the priority for network monitor · f3403548
      Matthias Clasen authored
      When we are inside a sandbox, we want to use the portal
      implementation, since it is the only one that has a chance
      of working.
      
      This is safe to do, since the portal implementation will
      just fail initialization when loaded outside a sandbox.
      f3403548
  9. 08 Jul, 2016 1 commit