summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.c
Commit message (Collapse)AuthorAgeFilesLines
* Document "set" properties a bitMatthias Clasen2012-05-261-3/+8
| | | | | | | Both GtkTextTag and GtkCellRenderer make use of "set" properties which are a bit special. Document this. https://bugzilla.gnome.org/show_bug.cgi?id=531319
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* cell-renderer: add the CELL style class to the editing widgetCosimo Cecchi2012-01-311-0/+2
| | | | | When we create an editing widget, add the CELL style class to it, for identification by the themes.
* Deprecate all the public API that is using GdkColor structJavier Jardón2011-12-221-1/+8
|
* cellrenderer: Use the widget state flags as a base for cell renderers' stateRui Matos2011-12-191-1/+6
|
* cellrenderer: Add API to keep the accessible typeBenjamin Otte2011-12-161-0/+40
| | | | | It's private for now, because we require a GType that isn't exported in the API yet.
* API: cellrenderer: Add a private structBenjamin Otte2011-12-161-2/+40
|
* Minor documentation improvementsMurray Cumming2011-02-231-2/+2
| | | | Mostly correcting it's to its and changing some , to .
* gtk: gtk_cell_renderer_get_state(): check the widget's effective sensitivityMichael Natterer2011-02-061-1/+1
|
* gtk: gtk_cell_renderer_get_state(): a row can be both selected and insensitiveMichael Natterer2011-02-061-9/+9
| | | | | | so pull the SELECTED state flag out of the !sensitive branch. Also, don't make FOCUSED depend on SELECTED here, it's up to the widget to decide whether or not that is possible.
* Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()Carlos Garnacho2011-02-061-1/+2
|
* Added default implementation of GtkCellRendererClass.get_request_mode()Tristan Van Berkom2011-02-031-8/+10
| | | | | | Having default implementations on abstract classes that do nothing or print errors make life easier for language bindings implementors, inside GTK+ this makes little or no difference.
* Tiny typo fix.Murray Cumming2011-01-281-2/+2
|
* Set "cell" class and state before rendering a cellrenderer.Carlos Garnacho2011-01-271-1/+11
|
* Add gtk_cell_renderer_get_state()Carlos Garnacho2011-01-271-0/+45
| | | | | | This is a helper function to help retrieve a GtkStateFlags from a GtkCellRendererState, also given the cell renderer and widget sensitivities.
* Silence new gcc warningsMatthias Clasen2011-01-231-4/+4
| | | | | gcc 4.6.0 has started to warn about set-but-unused variables. So don't do that, then.
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-20/+20
|
* [GI] Fixes of existing incorrect annotationsPavel Holejsovsky2011-01-201-1/+1
|
* Fixed assertions in gtk_cell_renderer_get_aligned_area().Tristan Van Berkom2011-01-131-2/+2
| | | | | | The assertions here were not accounting for the possiblility of zero width visible renderers that are aligned completely to the right (i.e. renderers with no content set for a said row).
* Fixed get_size() for GtkCellRendererText to clip to the input areaTristan Van Berkom2011-01-061-0/+5
| | | | | | | | | | 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.
* Fix some parameter name mismatches in the docsMatthias Clasen2011-01-051-5/+0
|
* Reduce includes of gtktypeutils.h to a minimumMatthias Clasen2011-01-041-0/+1
|
* Clip to cell_area when rendering cell contentKristian Rietveld2010-12-161-0/+3
| | | | | | | | | | | | | | | | | | | 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).
* Merge branch 'master' into treeview-refactorTristan Van Berkom2010-12-051-3/+3
|\ | | | | | | | | | | Conflicts: gtk/gtkmarshalers.list tests/Makefile.am
| * cellrenderer: Fix docs to say cairo_t instead of GdkDrawableBenjamin Otte2010-12-021-3/+3
| |
* | Merge branch 'master' into treeview-refactorTristan Van Berkom2010-12-021-1/+1
|\ \ | |/ | | | | | | Conflicts: tests/Makefile.am
| * rgba: Invert the arguments and improve bindabilityEmmanuele Bassi2010-11-281-1/+1
| | | | | | | | | | | | | | | | Since parse() is a method of the Gdk.RGBA class, the GdkRGBA pointer should be the first argument, and the string the second one, to allow a more natural binding. https://bugzilla.gnome.org/show_bug.cgi?id=635879
| * Don't export _gtk_cell_renderer_calc_offsetMatthias Clasen2010-11-091-1/+1
| | | | | | | | | | | | This is just a private convenience function, and exporting _-prefixed functions doesn't work with our libtool setup. Just do the 3 line calculation in gail.
| * docs: Move documentation to inline comments: GtkCellRendererJavier Jardón2010-11-061-0/+39
| |
* | Changed cell area/renderer "can_focus" semantics to "is_activatable" across ↵Tristan Van Berkom2010-11-291-4/+4
| | | | | | | | | | | | | | | | the board. This is because focus in treeviews can be given to cells that cannot do anything with activation (for better keynav), so we dissociate the concept of cell activation and focusing.
* | Added gtk_cell_renderer_get_aligned_area() and class vfunc.Tristan Van Berkom2010-11-251-1/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | Since a cell renderer might use more space than the natural size when recieving expand space it's impossible to know how much space is actually used to render content. Adding this virtual method to allow text renderers to implement it, the base default method uses height-for-width apis and aligns the cell assuming the renderer uses a fixed size. This commit removes the similar code from gtkcellarea and subclasses.
* | Don't export _gtk_cell_renderer_calc_offsetMatthias Clasen2010-11-131-1/+1
| | | | | | | | | | | | This is just a private convenience function, and exporting _-prefixed functions doesn't work with our libtool setup. Just do the 3 line calculation in gail.
* | docs: Move documentation to inline comments: GtkCellRendererJavier Jardón2010-11-081-0/+39
| |
* | Committing half-way done focus work.Tristan Van Berkom2010-11-051-0/+26
|/
* Support resetting cell renderer colors with NULL againMatthias Clasen2010-10-251-18/+26
| | | | | | This functionality was lost when GdkRGBA was introduced. Bug 632936
* GtkCellRenderer: Add ::cell-background-rgba propertyCarlos Garnacho2010-10-221-14/+44
| | | | | This property uses GdkRGBA in order to render the cell renderer's background.
* Move classes that currently derive from GtkObject to GInitiallyUnownedJavier Jardón2010-09-261-2/+1
|
* cellrenderer: Merge GtkCellSizeRequest into GtkCellRendererBenjamin Otte2010-09-261-104/+344
| | | | | | | | | | | | | | | | | | | | | | | | | 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".
* API: gtk_cell_renderer_render_cairo() => gtk_cell_renderer_render()Benjamin Otte2010-09-261-7/+7
|
* API: Remove gtk_cell_renderer_render()Benjamin Otte2010-09-261-47/+0
| | | | | The next commit will rename gtk_cell_renderer_render_cairo() to gtk_cell_renderer_render() again
* API: Add gtk_cell_renderer_render_cairo()Benjamin Otte2010-09-261-5/+48
| | | | It's like gtk_cell_renderer_render(), just cooler.
* API: Change cellrenderer->render vfunc to take a cairo_tBenjamin Otte2010-09-261-8/+10
| | | | Also constify the rectangle arguments. They were const anyway.
* Tons of transfer annotationsMatthias Clasen2010-09-211-4/+4
|
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-20/+20
|
* Added/Implemented GtkCellSizeRequestIfaceTristan Van Berkom2010-08-181-24/+210
| | | | | | | | 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 apis).
* gtkcellrenderer: Move public members to private structureJavier Jardón2010-07-131-87/+155
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Remove deprecated GtkCellRenderer functionJavier Jardón2010-05-031-22/+0
|
* [annotations] Add allow-noneJohan Dahlin2010-02-191-11/+11
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Trivial typo fix.Paul Pogonyshev2009-11-081-1/+1
|