summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderertoggle.c
Commit message (Collapse)AuthorAgeFilesLines
* cellrenderertoggle: Change "indicator-size" handlingBenjamin Otte2016-02-161-6/+30
| | | | | | | | | | | | | | | The following changes were done to (hopefully) achieve backwards compatibility while allowing themes to change the size of the indicator. (1) Deprecate the property. (2) Change the default value of the property to 0. If it is not 0, use the property's value for the indicator size. This should make all programs that actually set it keep the size they set it to. (3) If set to other values than 0, use min-width/min-height of the check/radio node to size the indicator. This allows themes to change the size. (4) Fall back to the previous default size of 16px. This way themes that do not set the size keep the same behavior.
* cellrendertoggle: Draw background + frame for markBenjamin Otte2016-02-151-8/+32
| | | | Also compute padding and borders properly for the marks.
* cellrenderertoggle: Split out a functionBenjamin Otte2016-02-151-6/+21
|
* cellrenderertoggle: Use "check" and "radio" namesBenjamin Otte2016-02-151-5/+7
| | | | ... instead of just adding a style class.
* css: Do inconsistent checked states rightBenjamin Otte2014-08-161-1/+2
| | | | | | | In HTML5, both pseudoclasses apply. So we do the same thing in our widgets. https://bugzilla.gnome.org/show_bug.cgi?id=733967
* gtk: Use new :checked stateBenjamin Otte2014-08-161-2/+2
| | | | | | | | | | | | | | | | | | | | | on: - GtkToggleButton - GtkCheckButton - GtkRadioButton - GtkModelButton - GtkCellRendererToggle - GtkCheckMenuItem also update themes: - Adwaita - Raleigh but not the win32 theme. The new :checked state replaces :active for the actual checkedness of the widgets and :active is now used exclusively while the button is being pressed. https://bugzilla.gnome.org/show_bug.cgi?id=733967
* cellrenderertoggle: Remove copy/paste leftoversBenjamin Otte2014-06-101-14/+0
| | | | Introduced in 2d88a3ae300d6e1c8faa7391bbab9746f2131092
* GtkCellRendererToggle: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-9/+43
|
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-4/+4
| | | | Instead of Return value:
* docs: use apostrophe in *'reWilliam Jon McCann2014-02-071-2/+2
|
* docs: use proper quotesWilliam Jon McCann2014-02-051-1/+1
|
* GtkCellRendererToggle: correct "toggled" signal documentationDan Williams2013-10-101-1/+2
| | | | | | | Previous commit wrongly identified "active" as containing the new value. Instead, applications must determine the new value to update the model with manually based on the value currently in the model.
* GtkCellRendererToggle: update documentation of 'toggled' signalDan Williams2013-10-101-0/+3
| | | | | | Clarify that applications are expected to handle updating the model from the 'active' property, like GtkCellRendererText does for the 'edited' property.
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* 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.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* cellrenderertoggle: Use the cell renderer's state flags as a base for renderingRui Matos2011-12-191-3/+5
| | | | | This allows us to pick the underlying widget's state flags that we don't explicitly set here.
* gtk: Add accessible types for cell renderersBenjamin Otte2011-12-161-0/+3
|
* Move documentation to inline comments: GtkCellRendererToggleJavier Jardón2011-04-111-0/+12
|
* Use 16 as default size for checkbutton indicatorCosimo Cecchi2011-03-031-1/+1
| | | | | So that 16x16 icons can be used from themes such as Adwaita in their natural size.
* Make GtkCellRendererToggle use GtkStyleContextCarlos Garnacho2011-01-271-38/+24
|
* Clip to cell_area when rendering cell contentKristian Rietveld2010-12-161-0/+7
| | | | | | | | | | | | | | | | | | | 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).
* Make GdkRectangle arguments in GtkCellRenderer use const consistentlyMatthias Clasen2010-10-041-13/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=630900
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-261-2/+2
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* API: Change cellrenderer->render vfunc to take a cairo_tBenjamin Otte2010-09-261-23/+21
| | | | Also constify the rectangle arguments. They were const anyway.
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-11/+11
|
* gtk/gtkcellrenderertoggle.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-2/+2
|
* gtkcellrenderertoggle: Move public members to private structureJavier Jardón2010-07-131-39/+48
|
* Use accessor functions to access GtkCellRendererJavier Jardón2010-07-131-14/+22
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Don't use GTK_WIDGET_STATE in internal code anymoreJavier Jardón2010-03-091-1/+1
| | | | | | Use gtk_widget_get/set_state() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Deprecate widget flag: GTK_WIDGET_HAS_FOCUSJavier Jardón2010-03-011-1/+1
| | | | | | Use gtk_widget_has_focus() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Make toggle cell renderer follow insensitive state of widgetKristian Rietveld2009-09-041-1/+1
| | | | | | | | | Likewise to other cell renderers, GtkCellRendererToggle now properly follows the insensitive state of the widget requesting rendering. It does this by checking the state of the widget pointer, not by using GtkCellRendererFlags (there exists an insensitive flags). Later on, I think we should move to using GtkCellRendererFlags and not the state of the widget requesting rendering. Patch merged from maemo-gtk.
* Add API for the sealed member "activatable"Michael Natterer2009-07-141-0/+41
|
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* gtk/gtkcellrenderer.c gtk/gtkcellrendererpixbuf.cMichael Natterer2008-05-191-1/+1
| | | | | | | | | | | | | | | | 2008-05-19 Michael Natterer <mitch@imendio.com> * gtk/gtkcellrenderer.c * gtk/gtkcellrendererpixbuf.c * gtk/gtkcellrenderertoggle.c * gtk/gtkimagemenuitem.c * gtk/gtkmenutoolbutton.c * gtk/gtkoptionmenu.c * gtk/gtkstatusbar.c * gtk/gtktextview.c: s/PROP_ZERO/PROP_0/g, remove LAST_PROP. svn path=/trunk/; revision=20112
* Fix check/radio indicator drawing mess (bug #452225):Michael Natterer2007-07-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-27 Michael Natterer <mitch@imendio.com> Fix check/radio indicator drawing mess (bug #452225): * gtk/gtkstyle.c (gtk_default_draw_check): really decrease the indicator size by one to ensure odd size (don't say -= -1). * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): removed -1 adjustment from calls to gtk_paint_option(). Theme engines now get the actually configured size passed, not one pixel less. * gtk/gtkcellrenderertoggle.c * gtk/gtkcheckmenuitem.c: changed default indicator size from 12 to 13 so all widgets which draw check/option indicators have the same default size now (and render the same size after above changes). * README.in: mention above changes in the release notes. svn path=/trunk/; revision=18547
* refactor to initialize indicator_size to TOGGLE_WIDTH instead of theKristian Rietveld2007-01-101-1/+1
| | | | | | | | | | | 2007-01-10 Kristian Rietveld <kris@imendio.com> * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init): refactor to initialize indicator_size to TOGGLE_WIDTH instead of the hardcoded value of 12. svn path=/trunk/; revision=17128
* Make sure [xy]_offset are always being initialized, fix pixbuf rendererKristian Rietveld2006-12-031-0/+5
| | | | | | | | | | | | | | | | | 2006-12-03 Kristian Rietveld <kris@gtk.org> Make sure [xy]_offset are always being initialized, fix pixbuf renderer padding. (#108235, Sven Neuman). * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render): add padding in _render instead of _get_size. * gtk/gtkcellrendererprogress.c (gtk_cell_renderer_progress_get_size): always initialize [xy]_offset. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size): ditto.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-29/+1
|
* initialize the inconsistent field in the private structure,Kristian Rietveld2006-01-131-3/+33
| | | | | | | | | | | 2006-01-13 Kristian Rietveld <kris@imendio.com> * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init): initialize the inconsistent field in the private structure, (gtk_cell_renderer_toggle_class_init), (gtk_cell_renderer_toggle_{set,get}_property), (gtk_cell_renderer_toggle_get_size): introduce a indicator-size property.
* removed redundant calls to g_object_notify().Michael Natterer2005-11-141-7/+3
| | | | | | | 2005-11-14 Michael Natterer <mitch@imendio.com> * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property): removed redundant calls to g_object_notify().
* Intern some more strings.Matthias Clasen2005-09-011-2/+2
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* Typo fixesMatthias Clasen2005-06-181-1/+1
|
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-8/+5
| | | | | | | | | | | | 2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-201-1/+4
| | | | | | | | | | | | | | | | | | 2005-03-20 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdkalias.h: * gtk/grk.symbols: Group symbols by header and source file. * gtk/makegtkalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegtkalias.pl -def * gdk/Makefile.am (gtkaliasdef.c): Add a rule to generate this file. * gtk/*.c: Include gtkalias.h after the other headers, include gtkaliasdef.c at the bottom. * gtk/*.h: Small cleanups.
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mon Aug 9 12:48:04 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gtk/Makefile.am: Add rules to generate gtk.def and from gtk.symbols, and make make check check the abi with abicheck.sh. (gtk_private_h_sources): Add gtkinternals.h (gtk_built_private_headers): Add gtkalias.h (gtk_extra_sources): Add gtk.symbols (EXTRA_DIST): Add makegtkalias.pl and abicheck.sh * gtk/gtk.symbols: New file. Definition of the GTK+ ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gtk/abicheck.sh: New file. Script to check the actually symbols exported from libgtk-x11.2.0.so against the symbols found in gtk.symbols. * gtk/makegtkalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * gtk/gtkinternals.h: New file. An uninstalled header listing symbols which must be exported for some reason and do not appear in any other header. * gtk/*.c: Include gtkalias.h
* Support insensitive cells in tree views and combo boxes.Matthias Clasen2004-05-271-1/+5
|