1. 15 Nov, 2021 1 commit
  2. 11 Nov, 2021 3 commits
    • Philip Withnall's avatar
      WIP · 301ace51
      Philip Withnall authored
      
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <pwithnall@endlessos.org>
      301ace51
    • Philip Withnall's avatar
      WIP · fc454283
      Philip Withnall authored
      
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <pwithnall@endlessos.org>
      fc454283
    • Bastien Nocera's avatar
      GApplication: Add RestartData property, and setter · 2f56a143
      Bastien Nocera authored and Philip Withnall's avatar Philip Withnall committed
      The RestartData property on the org.gtk.Application interface can be
      used by session services to save some data to disk should the
      application disappear.
      
      The application would call g_application_set_restart_data() when the
      state of the application changes, with enough information for the
      application to restart itself in the same "position".
      
      FIXME:
       [ ] API docs
       [ ] note about restart data size
       [ ] have one example implementation of the session side
      
      One idea would be for xdg-desktop-portal to save a stringified
      RestartData to ~/.var/app/$ID/config/state.gvariant if none empty when
      the application disappears from the bus.
      
      Questions:
      - Can we enforce to only do this for unique applications?
      - Can we detect applications leaving the bus suddenly, or do we
        want to rely on them clearing RestartData if they're "done" (or should
        they always save state, *some* state)
      - Should we implement this via org.gnome.SessionManager.Client and the
        app calling out to gnome-session instead?
      - Or is this API fine, and gnome-session can do what xdg-desktop-portal
        does above?
      2f56a143
  3. 09 Nov, 2021 1 commit
  4. 07 Nov, 2021 3 commits
  5. 05 Nov, 2021 1 commit
  6. 04 Nov, 2021 4 commits
    • Philip Withnall's avatar
      Merge branch '1109-no-match-rule' into 'main' · 044229e1
      Philip Withnall authored
      gdbusproxy: Add G_DBUS_PROXY_FLAGS_NO_MATCH_RULE flag
      
      Closes #1109
      
      See merge request GNOME/glib!2322
      044229e1
    • Philip Withnall's avatar
      Merge branch 'fix_garray_warning' into 'main' · 746ce4e0
      Philip Withnall authored
      Fix always true comparison warning in glib/garray.c
      
      See merge request GNOME/glib!2311
      746ce4e0
    • Emmanuel Fleury's avatar
      Fix always true comparison warning in glib/garray.c · 12113f39
      Emmanuel Fleury authored
      glib.git/glib/garray.c: In function ‘g_array_new’:
      glib.git/glib/garray.c:184:34: error: comparison is always true due to limited range of data type [-Werror=type-limits]
        184 |   g_return_val_if_fail (elt_size <= G_MAXSIZE / 2 - 1, NULL);
            |                                  ^~
      glib.git/glib/gmacros.h:1090:25: note: in definition of macro ‘G_LIKELY’
       1090 | #define G_LIKELY(expr) (expr)
            |                         ^~~~
      glib.git/glib/garray.c:184:3: note: in expansion of macro ‘g_return_val_if_fail’
        184 |   g_return_val_if_fail (elt_size <= G_MAXSIZE / 2 - 1, NULL);
            |   ^~~~~~~~~~~~~~~~~~~~
      glib.git/glib/garray.c: In function ‘g_array_sized_new’:
      glib.git/glib/garray.c:265:34: error: comparison is always true due to limited range of data type [-Werror=type-limits]
        265 |   g_return_val_if_fail (elt_size <= G_MAXSIZE, NULL);
            |                                  ^~
      glib.git/glib/gmacros.h:1090:25: note: in definition of macro ‘G_LIKELY’
       1090 | #define G_LIKELY(expr) (expr)
            |                         ^~~~
      glib.git/glib/garray.c:265:3: note: in expansion of macro ‘g_return_val_if_fail’
        265 |   g_return_val_if_fail (elt_size <= G_MAXSIZE, NULL);
            |   ^~~~~~~~~~~~~~~~~~~~
      12113f39
    • Lubomir Rintel's avatar
      gdbusproxy: Add G_DBUS_PROXY_FLAGS_NO_MATCH_RULE flag · a107a328
      Lubomir Rintel authored and Philip Withnall's avatar Philip Withnall committed
      D-Bus has an upper limit on number of Match rules and it's rather easy to hit
      with a big number of proxies with signal subscriptions. This happens with
      NetworkManager with hundreds of devices or connection settings. By passing
      G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE to g_dbus_connection_signal_subscribe(), the
      user can call AddMatch with a less granular match instead of a match per every
      proxy.
      
      Tests subsequently added by Philip Withnall.
      
      Fixes: #1109
      a107a328
  7. 03 Nov, 2021 5 commits
  8. 02 Nov, 2021 17 commits
  9. 01 Nov, 2021 5 commits