1. 24 Jan, 2011 1 commit
  2. 20 Jan, 2011 1 commit
  3. 08 Jan, 2011 1 commit
  4. 05 Jan, 2011 1 commit
  5. 04 Jan, 2011 3 commits
  6. 28 Dec, 2010 1 commit
  7. 18 Nov, 2010 1 commit
  8. 13 Nov, 2010 3 commits
  9. 10 Nov, 2010 1 commit
  10. 09 Nov, 2010 2 commits
  11. 30 Oct, 2010 6 commits
  12. 26 Oct, 2010 1 commit
    • Tristan Van Berkom's avatar
      Added GtkScrollablePolicy property to scrollable interface · 3fe0fb4e
      Tristan Van Berkom authored
      This patch adds the GtkScrollablePolicy type property to GtkScrollable
      and implements it in all subclasses. GtkScrolledWindow observes this
      property to make a good guess about when to show/hide scrollbars for
      height-for-width content.
      
      Most scrollable children do not do height-for-width *yet* but
      most certainly will (toolpalette, treeview, iconview, textview
      widgets all TODO), for scrollable widgets that do have a minimum
      and natural size, it's important for them to observe the state
      of this property in order to properly drive the scroll adjustments
      according to the desired GtkScrollablePolicy. This patch makes
      GtkViewport do this.
      
      Patch also adds tests/testscrolledwindow.c to display the effects
      of this property.
      3fe0fb4e
  13. 23 Oct, 2010 1 commit
  14. 22 Oct, 2010 3 commits
    • Matthias Clasen's avatar
      Remove GtkScrollablePolicy again · 09ec50af
      Matthias Clasen authored
      This was a miscommunication, the properties need to live elsewhere.
      09ec50af
    • Matthias Clasen's avatar
      Move min-display-width/height to GtkScrolledWindow · 0d9ebb50
      Matthias Clasen authored
      It is just too annoying to have to implement these properties in
      every scrollable. Instead, we now have ::min-content-height/width
      in GtkScrolledWindow.
      
      We also add GtkScrollablePolicy to determine how to size the
      scrollable content.
      0d9ebb50
    • Tadej Borovšak's avatar
      Add GtkScrollable interface · 55196a70
      Tadej Borovšak authored
      The GtkScrollable interface provides "hadjustment" and "vadjustment"
      properties that are used by GtkScrolledWindow. It replaces
      the ::set_scroll_adjustment signal. The scrollable interface
      also has ::min-display-width/height properties that can be
      used to control the minimally visible part inside a scrolled window.
      55196a70
  15. 20 Oct, 2010 1 commit
  16. 15 Oct, 2010 2 commits
  17. 12 Oct, 2010 2 commits
    • Tristan Van Berkom's avatar
      Added logic to GtkScrolledWindow when allocating height-for-width children. · e85dad38
      Tristan Van Berkom authored
      This patch makes the scrolled window reconsider allocating the child
      the full width or height (depending on the child's request mode) without
      a scrollbar. For instance when the child is height-for-width; the child
      will first be tested if the content's height for full allocated width
      (without a vscrollbar) will allow the contents height for that width
      to fit the allocated height.
      
      Patch is a simplified version of code inspected in st-scroll-view.c.
      Note that this patch assumes children will begin to scroll only after
      reaching their minimum size; adding a property to the future
      GtkScrollableIface to decide whether to scroll-to-minimum or scroll-to-natural
      will effect this code (it should then reconsider whether the child
      will scroll below the natural size instead of the minimum).
      
      Patch addresses bug 629778.
      e85dad38
    • Tristan Van Berkom's avatar
  18. 11 Oct, 2010 1 commit
  19. 27 Sep, 2010 2 commits
  20. 26 Sep, 2010 4 commits
    • Benjamin Otte's avatar
      Move GtkSizeRequest into GtkWidget · d9c92598
      Benjamin Otte authored
      It doesn't make sense to keep them separate as GtkSizeRequest requires a
      GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
      one without the other.
      It also makes the code a lot easier because no casts are required when
      calling functions.
      
      Also, the names would translate to gtk_widget_get_width() and people
      agreed that this would be a too generic name, so a "preferred" was added
      to the names.
      
      So this patch moves the functions:
      gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
      gtk_size_request_get_width() => gtk_widget_get_preferred_width()
      gtk_size_request_get_height() => gtk_widget_get_preferred_height()
      gtk_size_request_get_size() => gtk_widget_get_preferred_size()
      gtk_size_request_get_width_for_height() =>
        gtk_widget_get_preferred_width_for_height()
      gtk_size_request_get_height_for_width() =>
        gtk_widget_get_preferred_height_for_width()
      ... and moves the corresponding vfuncs to the GtkWidgetClass.
      
      The patch also renames the implementations of the vfuncs in widgets to
      include the word "preferrred".
      d9c92598
    • Benjamin Otte's avatar
      API: Rename gtk_cairo_paint_*() to gtk_paint_*() · 1d3f6b30
      Benjamin Otte authored
      Large patch, but just renaming.
      Indentation should still mostly be correct because I took care of
      keeping the indentation for this function name.
      1d3f6b30
    • Benjamin Otte's avatar
      scrolledwindow: Port to draw vfunc · ce2d6cc0
      Benjamin Otte authored
      ce2d6cc0
    • Benjamin Otte's avatar
      scrolledwindow: Move paint function into expose handler · 5eabd8c6
      Benjamin Otte authored
      Also remove the is_drawable() check. It will not be needed once we have
      the draw vfunc.
      5eabd8c6
  21. 22 Sep, 2010 1 commit
  22. 21 Sep, 2010 1 commit