1. 11 Apr, 2021 1 commit
    • Matthias Clasen's avatar
      menubutton: Propagate focus-on-click · e2420f62
      Matthias Clasen authored
      Propagate the focus-on-click setting to the button
      inside, so that setting menubuttons as !focus-on-click
      works as expected. This helps for menubuttons in
      header bars, where dragging on the button will otherwise
      steal focus from the content.
  2. 11 Mar, 2021 4 commits
  3. 26 Jan, 2021 1 commit
  4. 19 Jan, 2021 1 commit
    • Matthias Clasen's avatar
      menbutton: Redo indicator arrows · e7c29b98
      Matthias Clasen authored
      Instead of hardcoding icon names in the widget, use
      arrow.none, arrow.up, arrow.down, arrow.left, arrow.right
      styles and set the icon to use with -gtk-icon-source. This
      lets themes change the icons that are used here, without
      forcing all uses of pan-up/down/start/end-symbolic to be
      treated the same.
      Document this in the menubutton CSS docs.
  5. 23 Dec, 2020 1 commit
  6. 07 Dec, 2020 1 commit
  7. 10 Nov, 2020 1 commit
    • Emmanuele Bassi's avatar
      a11y: Parse reference lists using varargs · c264254d
      Emmanuele Bassi authored
      Using GList is a bit lame, and makes the API more complicated to use
      than necessary in the common case.
      The only real use case for a GList is gtk_widget_add_mnemonic_label(),
      and for that we can use the GValue-based API instead.
      Fixes: #3343
  8. 21 Oct, 2020 1 commit
  9. 14 Oct, 2020 1 commit
  10. 29 Sep, 2020 2 commits
    • Florian Müllner's avatar
      menubutton: Remove obsolete private method · 7ad42df7
      Florian Müllner authored
      It was only added for the fallback app menu in headerbars, which
      has been removed in the meantime.
    • Arnaud B.'s avatar
      Make GtkMenuButton::direction more useful. · 46840822
      Arnaud B. authored
      This property was only used until now when
      there was neither an icon nor a label set,
      for arrow direction and popover placement.
      Starting with Gtk4, a GtkMenuButton with a
      label shows an arrow at the right (in LTR)
      of the label. Allow disabling the arrow or
      changing its direction using the direction
      property, to have a way to restore a Gtk3-
      like look or to improve popover placement.
      Fixes #2811.
  11. 12 Sep, 2020 1 commit
    • Matthias Clasen's avatar
      Clean up lots of GTK+ -> GTK · 929a56e5
      Matthias Clasen authored
      Replace most remaining uses of GTK+ in the docs and
      user-visible strings by GTK. Also remove some leftover
      "Was added in 3.x" sentences from the docs.
  12. 26 Jul, 2020 1 commit
    • Emmanuele Bassi's avatar
      Remove ATK · c63087a5
      Emmanuele Bassi authored
      To build a better world sometimes means having to tear the old one down.
              -- Alexander Pierce, "Captain America: The Winter Soldier"
      ATK served us well for nearly 20 years, but the world has changed, and
      GTK has changed with it. Now ATK is mostly a hindrance towards improving
      the accessibility stack:
       - it maps to a very specific implementation, AT-SPI, which is Linux and
         Unix specific
       - it requires implementing the same functionality in three different
         layers of the stack: AT-SPI, ATK, and GTK
       - only GTK uses it; every other Linux and Unix toolkit and application
         talks to AT-SPI directly, including assistive technologies
      Sadly, we cannot incrementally port GTK to a new accessibility stack;
      since ATK insulates us entirely from the underlying implementation, we
      cannot replace it piecemeal. Instead, we're going to remove everything
      and then incrementally build on a clean slate:
       - add an "accessible" interface, implemented by GTK objects directly,
         which describe the acces...
  13. 24 Jul, 2020 1 commit
  14. 12 May, 2020 2 commits
  15. 05 May, 2020 1 commit
  16. 20 Apr, 2020 1 commit
  17. 17 Apr, 2020 2 commits
  18. 09 Apr, 2020 1 commit
    • Matthias Clasen's avatar
      Reinstate expected focus behavior · 632524f6
      Matthias Clasen authored
      After the :can-focus change in the previous commit, widgets
      need to set suitable focus and grab_focus implementations
      to implement the desired focus behavior.
      This commit does that for all widgets.
  19. 28 Mar, 2020 2 commits
  20. 25 Feb, 2020 1 commit
    • Matthias Clasen's avatar
      popover: Drop ::relative-to · a43d13aa
      Matthias Clasen authored
      It is enough to just set the parent (and make the parent
      call gtk_native_check_resize in size_allocate).
      This commit removes the relative_to argument to the
      constructors of GtkPopover and GtkPopoverMenu, and
      updates all callers.
  21. 07 Feb, 2020 2 commits
  22. 13 Jan, 2020 1 commit
  23. 30 Dec, 2019 2 commits
  24. 09 Sep, 2019 3 commits
  25. 13 Jun, 2019 1 commit
  26. 09 Jun, 2019 2 commits
    • Matthias Clasen's avatar
      menu button: Use proper focus api · ae8373f1
      Matthias Clasen authored
      Widgets are supposed to call gtk_widget_child_focus.
      Calling internal focus_move function directly makes
      us skip the childs ::focus() implementation, which
      is where the magic happens.
    • Matthias Clasen's avatar
      Rationalize popover menu apis · 609f1659
      Matthias Clasen authored
      Make gtk_popover_new_from_model() return a GtkPopoverMenu,
      rename it to gtk_popover_menu_new_from_model() and add
      a relative_to argument to gtk_popover_menu_new().
      Update all callers.
  27. 30 May, 2019 1 commit
  28. 28 May, 2019 1 commit