1. 25 Aug, 2016 1 commit
  2. 23 Sep, 2015 1 commit
  3. 06 Sep, 2015 1 commit
  4. 15 Aug, 2015 1 commit
  5. 04 Jan, 2015 1 commit
  6. 09 Jun, 2014 2 commits
  7. 22 May, 2014 1 commit
  8. 19 Feb, 2014 1 commit
  9. 05 Feb, 2014 1 commit
  10. 23 Oct, 2013 1 commit
  11. 09 Jul, 2013 1 commit
  12. 25 Feb, 2013 1 commit
  13. 12 Feb, 2013 1 commit
  14. 06 Dec, 2012 2 commits
    • Benjamin Otte's avatar
      gtk: Use gtk_style_context_get() · 055b5d83
      Benjamin Otte authored
      ... instead of soon-to-be-deprecated gtk_style_context_get_font().
      055b5d83
    • Benjamin Otte's avatar
      gtk: Use context's font · 7747910b
      Benjamin Otte authored
      Instead of using gtk_style_context_get_font() in
      pango_context_get_metrics(), use pango_context_get_font_description().
      The context contains the font description we are about to use after all.
      7747910b
  15. 04 May, 2012 1 commit
  16. 13 Apr, 2012 1 commit
  17. 27 Feb, 2012 1 commit
  18. 31 Jan, 2012 1 commit
  19. 22 Dec, 2011 1 commit
  20. 16 Dec, 2011 1 commit
  21. 12 Apr, 2011 1 commit
  22. 27 Jan, 2011 1 commit
  23. 24 Jan, 2011 1 commit
  24. 23 Jan, 2011 1 commit
  25. 05 Jan, 2011 1 commit
    • Tristan Van Berkom's avatar
      Fixed get_size() for GtkCellRendererText to clip to the input area · 9a80100e
      Tristan Van Berkom authored
      For ellipsize cells it's important to clip the result of get_size()
      so that the returned required rectangle is indeed less than or equal
      to the input rectangle... this is done so that GtkCellArea can accurately
      paint focus on cells by calling gtk_cell_renderer_get_aligned_area().
      
      Patch also adds assertions to gtk_cell_renderer_get_aligned_area() to
      ensure this keeps working correctly.
      9a80100e
  26. 23 Dec, 2010 1 commit
    • Kristian Rietveld's avatar
      GtkCellRendererText: use PANGO_PIXELS_CEIL for text_width · 9ab27869
      Kristian Rietveld authored
      Usually pango_layout_get_pixel_extents() is used, which uses
      PANGO_PIXELS_CEIL on the rectangle's width.  This commit makes the new
      function gtk_cell_renderer_text_get_preferred_width() consistent with
      this.
      
      This fixes rounding errors on Mac OS X, where we were seeing tree views
      with a double height for a single line of text, while the usual single
      row height would have been sufficient.
      9ab27869
  27. 15 Dec, 2010 1 commit
    • Kristian Rietveld's avatar
      Clip to cell_area when rendering cell content · a28c11a2
      Kristian Rietveld authored
      This fixes a GTK+ 3.0 regression.  In GTK+ 2, the render method
      on GtkCellRenderer had a expose_area parameter, typically set to
      cell_area.  This parameter was used for clipping cell content to be
      rendered to the cell area (and thus clipping to within the focus
      rectangle).  During the rendering clean up this parameter was removed
      and no clipping put back into place.
      
      Since expose_area was usually equal to cell_area anyway, it does not make
      sense to reintroduce the expose_area parameter.  Instead, we do clipping at
      two levels:
       - in gtk_cell_renderer_render() we clip to background_area.  We cannot
      clip to cell_area here because we want to allow cell renderers to
      render in the background area (e.g. background color/effect).
       - cell renderers should clip to clip_area when rendering cell
      content individually (as they had to individually clip to expose_region
      before).
      a28c11a2
  28. 04 Dec, 2010 1 commit
  29. 28 Nov, 2010 1 commit
  30. 25 Nov, 2010 2 commits
  31. 08 Nov, 2010 1 commit
  32. 06 Nov, 2010 1 commit
  33. 25 Oct, 2010 1 commit
  34. 22 Oct, 2010 1 commit
  35. 04 Oct, 2010 1 commit
  36. 26 Sep, 2010 2 commits
    • Benjamin Otte's avatar
      cellrenderer: Merge GtkCellSizeRequest into GtkCellRenderer · e6612901
      Benjamin Otte authored
      This mostly goes to keep consistency with the changes to GtkSizeRequest
      in the last patch, as GtkCellSizeRequest requires GtkCellRenderer and
      GtkCellRenderer implements GtkCellSizeRequest there's no use in keeping
      them separate.
      
      This patch renames the functions:
      gtk_cell_size_request_get_request_mode()
        => gtk_cell_renderer_get_request_mode()
      gtk_cell_size_request_get_width()
        => gtk_cell_renderer_get_preferred_width()
      gtk_cell_size_request_get_height()
        => gtk_cell_renderer_get_preferred_height()
      gtk_cell_size_request_get_size()
        => gtk_cell_renderer_get_preferred_size()
      gtk_cell_size_request_get_width_for_height()
        => gtk_cell_renderer_get_preferred_width_for_height()
      gtk_cell_size_request_get_height_for_width()
        => gtk_cell_renderer_get_preferred_height_for_width()
      ... and moves the corresponding vfuncs to GtkCellRenderer.
      
      The patch also renames the implementations of these functions in cell
      renderers to include the word "preferrred".
      e6612901
    • 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