summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckbutton.c
Commit message (Collapse)AuthorAgeFilesLines
* stylecontext: Split render functions out into gtkrender.[ch]Benjamin Otte2014-10-031-0/+1
|
* checkbutton: Fix redraw issuesBenjamin Otte2014-08-171-0/+20
| | | | | | | | | | | This is a hack to get around the optimizations done by the CSS engine. The CSS engine will notice that no CSS properties changed on the widget itself when going from one state to another and not queue a redraw. And the reason for no properties changing will be that only the checkmark itself changes, but that is hidden behind a gtk_style_context_save()/_restore() pair, so it won't be caught.
* checkbutton: Don't redundantly update statesBenjamin Otte2014-08-171-12/+0
| | | | | States are set properly by GtkButton, there is no need to set them manually.
* checkbutton: Draw background unconditionallyBenjamin Otte2014-08-171-5/+4
| | | | | We want to draw backgrounds always, not just on prelight. Themes can decide to only set a background during prelight themselves.
* button: Handle :inconsistent in GtkToggleButtonBenjamin Otte2014-08-161-7/+1
|
* button: Handle :checked in gtktogglebutton.cBenjamin Otte2014-08-161-4/+0
| | | | Don't try to handle it elsewhere.
* 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-5/+4
| | | | | | | | | | | | | | | | | | | | | 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
* GtkButton: Deprecated setters and getters as wellMatthias Clasen2014-05-131-0/+2
| | | | | gtk_button_set/get_alignment should be deprecated together with the properties they are setters/getters for.
* checkbutton: don't use focus-line-widthCosimo Cecchi2014-05-091-26/+9
|
* checkbutton: support CSS paddings and bordersCosimo Cecchi2014-05-091-4/+24
| | | | We need this since we just removed focus-padding.
* checkbutton: don't use focus paddingCosimo Cecchi2014-05-091-15/+10
|
* checkbutton: always use interior focusCosimo Cecchi2014-05-091-6/+2
|
* checkbutton: Implement height-for-widthBenjamin Otte2013-05-071-12/+53
|
* checkbutton: Split out a common functionBenjamin Otte2013-05-071-87/+69
| | | | Makes size request / allocation code easier to understand.
* GtkCheckButton and GtkRadioButton: Implement baseline alignmentAlexander Larsson2013-04-231-7/+69
|
* Don't left align label in check buttons when they have no indicatorWilliam Jon McCann2012-08-211-1/+14
| | | | | | Because they should be normal buttons in that case. https://bugzilla.gnome.org/show_bug.cgi?id=681617
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* checkbutton: Use the widget state flags as a base for drawing the indicatorRui Matos2011-12-191-3/+7
| | | | | Instead of building a set of state flags specifically for drawing the indicator, base it on the underlying widget state flags.
* checkbutton: Stop setting state flags on the style context for drawingRui Matos2011-12-191-4/+0
|
* Documentation fixesMatthias Clasen2011-09-251-2/+3
| | | | | Mostly making sure that return values and varargs don't loose their docs.
* checkbutton: Remove redundant callBenjamin Otte2011-09-051-1/+0
| | | | The call is done by GtkButton already, no need to override it.
* Make focus rectangles optionalMatthias Clasen2011-08-101-12/+13
| | | | | | | | | | | | | | | | | | This commit introduces a new setting, gtk-visible-focus, backed by the Gtk/VisibleFocus X setting. Its three values control how focus rectangles are displayed. 'always' is equivalent to the traditional GTK+ behaviour of always rendering focus rectangles. 'never' does what it says, and is intended for keyboardless situations, e.g. tablets. 'automatic' hides focus rectangles initially, until the user interacts with the keyboard, at which point focus rectangles become visible. https://bugzilla.gnome.org/show_bug.cgi?id=649567
* checkbutton: Use gtk_widget_class_set_accessible_role()Benjamin Otte2011-07-181-0/+2
|
* Move documentation to inline comments: GtkCheckButtonJavier Jardón2011-04-131-1/+31
|
* 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 GtkCheckButton's label left aligned by default.Tristan Van Berkom2010-12-291-0/+1
| | | | | Since we no longer limit the label's allocation to the minimum, now we take a saner approach to left aligning the label.
* Fixed unused variable in GtkCheckButton.Tristan Van Berkom2010-12-291-1/+0
|
* Make GtkCheckButton allocate all remaining space to it's child insteadTristan Van Berkom2010-12-291-8/+3
| | | | | | | | | | of limiting it to it's minimum size. This fixes height-for-width labels inside a GtkCheckButton, for some reason GtkCheckButton was limiting the child allocation to the child's minimum request, probably for the sake of virtual left-alignment of the child label to be beside the checkmark. This should be done by other means if nescesarry.
* GtkCheckButton: Look active when the pointer button is pressed and hoveringCarlos Garnacho2010-12-041-1/+2
|
* Make "button" class depend on mode for GtkToggleButtonsCarlos Garnacho2010-12-041-9/+0
|
* GtkCheckButton: Use GtkStyleContext for rendering.Carlos Garnacho2010-12-041-46/+48
|
* Fix prelighting of inconsistent radio and check buttonsMatthias Clasen2010-12-041-1/+1
|
* Create a private header to access some GtkButton variablesJavier Jardón2010-11-191-2/+3
|
* Remove size_request from GtkCheckButtonMatthias Clasen2010-10-261-26/+77
|
* Use accessor functions to access GtkButtonJavier Jardón2010-10-261-1/+1
|
* gtkcheckbutton: Use accessor functions to access GtkToggleButtonJavier Jardón2010-10-261-8/+7
|
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* API: Rename gtk_cairo_paint_*() to gtk_paint_*()Benjamin Otte2010-09-261-4/+4
| | | | | | Large patch, but just renaming. Indentation should still mostly be correct because I took care of keeping the indentation for this function name.
* API: checkbutton: Port to draw vfuncBenjamin Otte2010-09-261-68/+47
| | | | Requires changing the API of the draw_indicator vfunc.
* checkbutton: Remove redundant is_drawable() checkBenjamin Otte2010-09-261-64/+59
|
* checkbutton: Remove excessive is_drawable() checkBenjamin Otte2010-09-261-51/+47
|
* Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()Javier Jardón2010-09-151-2/+3
| | | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598 Signed-off-by: Javier Jardón <jjardon@gnome.org> Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
* Use gtk_size_request_get_size() instead deprecated ↵Javier Jardón2010-09-131-2/+7
| | | | | | gtk_widget_get_child_requisition() Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
* gtk/gtkcheckbutton.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-30/+55
|
* Use GtkBin accessorsJavier Jardón2010-07-131-10/+14
|
* Use accessor functions to acces GtkContainerJavier Jardón2010-07-131-9/+14
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Don't use GTK_WIDGET_STATE in internal code anymoreJavier Jardón2010-03-091-3/+3
| | | | | | Use gtk_widget_get/set_state() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)Javier Jardón2010-03-061-1/+1
| | | | | | Use new API instead: gtk_widget_set_has_window () https://bugzilla.gnome.org/show_bug.cgi?id=69872