1. 18 Jan, 2019 1 commit
  2. 07 Jan, 2019 1 commit
    • Matthias Clasen's avatar
      list store: Fix overflow issues · d8a0dcb1
      Matthias Clasen authored
      Check for over- and underflow when manipulating positions.
      
      This makes the sequence
        g_list_model_get_item (store, 0);
        g_list_model_get_item (store, -1u);
      return NULL for the second call, as it should.
      
      Closes: #1639
      d8a0dcb1
  3. 05 Sep, 2018 1 commit
    • Philip Withnall's avatar
      gliststore: Simplify a GType check on construction · 35d1ef67
      Philip Withnall authored
      When setting the GListStore:item-type property we need to check the
      GType is a GObject (or subclass). There was some explicit code for this,
      but when actually testing it and looking at the code coverage, it turns
      out that the GObject property type check coming from
      g_param_spec_gtype() does everything we want, and the custom
      g_critical() can never be hit. So turn it into an assertion.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
      35d1ef67
  4. 04 Sep, 2018 1 commit
  5. 30 Apr, 2018 1 commit
  6. 29 May, 2017 1 commit
  7. 01 Sep, 2015 1 commit
  8. 31 Aug, 2015 1 commit
    • Matthias Clasen's avatar
      Add g_list_store_sort · e5734c37
      Matthias Clasen authored
      GListStore already has a g_list_store_insert_sorted function,
      which can be used to keep the list sorted according to a fixed
      sort function. But if the sort function changes (as e.g. with
      sort columns in a list UI), the entire list needs to be
      resorted. In that case, you want g_list_store_sort().
      
      https://bugzilla.gnome.org/show_bug.cgi?id=754152
      e5734c37
  9. 23 May, 2015 1 commit
    • David Shea's avatar
      Add introspection annotations to GListStore · 3bd703e9
      David Shea authored
      GListStore requires that item-type be derived from GObject, so specify
      that the type of the item parameters is GObject so the functions can be
      used via gobject-introspection.
      
      Add a scope parameter for the callback used during insert_sorted.
      3bd703e9
  10. 19 Feb, 2015 1 commit
  11. 04 Feb, 2015 1 commit
  12. 03 Feb, 2015 2 commits
  13. 30 Jan, 2015 1 commit