1. 11 May, 2022 1 commit
  2. 20 May, 2021 1 commit
  3. 11 Mar, 2021 1 commit
  4. 12 Nov, 2020 1 commit
  5. 19 Sep, 2020 1 commit
  6. 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.
      929a56e5
  7. 09 Sep, 2020 4 commits
    • Benjamin Otte's avatar
      revealer: Remove arbitrary 100x scale limit · cb5b375f
      Benjamin Otte authored
      This is no longer necessary because the bug it was rying to solve is now
      solved via the preference for min and nat size.
      cb5b375f
    • Benjamin Otte's avatar
      revealer: Prefer min and nat size · dfccaa88
      Benjamin Otte authored
      Assume that the fully expanded revealer will likely get an allocation
      that matches the child's minimum or natural allocation, so we
      special-case these two values.
      
      So when - due to the precision loss - multiple sizes would match the
      current allocation, we don't pick one at random, we prefer the min and
      nat size.
      
      The preference of nat size over min sie was decided after an IRC vote,
      we don't actually have an idea what's more likely to happen in the real
      world.
      Should we ever get better data, we might want to switch.
      dfccaa88
    • Benjamin Otte's avatar
      revealer: Use floor(), not ceil() · cc58956d
      Benjamin Otte authored
      We use ceil() in measure(), so using it again will increase the
      child's size whenever there is even a tiny rounding error.
      
      This should also not make the size too small, because:
      min = ceil(child_min * scale)
      min / scale >= child_min
      floor (min / scale) >= floor (child_min) = child_min
      The last equality is because child_min is an integer.
      
      Fixes #3137
      cc58956d
    • Benjamin Otte's avatar
      revealer: Refactor code · 0ad10ccf
      Benjamin Otte authored
      Assign the values in the same place.
      0ad10ccf
  8. 21 Aug, 2020 1 commit
  9. 24 Jul, 2020 2 commits
  10. 31 May, 2020 1 commit
    • Christoph Reiter's avatar
      Drop fallback-c89.c · 2d5cf2b4
      Christoph Reiter authored
      We require a C compiler supporting C99 now. The main purpose of
      these fallbacks was for MSVC. From what I can see this is now all supported
      by MSVC 2015+ anyway.
      
      The only other change this includes is to replace isnanf() with the
      (type infering) C99 isnan() macro, because MSVC doesn't provide isnanf().
      2d5cf2b4
  11. 11 May, 2020 1 commit
  12. 05 May, 2020 2 commits
  13. 11 Feb, 2020 1 commit
    • Alexander Larsson's avatar
      revealer: Fix child size allocation at small scales · dc6fe091
      Alexander Larsson authored
      As pointed out in #1481
      and seen from critical warnings with swinging revealers in widget-factory
      there are some size allocation issues in GtkRevealer.
      
      What happens is that we request a size of the revealer itself
      based on the child natural size and the current stage of the transition
      by applying a scale to the natural size. We then round up to nearest
      int size. However, we want the widget to render as if it did get the
      natural size so we can transform it, rather than the scaled down size.
      For example, a label should not start ellipsizing in the animation.
      So we inverse the scale when allocating the child.
      
      Unfortunately, for very small scales the inversion of the scale can
      result in very large sizes, and for such scales we rounded up the
      requested size to 1, so we will be allocating huuuuge children.
      
      In order to avoid such issue we pick an arbitrary maximum upscale
      scale factor of 100. This means that in the case where the allocated
      size is 1 we never allocate the child at > 100 px. This means
      that in large downscaling cases we may run into the clipping issue
      described above. However, at these downscaling levels (100 times!)
      we're unlikely to notice much detail anyway.
      dc6fe091
  14. 29 May, 2019 1 commit
    • Benjamin Otte's avatar
      widget: Fix transform refcounting in allocate() · a079fd2d
      Benjamin Otte authored
      Make the transform (transfer full).
      
      1. This makes sure we actually reference the transform. Previously we
         did not.
      2. Most callers create a new transform to pass to us. Now they don't
         have to uref it anymore.
      a079fd2d
  15. 28 May, 2019 1 commit
  16. 27 May, 2019 1 commit
  17. 29 Mar, 2019 1 commit
  18. 19 Mar, 2019 1 commit
  19. 07 Mar, 2019 1 commit
  20. 08 Feb, 2019 1 commit
  21. 08 Jan, 2019 1 commit
  22. 19 Dec, 2018 1 commit
    • Carlos Garnacho's avatar
      revealer: Fully set the target state if unmapped during animation · 615f10f7
      Carlos Garnacho authored
      If the revealer is told do animate and then unrealize itself, we do
      (correctly) stop the animation, but used to do a shortcut where we
      just set the target state as current.
      
      Other things are dependent on the animation properly finishing though,
      like the contained widget child visibility. This may lead to inconsistent
      state where gtk_revealer_get_child_revealed() returns TRUE but the child
      widget is unmapped, or vice-versa.
      
      Fully finish the animation here, so the child state is coherent the next
      time the revealer is mapped. We can also skip notifying on the property
      since it will be handled by gtk_revealer_set_position().
      615f10f7
  23. 13 Nov, 2018 1 commit
  24. 18 Sep, 2018 1 commit
    • Carlos Soriano's avatar
      revealer: Support minimum size of child · 57ef793e
      Carlos Soriano authored
      Up until now when allocating the child it only used the natural size
      while the measuring also used the minimum size, resulting in a clipped
      child when animating if the child had different minimum size and
      natural size. This was an obvious case when using labels that had
      ellipsization.
      
      This commit gives full allocation to the child by inverting the size
      the revealer reduces from its animation progress.
      
      Code done by Benjamin Otte.
      
      Closes: #635
      57ef793e
  25. 23 Aug, 2018 1 commit
    • Ernestas Kulik's avatar
      revealer: Only clip child when animating · f40eb8a1
      Ernestas Kulik authored
      Currently, GtkRevealer clips the child if the transition type is
      sliding, regardless of whether the animation had already ended. An
      example where that is a problem would be in Nautilus: the file
      operations popover button is animated on reveal to draw attention, but,
      given that the button is in turn stashed inside a revealer with a
      sliding animation, things suddenly fall apart.
      f40eb8a1
  26. 24 Apr, 2018 1 commit
    • Benjamin Otte's avatar
      snapshot: Redo debug messages · 73b4a62f
      Benjamin Otte authored
      Instead of every snapshot function having debug messages, have an
      explicit gtk_snapshot_push_debug() function that appends a debug node.
      73b4a62f
  27. 05 Apr, 2018 1 commit
  28. 20 Mar, 2018 1 commit
    • Alexander Larsson's avatar
      GtkWidget: Start renaming widget->window · 63e060a2
      Alexander Larsson authored
      This is an automated change doing these command:
      
      git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface
      git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface
      git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface
      git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface
      git sed -f g gtk_widget_set_window gtk_widget_set_surface
      git sed -f g gtk_widget_get_window gtk_widget_get_surface
      git sed -f g gtk_widget_register_window gtk_widget_register_surface
      git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface
      
      git checkout NEWS*
      63e060a2
  29. 06 Feb, 2018 1 commit
    • Matthias Clasen's avatar
      The big versioning cleanup · 4c150d8e
      Matthias Clasen authored
      Remove all the old 2.x and 3.x version annotations.
      GTK+ 4 is a new start, and from the perspective of a
      GTK+ 4 developer all these APIs have been around since
      the beginning.
      4c150d8e
  30. 18 Nov, 2017 2 commits
  31. 03 Nov, 2017 1 commit
  32. 06 Oct, 2017 1 commit
    • Benjamin Otte's avatar
      build: Enable -Wswitch-enum and -Wswitch-default · 43c212ac
      Benjamin Otte authored
      This patch makes that work using 1 of 2 options:
      
      1. Add all missing enums to the switch statement
        or
      2. Cast the switch argument to a uint to avoid having to do that (mostly
         for GdkEventType).
      
      I even found a bug while doing that: clearing a GtkImage with a surface
      did not notify thae surface property.
      
      The reason for enabling this flag even though it is tedious at times is
      that it is very useful when adding values to an enum, because it makes
      GTK immediately warn about all the switch statements where this enum is
      relevant.
      And I expect changes to enums to be frequent during the GTK4 development
      cycle.
      43c212ac
  33. 09 Aug, 2017 1 commit
    • Timm Bäder's avatar
      widget: Remove gtk_widget_set_redraw_on_alloc · a8a755e5
      Timm Bäder authored
      Since gtk+ draws more than the widget and allocates more size to it than
      it knows about, this flag doesn't work anymore. Removing it (or setting
      it to TRUE for widgets that used to set it to FALSE) fixes drawing
      invalidation when these widgets get allocated a new size.
      a8a755e5
  34. 20 Jul, 2017 1 commit