summaryrefslogtreecommitdiff
path: root/gtk/gtkgrid.c
Commit message (Collapse)AuthorAgeFilesLines
* Revise CSS node documentationMatthias Clasen2015-12-161-1/+1
| | | | | Clarify the use of brackets in the CSS node diagrams: [] means optional nodes or classes, <> means child widgets.
* grid: Convert to gadgetsMatthias Clasen2015-12-151-79/+136
|
* Add some more missing nullable annotationsTimm Bäder2015-12-011-1/+1
|
* GtkGrid: Remove invalid return annotationTimm Bäder2015-11-131-2/+0
|
* grid: Convert to gtk_container_child_notify_by_pspecMatthias Clasen2015-09-081-13/+26
| | | | For the same reasons as g_object_child_notify_by_pspec.
* Move GtkWidgetPrivate to gtkwidgetprivate.hMatthias Clasen2015-09-071-19/+19
| | | | | This lets us use inlined getters for members in there, avoiding the type checks in the public getters.
* Revert "GtkGrid: Add a few NULL checks"Matthias Clasen2015-07-171-5/+2
| | | | | | This reverts commit e215db6da21fc7c54f49b247afabc06a18d60513. We are actually requiring non-NULL out arguments here now.
* GtkGrid: Add a few NULL checksMatthias Clasen2015-07-171-2/+5
| | | | Coverity complained about these.
* stylecontext: Split render functions out into gtkrender.[ch]Benjamin Otte2014-10-031-0/+1
|
* widget: Make _gtk_set_simple_clip() take an optional content clipBenjamin Otte2014-08-211-1/+1
|
* GtkGrid: Set orientable style classes initiallyMatthias Clasen2014-07-181-0/+2
| | | | | This was an omission, horizontal/vertical would only be set when the orientation is changed.
* GtkGrid: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-5/+5
|
* widget: Add _gtk_widget_set_css_clip()Benjamin Otte2014-05-241-0/+3
| | | | ... and use it in GtkBox and GtkGrid.
* GtkGrid: gtk_grid_get_size_for_size() do not dereference a NULL pointer.Juan Pablo Ugarte2014-05-011-2/+2
|
* grid: Remove unneeded checksBenjamin Otte2014-05-011-10/+4
| | | | | Size vfuncs always get non-null out variables passed, so no need to check for NULL.
* docs: use proper quotations instead of '*'William 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 markup for linksWilliam Jon McCann2014-02-071-1/+1
|
* GtkGrid: fix property installationMatthias Clasen2014-01-251-12/+12
| | | | The previous commit was misapplied.
* gtkgrid: Use g_object_class_install_properties() and g_object_notify_by_pspec()Javier Jardón2014-01-241-13/+20
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=634793
* grid: draw css background and bordersPaolo Borelli2013-11-031-0/+17
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=711324
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-3/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* GtkGrid: Undo a size allocation tweakMatthias Clasen2013-04-281-13/+1
| | | | | | | Revert 5e1a06d1b124f09a1a54d5ae0f38905dbdc2cc81 This change caused empty rows to 'open up', which was not intended and causes problems as seen in bug 698660.
* docs: fix some typos in newly introduced methodsCosimo Cecchi2013-04-241-1/+1
|
* GtkGrid: Add missing Since docsAlexander Larsson2013-04-231-0/+8
|
* GtkGrid: Support baseline alignment in GtkGridAlexander Larsson2013-04-231-109/+605
| | | | | We support a local baseline in each row, as well as selecting a specific row for the global baseline of the entire GtkGrid.
* Add gtk_grid_remove_{row,column}Matthias Clasen2013-03-231-0/+102
| | | | | | It is sometimes convenient to deal with entire rows or columns at a time. https://bugzilla.gnome.org/show_bug.cgi?id=695994
* GtkGrid: Tweak size allocationMatthias Clasen2013-03-151-1/+14
| | | | | | | | | | If there are rows that contain only spanning children, our algorithm was unnecessarily distributing extra space to the other rows, even if they contain only non-expanding children. We improve the behaviour by treating rows containing only spanning children as expanding.
* grid: Fix access to grid->priv memberBastian Winkler2012-06-031-2/+6
| | | | | | The priv member should be accessed after the g_return_if_fail test https://bugzilla.gnome.org/show_bug.cgi?id=677363
* grid: Add missing guard to gtk_grid_get_child_at()Bastian Winkler2012-06-031-1/+5
| | | | | | Add missing guard to make sure it's called with a GtkGrid argument. https://bugzilla.gnome.org/show_bug.cgi?id=677363
* grid: add missing transfer annotationMartin Pitt2012-05-161-1/+1
| | | | | gtk_grid_get_child_at() is missing a transfer annotation for the returned widget, making it not introspectable.
* GtkGrid: Add a note about overlapping childrenMatthias Clasen2012-04-281-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=669989
* grid: avoid a floating point exceptionMatthias Clasen2012-03-241-0/+3
| | | | | | | | When a homogeneous grid has no visible children, we were accidentally doing a division by zero. Instead, just bail out early in this case, there is nothing to allocate anyway. https://bugzilla.gnome.org/show_bug.cgi?id=672763
* grid: Work harder for tight homogeneous allocationMatthias Clasen2012-03-041-18/+53
| | | | | | | | | When doing homogeneous allocation in the presence of overlapping spanning children, we need to avoid uneven line allocations, otherwise, the final homogenization will blow up the size request of the grid. https://bugzilla.gnome.org/show_bug.cgi?id=671170
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Fix gtk_grid_attach_next_toMatthias Clasen2011-10-251-4/+9
| | | | | The function did not behave as intended when @sibling is NULL. Also add an example to the docs to clarify the intended behaviour.
* Fix natural/min widht calculations for empty gridsMatthias Clasen2011-10-211-2/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=660139
* gtk: fix syntax of an annotationTorsten Schönfeld2011-10-151-1/+1
|
* grid: Swap wrong spacing propertiesBenjamin Otte2011-09-051-8/+8
| | | | | | | | row-spacing behaved like column-spacing should have and vice versa. Also update tests that erroneously checked this behavior. Thanks to Joanmarie Diggs for finding this.
* GtkGrid: make attaching more flexibleMatthias Clasen2011-09-021-65/+124
| | | | | | | Allow to attach children at either end of row/column 0. Proposed by Alex Larsson. https://bugzilla.gnome.org/show_bug.cgi?id=657793
* Add an accessor for grid childrenMatthias Clasen2011-08-281-0/+36
| | | | This addresses concerns in bug 634136.
* GtkGrid: Add a way to insert rows or columnsMatthias Clasen2011-08-081-0/+136
| | | | | | | This is useful functionality that makes it easier to insert things in the middle of an already populated grid. Bug 653817
* GtkGrid: Fix a size allocation problemMatthias Clasen2011-06-071-4/+10
| | | | | | | | | We need pay attention the the request mode when doing size allocation. The code was using request mode for requisition, but orientation for allocation. Also add a reftest that exhibits the issue, courtesy of Benjamin Otte.
* Add shortcuts for the !children caseMatthias Clasen2011-05-121-0/+24
| | | | | | Not that we are doing too much work in that case, but we are segfaulting, which is bad. https://bugzilla.gnome.org/show_bug.cgi?id=649972
* grid: Fix homogeneuous properties being flippedBenjamin Otte2011-04-271-8/+10
|
* GtkGrid: Add forgotten RTL flippingMatthias Clasen2011-03-301-0/+4
| | | | How did we manage to add a non-RTL savy container in GTK+ 3.0 ?
* Added GTK_SIZE_REQUEST_CONSTANT_SIZE to GtkSizeRequestModeTristan Van Berkom2011-03-251-17/+4
| | | | | | | The constant size request mode defines a request mode where height-for-width geometry is unneeded, thus optimizing GTK+ by reducing the overall amount of requests that need to be performed and cached while resizing an interface.
* GtkGrid: Avoid problems with uninitialized memoryMatthias Clasen2011-02-171-0/+8
| | | | | valgrind complained about these, and they make for bad size allocation and the occasional crash.
* Add gtkorientableprivate.h headerMatthias Clasen2011-01-301-1/+1
|
* Redo patch in efae64b (Set vertical/horizontal class...)Carlos Garnacho2011-01-121-13/+1
| | | | | Add a _gtk_orientable_set_style_classes() function so all orientation changes to style happen in a single place.