summaryrefslogtreecommitdiff
path: root/gtk/gtkgrid.c
Commit message (Collapse)AuthorAgeFilesLines
* grid: Remove unnecessary NULL checksTimm Bäder2017-04-281-5/+2
| | | | | The minimum and natural pointers passed to measure are never NULL and that's the only place where we call gtk_grid_get_size_for_size.
* Fix gdk_rectangle_union callsTimm Bäder2017-04-281-1/+1
| | | | | | Turns out that the destination is the last parameter, not the first one. This fixes the flickering in the first page of the widget-factory when using the expander on page 2.
* grid: Compute clip directlyTimm Bäder2017-04-251-4/+7
| | | | | Instead of iterating over the children again in gtk_container_get_children_clip
* container: Remove include_internals parameter from forallTimm Bäder2017-04-251-1/+0
| | | | | | with include_internals=TRUE, this is the same as the (still private) gtk_widget_forall, or just using the children/sibling accessors in a loop.
* grid: Fix plural error in docs' @Short_descriptionDaniel Boles2017-01-151-1/+1
|
* Avoid some more type checks for internal callsAlexander Larsson2017-01-111-1/+1
|
* gadget: Remove gtk_css_gadget_draw()Benjamin Otte2016-12-201-1/+0
| | | | | | | And with it, remove the draw func from custom gadgets, that has been NULL everywhere. All gadgets are snapshot now.
* grid: Implement support for CSS border-spacingBenjamin Otte2016-12-101-25/+42
|
* snapshot: Convert GtkGridBenjamin Otte2016-11-151-15/+20
|
* snapshot: Add a snapshot function to GtkCssCustomGadgetBenjamin Otte2016-11-151-0/+1
|
* grid: Use gtk_wiget_measureTimm Bäder2016-11-121-16/+12
|
* widget: Use ::measure vfunc to measure sizeTimm Bäder2016-10-221-63/+10
| | | | | | | | Add a new ::measure vfunc similar to GtkCssGadget's that widget implementations have to override instead of the old get_preferred_width, get_preferred_height, get_preferred_width_for_height, get_preferred_height_for_width and get_preferred_height_and_baseline_for_width.
* Convert GtkGrid to indirect renderingMatthias Clasen2016-10-181-19/+12
| | | | Following the example of GtkBox.
* Remove GtkTableTimm Bäder2016-10-181-2/+2
|
* API: container: Remove gtk_container_set_border_width()Benjamin Otte2016-10-161-1/+0
|
* Remove GtkHBoxTimm Bäder2016-10-161-1/+1
|
* 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