summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderer.h
Commit message (Collapse)AuthorAgeFilesLines
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-2/+2
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-4/+4
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: add Gtk*Class docsWilliam Jon McCann2014-01-201-0/+21
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=81006
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+25
| | | | Add annotations to all exported functions in GTK+ headers.
* API: Export gtk_cell_renderer_class_set_accessible_type()Benjamin Otte2013-02-251-1/+1
| | | | | This function is necessary to implement cell renderer accessibility support.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-3/+3
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Trivial typo fixMatthias Clasen2012-10-011-1/+1
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use versioned deprecationsMatthias Clasen2012-02-271-1/+1
| | | | | | | This patch changes all uses of GDK_DEPRECATED(_FOR) in gtk headers by the versioned variants, GDK_DEPRECATED_IN_3_x(_FOR). At the same time, we add GDK_AVAILABLE_IN_3_x annotations for all API additions in 3.2 and 3.4.
* cellrenderer: Add API to keep the accessible typeBenjamin Otte2011-12-161-0/+6
| | | | | 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-1/+3
|
* cellrenderer: Add EXPANDED and EXPANDABLE statesBenjamin Otte2011-12-161-1/+5
| | | | | These make more sense as flags than they do as properties of the cell renderer.
* Drop use of GDK_DISABLE_DEPRECATED guards in gtkMatthias Clasen2011-11-091-2/+0
| | | | | We now use function attributes for deprecation so the build-breaking guards are no longer needed.
* Add deprecation annotations for deprecated functionsMatthias Clasen2011-10-111-6/+7
| | | | | | We define our own GDK_DEPRECATED[_FOR] macros for this and allow it to be turned off by defining the GDK_DISABLE_DEPRECATION_WARNINGS macro.
* Add gtk_cell_renderer_get_state()Carlos Garnacho2011-01-271-0/+4
| | | | | | This is a helper function to help retrieve a GtkStateFlags from a GtkCellRendererState, also given the cell renderer and widget sensitivities.
* Changed cell area/renderer "can_focus" semantics to "is_activatable" across ↵Tristan Van Berkom2010-11-291-1/+1
| | | | | | | | 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-0/+11
| | | | | | | | | | | | | 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-6/+6
| | | | | | 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/+23
|
* Committing half-way done focus work.Tristan Van Berkom2010-11-051-0/+2
|
* Fix gtk-doc markup: /* <private> */ should be /*< private >*/Javier Jardón2010-10-301-1/+1
|
* Add padding to class structsMatthias Clasen2010-10-191-0/+2
|
* Make GdkRectangle arguments in GtkCellRenderer use const consistentlyMatthias Clasen2010-10-041-5/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=630900
* Move classes that currently derive from GtkObject to GInitiallyUnownedJavier Jardón2010-09-261-2/+2
|
* cellrenderer: Merge GtkCellSizeRequest into GtkCellRendererBenjamin Otte2010-09-261-29/+71
| | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|
* API: Remove gtk_cell_renderer_render()Benjamin Otte2010-09-261-7/+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-0/+6
| | | | It's like gtk_cell_renderer_render(), just cooler.
* API: Change cellrenderer->render vfunc to take a cairo_tBenjamin Otte2010-09-261-4/+3
| | | | Also constify the rectangle arguments. They were const anyway.
* Add deprecation guards for gtk_cell_renderer_get_size()Javier Jardón2010-09-191-0/+2
|
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-4/+4
|
* Added/Implemented GtkCellSizeRequestIfaceTristan Van Berkom2010-08-181-0/+8
| | | | | | | | 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-17/+4
|
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Remove deprecated GtkCellRenderer functionJavier Jardón2010-05-031-5/+2
|
* Add API for sealed member "visible"Michael Natterer2009-07-151-0/+4
|
* Add API for sealed members xpad, ypad, xalign, yalign and sensitiveMichael Natterer2009-07-141-0/+19
|
* gtk/gtkassistant.h gtk/gtkcellrenderer.h gtk/gtkfilechooserentry.hMichael Natterer2008-06-241-2/+0
| | | | | | | | | | | | | | | | | | 2008-06-24 Michael Natterer <mitch@imendio.com> * gtk/gtkassistant.h * gtk/gtkcellrenderer.h * gtk/gtkfilechooserentry.h * gtk/gtkprivate.h * gtk/gtktooltip.h * gtk/gtktreeview.h * gtk/gtkwindow.h: no need to include gtkwidget.h or gtkobject.h if there is any other widget included, they all have to include their respective parent classes (the is-a relation works for includes too). svn path=/trunk/; revision=20679
* Switch to "guint GSEAL (foo) : width;" when packing fields in guints.Tim Janik2008-06-201-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gtk/gtkbox.h: * gtk/gtkbutton.h: * gtk/gtkcellrenderer.h: * gtk/gtkcellrenderertext.h: * gtk/gtkcheckmenuitem.h: * gtk/gtkcontainer.h: * gtk/gtkentry.h: * gtk/gtkhandlebox.h: * gtk/gtkimcontextsimple.h: * gtk/gtklabel.h: * gtk/gtkliststore.h: * gtk/gtkmenu.h: * gtk/gtkmenuitem.h: * gtk/gtkmenushell.h: * gtk/gtknotebook.h: * gtk/gtkpaned.h: * gtk/gtkplug.h: * gtk/gtkprintjob.h: * gtk/gtkprogressbar.h: * gtk/gtkrange.h: * gtk/gtkscale.h: * gtk/gtkscrolledwindow.h: * gtk/gtksizegroup.h: * gtk/gtksocket.h: * gtk/gtkspinbutton.h: * gtk/gtkstatusbar.h: * gtk/gtktable.h: * gtk/gtktearoffmenuitem.h: * gtk/gtktextbuffer.h: * gtk/gtktextview.h: * gtk/gtktogglebutton.h: * gtk/gtktoolbar.h: * gtk/gtktreestore.h: * gtk/gtktreeviewcolumn.h: * gtk/gtkwindow.h: Do not specify width inside GSEAL() when packing fields in guints. svn path=/trunk/; revision=20621
* Seal GtkCellRenderer.Tim Janik2008-06-201-16/+16
| | | | | | | * gtk/gtkcellrenderer.h: seal all member fields. All member fields are already accessible via GObject properties. svn path=/trunk/; revision=20525
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtk.h: define __GTK_H_INSIDE__ around including all other headers. * gtk/gtktypebuiltins.h.template * gtk/gtkversion.h.in * gtk/gtk*.h: add single-include guards that #error out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is included individually. * gtk/gtkprintbackend.h * gtk/gtkprinter-private.h * gtk/gtktextlayout.h * gtk/gtktexttagprivate.h * gtk/gtktexttypes.h * gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual headers in these private or semi-private headers. * gtk/gtkimmodule.h: also here because it's not in gtk.h. * gtk/gtkpagesetupunixdialog.h * gtk/gtkprinter.h * gtk/gtkprintjob.h * gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers. * gtk/gtkclist.h * gtk/gtkcombo.h * gtk/gtkctree.h * gtk/gtkfilesel.h * gtk/gtkitemfactory.h * gtk/gtklist.h * gtk/gtklistitem.h * gtk/gtkoldeditable.h * gtk/gtkoptionmenu.h * gtk/gtkpixmap.h * gtk/gtkpreview.h * gtk/gtksignal.h * gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h> instead of individual headers in these deprecated headers. They don't get included at all when GTK_DISABLE_DEPRECATED is defined, so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED and include them individually, which should continue to work. * gtk/gtkclist.c: include "gtkctree.h" because of the change above. svn path=/trunk/; revision=20221
* gtk/gtkbutton.h gtk/gtkcellrenderer.h gtk/gtkimcontext.h gtk/gtkstyle.hMichael Natterer2008-01-251-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-25 Michael Natterer <mitch@imendio.com> * gtk/gtkbutton.h * gtk/gtkcellrenderer.h * gtk/gtkimcontext.h * gtk/gtkstyle.h * gtk/gtktoolbar.h * gtk/gtktooltip.h * gtk/gtktreeprivate.h * gtk/gtktreeviewcolumn.h * gtk/gtkwidget.h: add const to constant structs which are passed into GTK+. Also add some forgotten const for const strings. * gtk/gtkbutton.c * gtk/gtkcellrenderer.c * gtk/gtkimcontext.c * gtk/gtkstyle.c * gtk/gtktoolbar.c * gtk/gtktooltip.c * gtk/gtktreeview.c * gtk/gtktreeviewcolumn.c * gtk/gtkwidget.c: changed accordingly. svn path=/trunk/; revision=19399
* Undo bogus commit.Benjamin Berg2006-12-141-2/+1
|
* - Remove unused code/options from the code. Warn about their usage whileBenjamin Berg2006-12-131-1/+2
| | | | | | | | | | | | | | | | | | | | | 2006-12-13 Benjamin Berg <benjamin@sipsolutions.net> * engines/clearlooks/src/clearlooks_rc_style.c: (clearlooks_rc_style_init), (clearlooks_gtk2_rc_parse_dummy), (clearlooks_rc_style_parse), (clearlooks_rc_style_merge): * engines/clearlooks/src/clearlooks_rc_style.h: * engines/clearlooks/src/clearlooks_style.c: (clearlooks_style_draw_box), (clearlooks_style_init_from_rc), (clearlooks_style_copy): * engines/clearlooks/src/clearlooks_style.h: * engines/clearlooks/src/clearlooks_types.h: - Remove unused code/options from the code. Warn about their usage while parsing. * themes/Clearlooks/gtk-2.0/gtkrc: - Remove options that don't have any effect.
* Fix #145463, reported by Michael Natterer.Matthias Clasen2004-12-091-0/+5
| | | | | | | | | | | | | | | | | | | 2004-12-09 Matthias Clasen <mclasen@redhat.com> Fix #145463, reported by Michael Natterer. * gtk/gtkcellrenderer.h (struct _GtkCellRenderer): Add an editing flag to keep track of when editing is done. * gtk/gtkcellrenderer.h: * gtk/gtkcellrenderer.c (gtk_cell_renderer_stop_editing): New function to replace gtk_cell_renderer_editing_canceled(). Deprecate gtk_cell_renderer_editing_canceled(). * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done): * gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_editing_done): * gtk/gtktreeview.c (gtk_tree_view_stop_editing): Use gtk_cell_renderer_stop_editing().
* Allow custom initialization of cell editables. (#147221)Matthias Clasen2004-07-201-1/+3
| | | | | | | | | | | | 2004-07-20 Matthias Clasen <mclasen@redhat.com> Allow custom initialization of cell editables. (#147221) * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Add a ::editing-started signal as a hook for setting up the GtkCellEditable. (gtk_cell_renderer_start_editing): ...and emit it here.
* Support insensitive cells in tree views and combo boxes.Matthias Clasen2004-05-271-0/+1
|
* Fix #130969.Federico Mena Quintero2004-01-161-2/+6
| | | | | | | | | | | | | | | | 2004-01-16 Federico Mena Quintero <federico@ximian.com> Fix #130969. * gtk/gtkcellrenderer.h (struct _GtkCellRendererClass): Added an editing_canceled signal. * gtk/gtkcellrenderer.c (gtk_cell_renderer_class_init): Create the "editing-canceled" signal. (gtk_cell_renderer_editing_canceled): New function. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done): Call gtk_cell_renderer_editing_canceled().
* The render vfunc takes a GdkDrawable* instead of a GdkWindow*, becauseMurray Cumming2003-09-301-1/+1
| | | | | | | | | | | | 2003-09-30 Murray Cumming <murrayc@usa.net> * gtk/gtkcellrenderer.h: The render vfunc takes a GdkDrawable* instead of a GdkWindow*, because that what it is given. The documentation was already correct. This should cause no API/ABI breakage with C compilers. * gtk/gtkcellrenderertext.c, gtkcellrendererpixbuf.c, gtkcellrenderertogger.c: Updated the declarations of the render vfunc implementation accordingly.
* add a gtk_list_store_sort_iter_changed line for some special case ...Kristian Rietveld2002-11-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Nov 26 22:26:04 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtk{tree,list}store.c (gtk_{tree,list}_store_real_set_value): add a gtk_list_store_sort_iter_changed line for some special case ... (#96647 (issue 1), testcases from Soeren Sandmann and Daniel Elstner). Tue Nov 26 22:18:06 2002 Kristian Rietveld <kris@gtk.org> Inconsistent state for toggle renderers, requested by Paolo Bacchilega in #88130. * gtk/gtktreeprivate.h: move GtkCellRendererInfo here. * gtk/gtkcellrenderer.c: moved GtkCellRendererInfo away, fix some indentation issues. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init), (gtk_cell_renderer_toggle_set_property), (gtk_cell_renderer_toggle_get_property), (gtk_cell_renderer_toggle_render): add an inconsistent property. * gtk/gtkstyle.c (gtk_default_draw_check), (gtk_default_draw_option): support drawing inconsistent options/checks for cells. Tue Nov 26 22:14:14 2002 Kristian Rietveld <kris@gtk.org> * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done), (gtk_cell_renderer_text_start_editing): add a focus_out_id to avoid calling _editing_done twice (which has nasty side-effects). (#96647, (issue 2) testcase from Soeren Sandmann). Tue Nov 26 22:12:21 2002 Kristian Rietveld <kris@gtk.org> #82739, patch from Padraig O'Briain. * gtk/gtktreeviewcolumn.[ch]: add gtk_tree_view_column_cell_get_position() Tue Nov 26 22:06:29 2002 Kristian Rietveld <kris@gtk.org> Yes, this chunk breaks ABI compatibility. Owen knows about it and agreed with it. It doesn't break ABI that bad though, things will still work. Please keep it silent :P. This patch fixes some keynav issues reported by Narayana Pattipati in #81633. (Also mentioned in #92037 (Sun tracking bug)). * gtk/gtkmarshalers.list: add two silly marshalers * gtk/gtktreeview.[ch] (gtk_tree_view_real_select_all), (gtk_tree_view_real_unselect_all), (gtk_tree_view_real_select_cursor_row), (gtk_tree_view_real_toggle_cursor_row), (gtk_tree_view_real_expand_collapse_cursor_row), (gtk_tree_view_real_start_interactive_search): change the return type from void to gboolean, update prototypes, functions, signals and entries in GtkTreeViewClass, (gtk_tree_view_class_init): add select_cursor_row binding for enter key, (gtk_tree_view_key_press): only navigate the header button if the header is also visible ... Tue Nov 26 22:05:48 2002 Kristian Rietveld <kris@gtk.org> API bit of #75745, reported by Richard Hult. * gtk/gtkcellrenderer.h (GtkCellRendererState): add GTK_CELL_RENDERER_FOCUSED, rest of this bug fix will follow later.