1. 12 Mar, 2019 5 commits
  2. 10 Mar, 2019 1 commit
  3. 09 Mar, 2019 1 commit
  4. 04 Mar, 2019 4 commits
  5. 03 Mar, 2019 2 commits
    • Emmanuele Bassi's avatar
      Merge branch 'master' into 'master' · c830ab2d
      Emmanuele Bassi authored
      A11y: export gtk_cell_accessible_parent_get_(row|column)_header_cells
      
      See merge request !505
      
      (cherry picked from commit 95c0f072)
      
      a52431d2 A11y: export gtk_cell_accessible_parent_get_(row|column)_header_cells
      c830ab2d
    • Christoph Reiter's avatar
      treeview: make sure separator nodes have a height > 0 · af6dd6bf
      Christoph Reiter authored
      In case the theme doesn't set a height/min-height for the treeview
      separator the treeview drawing gets confused and draws rows on top of each
      other depending on the redraw area.
      
      This is due to gtk_tree_view_get_row_height() assuming that a node with a
      height <= 0 is not set and not a separator and it will default to the
      expander size.
      
      Ideally gtk_tree_view_get_row_height() would know if it operates on a separator,
      but there are too many calls/levels, so just make sure the separator height
      is at least 1 (Adwaita already sets "min-height: 2px", so no change there)
      af6dd6bf
  6. 27 Feb, 2019 2 commits
  7. 23 Feb, 2019 1 commit
    • Martin Blanchard's avatar
      menu: Fix accel-group property reset · d6840ad3
      Martin Blanchard authored
      GtkMenu's "accel-group" property setter, gtk_menu_set_accel_group(),
      currently returns in failure if the caller passes it a NULL `accel_group`
      argument. This argument is annotated with `(allow-none)`. This patch
      add support for the NULL case.
      d6840ad3
  8. 22 Feb, 2019 4 commits
  9. 18 Feb, 2019 1 commit
    • Emmanuele Bassi's avatar
      treeview: Don't show empty tooltips · 2934482a
      Emmanuele Bassi authored
      If the column used for the GtkTreeView:tooltip-column contains NULL
      we're already skipping a tooltip; let's ignore empty strings as well,
      as an empty tooltip is pretty much pointless.
      
      Close #1681
      2934482a
  10. 14 Feb, 2019 1 commit
    • Emmanuele Bassi's avatar
      Use C locale when building gtktypefuncs.c · 6058495f
      Emmanuele Bassi authored
      We're using [a-z] ranges with sed and grep, and POSIX does not specify
      their behaviour in non-ASCII locales:
      
        In the POSIX locale, a range expression represents the set of
        collating elements that fall between two elements in the collation
        sequence, inclusive. In other locales, a range expression has
        unspecified behavior
          -- IEEE Std 1003.1-2017, § 9.3.5 (7)
      
      This can lead to no results, or invalid replacements, which in turn can
      lead to broken builds or broken build artifacts.
      
      Fixes: #1662
      6058495f
  11. 08 Feb, 2019 1 commit
  12. 07 Feb, 2019 3 commits
    • Jonas Ådahl's avatar
      menu: Fixate size calculated by gdk_window_move_to_rect() · 57300b49
      Jonas Ådahl authored
      When we receive a size from the move-to-rect implementation, force GTK
      to continue using that size until reconfigured by move-to-rect, or
      when remapped.
      
      Fixes: #1651
      57300b49
    • Jonas Ådahl's avatar
      menu: Force recalculation of size before positioning · 7298e73c
      Jonas Ådahl authored
      On X11, the position of the menu is calculated synchronously by
      gdk_window_move_to_rect(). This means that calculating the window size
      when showing is too late, as that'd mean the size used when calculating
      the position is out-of-date. The first time a menu is mapped, however,
      the size is calculated during realization; but a window is only realized
      once, so it doesn't work for subsequent maps.
      
      Currently, this is harmless, as a GtkMenu can change its size however it
      wants after it has been mapped. This, however, is problematic, as it
      means the position calculated by gdk_window_move_to_rect() might no
      longer be valid, or constraints made by the same function might no
      longer be respected.
      
      Thus, this is a preparation for making GtkMenu popups stay the same size
      until they are remapped again at a later point.
      7298e73c
    • Jonas Ådahl's avatar
      window: Add private API to force-resize · 461f5fde
      Jonas Ådahl authored
      Sometimes (read for GtkMenu on X11) it's not enough to resize on show,
      and relying on the size to be calculated on realization only works the
      first time a menu is popped up, so add an API that GtkMenu can use to
      ensure the size of a menu is "refreshed" before passing anything along
      to gdk_window_move_to_rect().
      461f5fde
  13. 06 Feb, 2019 1 commit
    • Jonas Ådahl's avatar
      window: Add private API to fixate size · edb57a92
      Jonas Ådahl authored
      This causes window size guessing to always use the remembered size (the
      size of the GdkWindow). This will be useful for menus which size is
      managed by gdk_window_move_to_rect(), to avoid overriding the size
      calculated by the move-to-rect implementation.
      edb57a92
  14. 05 Feb, 2019 4 commits
  15. 04 Feb, 2019 9 commits