summaryrefslogtreecommitdiff
path: root/gtk/gtkcenterbox.c
Commit message (Collapse)AuthorAgeFilesLines
* centerbox: Expose GtkCenterLayout:shrink-center-lastAlexander Mikhaylenko2023-04-051-9/+95
|
* Make widget property setters behaveMatthias Clasen2023-03-301-0/+18
| | | | | | We want to allow setting a property to its current value, while still having a precondition for widget->parent being NULL otherwise.
* Escape GtkBuilder XML tag in comment with backticksunce2023-01-151-1/+1
| | | | | | | | Escape XML tags in gi-docgen oriented comment e.g. from <child> to `<child>`, so that they don't become HTML tag on the final webpage. This fix includes everything from commit ff46ea64 and #5312. Fixes #5312
* centerbox: Add properties for child widgetsMatthias Clasen2022-11-201-7/+91
| | | | | | | This provides and alternative to add children in ui files. Related: #5350
* Documentation fix: Various spelling mistakes (and one use of the wrong verb) ↵Cam Cook2022-11-131-1/+1
| | | | | | | | | | | | | across a few domains that show up in documentation. | domain | current | suggestion | |--------|---------|------------| | [GtkButton](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkbutton.c#L691) | "Buttons can has a flat appearance" | "Buttons can have a flat appearance" | | [GtkCenterBox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkcenterbox.c#L275) | "pas %NULL" | "pass %NULL" | | [GtkEditable](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkeditable.c#L466) | "the text to append" | "the text to insert" | | [GtkFlowbox](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkflowbox.c#L4921) | "the are equal" | "they are equal" | | [GtkSelectionModel](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkselectionmodel.c#L550) | "Call this when a the selection changes" | "Call this when a selection changes" | | [GtkWIndow](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkwindow.c#L5321) | "(e.g. the user or the window manager" | "(e.g. the user or the window manager)" |
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+0
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* Remove all nicks and blurbs from param specsSophie Herold2022-05-111-3/+1
| | | | | | | | Those property features don't seem to be in use anywhere. They are redundant since the docs cover the same information and more. They also created unnecessary translation work. Closes #4904
* docs: Reduce redundancyMatthias Clasen2021-05-201-3/+3
| | | | | | | | Remove a boatload of "or %NULL" from nullable parameters and return values. gi-docgen generates suitable text from the annotation that we don't need to duplicate. This adds a few missing nullable annotations too.
* centerbox: Small docs tweakMatthias Clasen2021-03-111-1/+1
|
* centerbox: Convert docsMatthias Clasen2021-03-111-31/+41
| | | | | Convert link format, add an example image, add property annotations. General cleanup.
* docs: Add "Accessibility" section to various widgetsEmmanuele Bassi2020-11-121-0/+4
| | | | | There are a few widgets that gained an accessible role, which means adding an "Accessibility" section in their description.
* a11y: Mark more containers as structural elementsEmmanuele Bassi2020-11-111-0/+1
| | | | | Widgets that just provide grouping and layout to other widgets should not be relevant to the accessible tree.
* gtk: Remove unused header includeBenjamin Otte2020-10-201-1/+0
| | | | | gtkcssnodeprivate.h was mainly used for repositioning CSS nodes in gadgets, and gadgets are gone now.
* Remove ATKEmmanuele Bassi2020-07-261-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To build a better world sometimes means having to tear the old one down. -- Alexander Pierce, "Captain America: The Winter Soldier" ATK served us well for nearly 20 years, but the world has changed, and GTK has changed with it. Now ATK is mostly a hindrance towards improving the accessibility stack: - it maps to a very specific implementation, AT-SPI, which is Linux and Unix specific - it requires implementing the same functionality in three different layers of the stack: AT-SPI, ATK, and GTK - only GTK uses it; every other Linux and Unix toolkit and application talks to AT-SPI directly, including assistive technologies Sadly, we cannot incrementally port GTK to a new accessibility stack; since ATK insulates us entirely from the underlying implementation, we cannot replace it piecemeal. Instead, we're going to remove everything and then incrementally build on a clean slate: - add an "accessible" interface, implemented by GTK objects directly, which describe the accessible role and state changes for every UI element - add an "assistive technology context" to proxy a native accessibility API, and assign it to every widget - implement the AT context depending on the platform For more information, see: https://gitlab.gnome.org/GNOME/gtk/-/issues/2833
* Replace "gchar" with "char"Benjamin Otte2020-07-251-1/+1
|
* Move orientable style classes into GtkWidgetEmmanuele Bassi2020-06-051-2/+1
| | | | | | | | | It feels slightly wrong to have GtkOrientable operate on widgets, but at least what happens when an orientable widget changes orientation should be part of GtkWidget. This will allow to add more state changes without accessing widget state from the outside of gtkwidget.c.
* Remove lots of focus vfuncsMatthias Clasen2020-05-111-3/+0
| | | | | In many cases, the default widget vfuncs work just fine, combined with setting focusable.
* Reinstate expected focus behaviorMatthias Clasen2020-04-091-0/+3
| | | | | | | | After the :can-focus change in the previous commit, widgets need to set suitable focus and grab_focus implementations to implement the desired focus behavior. This commit does that for all widgets.
* Add GtkCenterLayoutTimm Bäder2019-09-131-458/+36
| | | | And use it in GtkCenterBox, different widgets following.
* Remove gtk_widget_get/set_has_surfaceMatthias Clasen2019-05-281-2/+0
| | | | | These serve no purpose anymore - widgets don't have surfaces, unless they're a GtkNative.
* Use g_clear_pointer to unparent widgetsTimm Bäder2018-11-131-17/+3
|
* widget: Don't pass a position to ->size_allocateTimm Bäder2018-11-131-17/+18
| | | | | The values have been 0/0 for a long time now, so just drop the GtkAllocation argument and replace it with width and height.
* center box: Don't reorder css nodes in RTLTimm Bäder2018-06-181-46/+6
| | | | | So widget order matches css order. We will do the same thing with GtkBox eventually.
* center box: Remove snapshot implementationTimm Bäder2018-06-161-17/+0
|
* widget: Allow adding event controllers in ui filesBenjamin Otte2018-04-261-1/+5
|
* widget: Remove clip from size-allocate vfuncBenjamin Otte2018-04-051-5/+2
| | | | As the clip is no longer needed, get rid of it.
* GtkWidget: Start renaming widget->windowAlexander Larsson2018-03-201-1/+1
| | | | | | | | | | | | | | | This is an automated change doing these command: git sed -f g gtk_widget_set_has_window gtk_widget_set_has_surface git sed -f g gtk_widget_get_has_window gtk_widget_get_has_surface git sed -f g gtk_widget_set_parent_window gtk_widget_set_parent_surface git sed -f g gtk_widget_get_parent_window gtk_widget_get_parent_surface git sed -f g gtk_widget_set_window gtk_widget_set_surface git sed -f g gtk_widget_get_window gtk_widget_get_surface git sed -f g gtk_widget_register_window gtk_widget_register_surface git sed -f g gtk_widget_unregister_window gtk_widget_unregister_surface git checkout NEWS*
* The big versioning cleanupMatthias Clasen2018-02-061-18/+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.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+3
| | | | | | | | | | | | | | | | | | | This patch makes that work using 1 of 2 options: 1. Add all missing enums to the switch statement or 2. Cast the switch argument to a uint to avoid having to do that (mostly for GdkEventType). I even found a bug while doing that: clearing a GtkImage with a surface did not notify thae surface property. The reason for enabling this flag even though it is tedious at times is that it is very useful when adding values to an enum, because it makes GTK immediately warn about all the switch statements where this enum is relevant. And I expect changes to enums to be frequent during the GTK4 development cycle.
* centerbox: Unparent widgets in disposeTimm Bäder2017-09-011-0/+27
|
* CenterBox: minor tweaks to doc blurbDaniel Boles2017-08-051-3/+4
|
* CenterBox: Add missing nullable annotationsDaniel Boles2017-08-051-13/+13
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=785280
* widget: Add baseline and out_clip parameters to size-allocateTimm Bäder2017-07-191-12/+6
| | | | | | | | | | | 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.
* centerbox: Add some missing return value annotationsTimm Bäder2017-07-191-3/+3
|
* centerbox: Avoid accessing unset widgetsTimm Bäder2017-07-191-1/+1
|
* Avoid compiler warningsMatthias Clasen2017-07-191-2/+2
| | | | Initialize these variables, so gcc doesn't complain.
* center box: Take baseline-position fully into accountMatthias Clasen2017-06-101-3/+22
| | | | | We need to take baseline-position into account during measure as well.
* center box: complete the baseline supportMatthias Clasen2017-06-101-1/+133
| | | | | | | | | When there is no externally allocated baseline, we should do the same thing that GtkBox does, and determine one from the children that want baseline alignment. This commit adds a GtkCenterBox::baseline-position property with setters and getters.
* center box: Fix size allocationMatthias Clasen2017-06-101-1/+1
| | | | | This missing pair of parens was causing expanding children to overlap.
* center box: Drop a useless lineMatthias Clasen2017-06-101-1/+0
| | | | This is just a leftover that has no effect whatsoever.
* center box: Add more documentationMatthias Clasen2017-06-041-0/+9
|
* center box: add baseline supportMatthias Clasen2017-06-041-87/+96
| | | | This is copied more or less directly from GtkBoxGadget.
* center box : implement GtkOrientableMatthias Clasen2017-06-041-46/+157
| | | | This is generally expected of containers where it makes sense.
* center box: support height-for-widthMatthias Clasen2017-06-041-93/+212
| | | | Implement request modes fully.
* center box: Support expand propertyMatthias Clasen2017-06-041-18/+63
| | | | | We expand the center child first, but only as far as we can keep it centered.
* center box: implement GtkBuildableMatthias Clasen2017-06-041-1/+27
| | | | | | Make it possible to fill the slots by using the type attribute on child nodes. This is necessary since GtkCenterBox does not derive from GtkContainer.
* center box: implement natural size and rtl flippingMatthias Clasen2017-06-041-88/+130
| | | | | We prefer to give the center widget its natural size, and we center it as long as possible.
* center box: handle missing start or end widgetsMatthias Clasen2017-06-041-45/+69
| | | | Any slot may be unfilled, not just the center one.
* Make GtkCenterBox publicMatthias Clasen2017-06-041-5/+134
| | | | | It provides functionality that GtkBox used to have, and is generally useful.