1. 19 Feb, 2014 1 commit
  2. 05 Feb, 2014 1 commit
  3. 23 Oct, 2013 1 commit
  4. 09 Jul, 2013 1 commit
  5. 25 Feb, 2013 1 commit
  6. 12 Feb, 2013 1 commit
  7. 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().
    • 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.
  8. 04 May, 2012 1 commit
  9. 13 Apr, 2012 1 commit
  10. 27 Feb, 2012 1 commit
  11. 31 Jan, 2012 1 commit
  12. 22 Dec, 2011 1 commit
  13. 16 Dec, 2011 1 commit
  14. 12 Apr, 2011 1 commit
  15. 27 Jan, 2011 1 commit
  16. 24 Jan, 2011 1 commit
  17. 23 Jan, 2011 1 commit
  18. 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.
  19. 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 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.
  20. 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
  21. 04 Dec, 2010 1 commit
  22. 28 Nov, 2010 1 commit
  23. 25 Nov, 2010 2 commits
  24. 08 Nov, 2010 1 commit
  25. 06 Nov, 2010 1 commit
  26. 25 Oct, 2010 1 commit
  27. 22 Oct, 2010 1 commit
  28. 04 Oct, 2010 1 commit
  29. 26 Sep, 2010 4 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_renderer_get_request_mode()
        => gtk_cell_renderer_get_preferred_width()
        => gtk_cell_renderer_get_preferred_height()
        => gtk_cell_renderer_get_preferred_size()
        => gtk_cell_renderer_get_preferred_width_for_height()
        => 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".
    • 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_size_request_get_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".
    • 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.
    • Benjamin Otte's avatar
      API: Change cellrenderer->render vfunc to take a cairo_t · e31e77ee
      Benjamin Otte authored
      Also constify the rectangle arguments. They were const anyway.
  30. 15 Sep, 2010 1 commit
  31. 27 Aug, 2010 1 commit
  32. 22 Aug, 2010 1 commit
  33. 20 Aug, 2010 1 commit
  34. 19 Aug, 2010 1 commit
    • Tristan Van Berkom's avatar
      Added/Implemented GtkCellSizeRequestIface · e2a82c70
      Tristan Van Berkom authored
      This patch adds height-for-width geometry management
      for cell renderers while still responding to the old
      gtk_cell_renderer_get_size() apis with virtual return values
      (obtained by soliciting the new height-for-width cell renderer
  35. 10 Aug, 2010 1 commit