Skip to content
Snippets Groups Projects
  1. Feb 09, 2022
  2. Nov 15, 2021
  3. Jun 23, 2021
    • Emmanuele Bassi's avatar
      generate: Handle the element-type attribute for ListModels · fbcbd3a5
      Emmanuele Bassi authored
      When returning a GListModel, GTK annotates the element type held inside
      the list model with:
      
          (attributes element-type=GtkWindow)
      
      as the `(element-type)` annotation can only work for arrays, linked
      lists, and hash tables.
      
      We still want to indicate what is the expected type inside a GListModel,
      as it's completely opaque otherwise.
      fbcbd3a5
  4. Jun 11, 2021
  5. May 21, 2021
    • Emmanuele Bassi's avatar
      Restructure the arguments and return value sections · ed5928f5
      Emmanuele Bassi authored
      Reword the generated content:
      
       - expand the "direction" using a proper explanation instead of in, out,
         or in-out
       - refer to argument or return value
       - structure the return value table like the arguments one
       - add style classes to the tables
       - check for array or list independently from the generated link
      
      We also make sure that every callable template follows the same pattern
      for the arguments and return value section.
      ed5928f5
    • Emmanuele Bassi's avatar
      Generate GError argument description · 2d419872
      Emmanuele Bassi authored
      The introspection data turns GError** arguments into a `throws`
      attribute. We already add the argument when generating the declaration
      of a method or function, so we also need to generate the corresponding
      argument description.
      
      Fixes: #86
      2d419872
  6. May 18, 2021
    • Emmanuele Bassi's avatar
      template: Use a stylable separator for the heading · ee630c37
      Emmanuele Bassi authored
      The dot can be confused with actual syntax, so we should use something
      else to separate the clickable elements of the heading.
      
      Instead of hard coding the separator, we can use an empty <span> and
      then use CSS to fill it out.
      
      Fixes: #81
      ee630c37
  7. Apr 09, 2021
  8. Mar 24, 2021
  9. Mar 08, 2021
  10. Mar 07, 2021
    • Emmanuele Bassi's avatar
      generate: List function macros · 85bc1b0e
      Emmanuele Bassi authored
      Sadly, function macros are not matched to a type, so they all reside in
      the global namespace. They also lack types for arguments, so they aren't
      as nicely integrated as actual functions.
      
      Fixes: #45
      85bc1b0e
  11. Feb 23, 2021
    • Emmanuele Bassi's avatar
      generate: Handle known attributes · 2891327e
      Emmanuele Bassi authored
      Attributes are custom key/value annotations that are reported "as is" in
      the XML. We can define a keys that library authors can use in their
      annotations, and when we find them in the GIR, we can use them to
      generate additional content.
      
      For instance, if a property has an "org.gtk.Property.get" annotation
      pointing to a getter function, we can generate the link in the property
      documentation.
      2891327e
  12. Feb 20, 2021
  13. Feb 18, 2021
  14. Feb 17, 2021
  15. Feb 16, 2021
  16. Feb 15, 2021
  17. Feb 14, 2021
  18. Feb 12, 2021
  19. Feb 11, 2021
  20. Feb 05, 2021
  21. Feb 04, 2021
Loading