1. 24 Sep, 2022 1 commit
  2. 24 Aug, 2022 1 commit
  3. 11 Jun, 2022 1 commit
  4. 11 May, 2022 1 commit
  5. 20 May, 2021 1 commit
  6. 11 Mar, 2021 1 commit
  7. 05 Aug, 2020 1 commit
  8. 26 Jul, 2020 1 commit
    • Matthias Clasen's avatar
      treelistmodel: Make constructor transfer full · dd1c0c0b
      Matthias Clasen authored
      Make gtk_tree_list_model_new() take the root model
      as first argument, and make it transfer full, for
      consistency with other wrapping list constructors.
      
      Update all callers.
      
      Still missing here: Make the model property writable,
      and allow passing NULL in the constructor.
      dd1c0c0b
  9. 05 Jul, 2020 1 commit
    • Benjamin Otte's avatar
      listmodels: Stop respecting item-type · 50807307
      Benjamin Otte authored
      Simplify all view model APIs and always return G_TYPE_OBJECT as the
      item-type for every model.
      
      It turns out nobody uses item-type anyway.
      
      So instead of adding lots of APIs, forcing people to think about it and
      trying to figure out how to handle filter or map models that modify item
      types, just having an easy life is a better approach.
      
      All the models need to be able to deal with any type of object going
      through anyway.
      50807307
  10. 04 Feb, 2020 1 commit
  11. 13 Jan, 2020 1 commit
  12. 15 Dec, 2019 1 commit
    • Benjamin Otte's avatar
      treelistmodel: Improve docs · c4043a8e
      Benjamin Otte authored
      - Move into its own section
      - Split GtkTreeListRow into its own document
      
      Trees are weird with listmodels and they deserve their own treatment,
      they shouldn't be mushed up with the rest of the list machinery.
      c4043a8e
  13. 24 Feb, 2019 1 commit
  14. 14 Jan, 2019 2 commits
    • Benjamin Otte's avatar
      rbtree: Make node getters not require tree argument · 8a7706f2
      Benjamin Otte authored
      The tree is not needed to walk around the nodes.
      
      It is however still needed for anything that requires modifying the
      tree.
      
      There is no immediate benefit in changing this API, but there might be
      situations in the future where we can avoid looking up the tree when we
      just want to check some details about the node.
      8a7706f2
    • Matthias Clasen's avatar
      Rename GtkCssRBTree to GtkRBTree · 25bca27b
      Matthias Clasen authored
      This is a generally usable red-black tree api,
      and it is not used in css at all.
      25bca27b
  15. 20 Sep, 2018 1 commit
  16. 18 Sep, 2018 4 commits
  17. 17 Sep, 2018 1 commit
  18. 16 Sep, 2018 3 commits
    • Benjamin Otte's avatar
      treelistmodel: Add more API to navigate the tree · d6161e09
      Benjamin Otte authored
      This adds functionality from GtkTreeIter into GtkTreeListRow that allows
      finding items in the model and getting their position for use in
      GtkListBox.
      d6161e09
    • Benjamin Otte's avatar
      treelistmodel: Refactor to add GtkTreeListRow · 4b5fb5ec
      Benjamin Otte authored
      This patch does multiple things:
      
      1. Add a custom persistent per-row object.
      2. Move all per-row API to that object. This means notifications are now
         possible.
      3. Add a "passthrough" construct-only property to the TreeListModel that
         influences if the model returns these new object or passes through
         the ones from the model.
      
      This greatly simplifies the code needed to be written for widgetry,
      because one can just connect the per-row object to the expanders that
      expand and collapse rows.
      
      As an added power feature, these objects can also be passed through
      further models (like filter models).
      
      It also adds kind of a hack to Adwaita to make the test look neat.
      4b5fb5ec
    • Benjamin Otte's avatar
      gtk: Add GtkTreeListModel · 573c6397
      Benjamin Otte authored
      This is a GListModel implementation with a neat API that can be used to
      implement trees inside GtkListBox.
      573c6397