summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckmenuitem.c
Commit message (Collapse)AuthorAgeFilesLines
* check menu item: Drop the priv pointerMatthias Clasen2019-05-271-29/+31
|
* widget: Don't pass a position to ->size_allocateTimm Bäder2018-11-131-6/+8
| | | | | The values have been 0/0 for a long time now, so just drop the GtkAllocation argument and replace it with width and height.
* CheckMenuItem: Fix insert_after|before() here tooDaniel Boles2018-04-221-2/+2
| | | | | | | | | See the previous commit. There may be other cases of these being swapped by Gadget conversions, but hopefully someone else will find and fix those before I have to… Close https://gitlab.gnome.org/GNOME/gtk/issues/200
* widget: Remove clip from size-allocate vfuncBenjamin Otte2018-04-051-8/+3
| | | | As the clip is no longer needed, get rid of it.
* The big versioning cleanupMatthias Clasen2018-02-061-4/+0
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* gtk: Intern css namesMatthias Clasen2017-11-171-1/+1
| | | | This avoids a bunch of strdups at startup.
* GtkCheckMenuItem: Remove snapshot-indicator vfuncTimm Bäder2017-07-191-33/+0
| | | | | Let the widget snapshot all child widgets and control the visibility of those child widgets instead.
* checkmenuitem: Don't always snapshot the indicatorTimm Bäder2017-07-191-2/+6
| | | | | Chaining up will snapshot all child widgets, which doesn't work with GtkModelMenuItem.
* widget: Add baseline and out_clip parameters to size-allocateTimm Bäder2017-07-191-13/+14
| | | | | | | | | | | Since setting a clip is mandatory for almost all widgets, we can as well change the size-allocate signature to include a out_clip parameter, just like GtkCssGadget did. And since we now always propagate baselines, we might as well pass that one on to size-allocate. This way we can also make sure to transform the clip returned from size-allocate to parent-coordinates, i.e. the same coordinate space priv->allocation is in.
* checkmenuitem: Fix indicator stateTimm Bäder2017-07-191-0/+1
| | | | | We need to remove the inconsistent and checked state first so we actually remove it.
* checkmenuitem: Fix indicator allocationTimm Bäder2017-07-191-8/+4
| | | | base point is the menu item's content allocation now.
* Remove GtkBuiltinIconTimm Bäder2017-07-191-1/+0
| | | | Now unused.
* checkmenuitem: Replace indicator gadget with GtkIconTimm Bäder2017-07-191-53/+49
|
* checkmenuitem: Stop using the parent's gadgetTimm Bäder2017-07-191-7/+7
|
* menu: Implement snapshot() for the menu codeBenjamin Otte2016-12-201-18/+16
|
* Use Unicode in translatable stringsPiotr Drąg2016-12-191-1/+1
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772371
* Remove GtkToggleActionTimm Bäder2016-10-181-1/+0
|
* menuitem: Stop implementing GtkActivatableTimm Bäder2016-10-181-94/+1
|
* gtk: Include the appropriate headersEmmanuele Bassi2016-10-171-1/+1
|
* Remove various unused style propertiesTimm Bäder2016-10-161-17/+0
|
* Use NULL for generic marshallers in g_signal_new()Benjamin Otte2016-08-291-1/+1
| | | | | glib will use the correct marshaller automatically. And as a side effect, we also get all glib optimizations, like a va marshaller.
* Use convenience API that was introduced recentlyMatthias Clasen2016-01-131-2/+1
| | | | | Use gtk_css_gadget_set_state in all the places where we previously were getting a node from a gadget, just to call gtk_css_node_set_state.
* checkmenuitem: port indicator gadget to GtkBuiltinIconCosimo Cecchi2015-12-191-72/+22
| | | | Saves a lot of code.
* checkmenuitem: deprecate indicator-size style propertyCosimo Cecchi2015-12-191-23/+11
| | | | We can now use min-width/min-height.
* menuitem: deprecate toggle-spacing style propertyCosimo Cecchi2015-12-191-0/+6
| | | | We can move this to just use the actual GtkCssGadget of the menu item.
* checkmenuitem: use a gadget for the check indicatorCosimo Cecchi2015-12-191-67/+133
| | | | | This will make margins and other CSS properties work correctly on the indicator.
* checkmenuitem: prefer early returnCosimo Cecchi2015-12-191-47/+46
|
* menuitem: really ignore horizontal-paddingCosimo Cecchi2015-12-191-4/+2
| | | | | This style property has been documented as been ignored for a long time, but we were still reading it in some cases.
* Revise CSS node documentationMatthias Clasen2015-12-161-2/+2
| | | | | Clarify the use of brackets in the CSS node diagrams: [] means optional nodes or classes, <> means child widgets.
* cssnode: Change style-changed signalBenjamin Otte2015-12-121-16/+4
| | | | | | | | Instead of having old and new style, now have a GtkCssStyleChange opaque object that will compute the changes you are interested in for you. This simplifies change signal handlers quite a bit and avoids lots of repeated computation in every signal handler.
* check menu item: Fix a typoMatthias Clasen2015-11-131-1/+1
| | | | | It is check, not checl. Pointed out by Giovanni Campagna in https://bugzilla.gnome.org/show_bug.cgi?id=757968
* checkmenuitem: Update CSS nodes on set_active()Benjamin Otte2015-11-051-0/+1
| | | | | The function only doesn't notify(). It is supposed to handle CSS changes.
* menu: Add diagrams to CSS documentationMatthias Clasen2015-11-031-0/+6
|
* menu item: Use CSS nodesMatthias Clasen2015-11-021-22/+128
| | | | | | | | Use the element name menuitem for GtkMenuItem, GtkCheckMenuItem and GtkRadioMenuItem. GtkSeparatorMenuItem gets the name separator. Add a subnode with name arrow if a submenu is attached. Give the radio and check menu items a subnode with name check or radio.
* css: Do inconsistent checked states rightBenjamin Otte2014-08-161-1/+1
| | | | | | | 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-1/+1
| | | | | | | | | | | | | | | | | | | | | 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
* GtkCheckMenuItem: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-4/+3
|
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-3/+3
| | | | Instead of Return value:
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-1/+1
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: use proper quotesWilliam Jon McCann2014-02-051-3/+3
|
* Move wholly deprecated classes to gtk/deprecated/Matthias Clasen2013-07-191-2/+2
| | | | | | | | | | | | | | | | | | We've recently a number of classes wholly. For these cases, move the headers and sources to gtk/deprecated/ and adjust Makefiles and includes accordingly. Affected classes: GtkAction GtkActionGroup GtkActivatable GtkIconFactory GtkImageMenuItem GtkRadioAction GtkRecentAction GtkStock GtkToggleAction GtkUIManager
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-10/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Deprecate GtkAction and GtkUIManagerWilliam Jon McCann2013-06-301-6/+30
| | | | It is recommended to use GAction et al and GtkBuilder.
* GtkCheckMenuItem: remove an unused boolean fieldRyan Lortie2013-05-091-28/+21
| | | | | | | | always_show_toggle was always set to TRUE in _init() and never changed from anywhere else. Remove it and remove the if() statements based on it. https://bugzilla.gnome.org/show_bug.cgi?id=699929
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* checkmenuitem: Clean up state flags handling on drawingRui Matos2011-12-191-4/+1
|
* Documentation fixesMatthias Clasen2011-09-251-3/+4
| | | | | Mostly making sure that return values and varargs don't loose their docs.
* a11y: Rename checksubmenuitem to checkmenuitemBenjamin Otte2011-07-181-2/+2
|
* a11y: Remove gtkcheckmneuitemaccessible.[ch]Benjamin Otte2011-07-181-1/+0
| | | | | COde uses gtkchecksubmenuitemaccessible exclusively now. And I totally dig these long finger-twisting names.