Cosimo Cecchi
06c8e8fa43
docs: fix some typos in newly introduced methods
2013-04-24 13:10:54 -04:00
Alexander Larsson
ebbc7791dd
GtkGrid: Add missing Since docs
2013-04-23 05:58:07 +02:00
Alexander Larsson
627685e2a2
GtkGrid: Support baseline alignment in GtkGrid
...
We support a local baseline in each row, as well as selecting
a specific row for the global baseline of the entire GtkGrid.
2013-04-23 05:58:07 +02:00
Matthias Clasen
cc86a7bb7e
Add gtk_grid_remove_{row,column}
...
It is sometimes convenient to deal with entire rows or
columns at a time.
https://bugzilla.gnome.org/show_bug.cgi?id=695994
2013-03-23 15:43:37 -04:00
Matthias Clasen
5e1a06d1b1
GtkGrid: Tweak size allocation
...
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.
2013-03-15 23:38:30 -04:00
Bastian Winkler
b0ea45863d
grid: Fix access to grid->priv member
...
The priv member should be accessed after the g_return_if_fail test
https://bugzilla.gnome.org/show_bug.cgi?id=677363
2012-06-03 01:51:26 +02:00
Bastian Winkler
4fee1aa22b
grid: Add missing guard to gtk_grid_get_child_at()
...
Add missing guard to make sure it's called with a GtkGrid argument.
https://bugzilla.gnome.org/show_bug.cgi?id=677363
2012-06-03 01:50:28 +02:00
Martin Pitt
ec39974714
grid: add missing transfer annotation
...
gtk_grid_get_child_at() is missing a transfer annotation for the returned
widget, making it not introspectable.
2012-05-16 18:00:04 +02:00
Matthias Clasen
0c6d158373
GtkGrid: Add a note about overlapping children
...
https://bugzilla.gnome.org/show_bug.cgi?id=669989
2012-04-28 02:19:45 -04:00
Matthias Clasen
ed17c74f58
grid: avoid a floating point exception
...
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
2012-03-24 17:19:46 -04:00
Matthias Clasen
47c190a1b7
grid: Work harder for tight homogeneous allocation
...
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
2012-03-04 17:29:01 -05:00
Javier Jardón
9d0febc9a6
Change FSF Address
2012-02-27 17:06:11 +00:00
Matthias Clasen
362ff7bedf
Fix gtk_grid_attach_next_to
...
The function did not behave as intended when @sibling is NULL.
Also add an example to the docs to clarify the intended behaviour.
2011-10-25 23:21:13 -04:00
Matthias Clasen
bb1d9aba86
Fix natural/min widht calculations for empty grids
...
https://bugzilla.gnome.org/show_bug.cgi?id=660139
2011-10-21 16:24:55 -04:00
Torsten Schönfeld
a95c4c1bb4
gtk: fix syntax of an annotation
2011-10-15 19:37:43 +02:00
Benjamin Otte
d717a2dcfc
grid: Swap wrong spacing properties
...
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.
2011-09-05 18:56:23 +02:00
Matthias Clasen
ef4690d511
GtkGrid: make attaching more flexible
...
Allow to attach children at either end of row/column 0.
Proposed by Alex Larsson.
https://bugzilla.gnome.org/show_bug.cgi?id=657793
2011-09-02 20:07:19 -04:00
Matthias Clasen
f64647077f
Add an accessor for grid children
...
This addresses concerns in bug 634136.
2011-08-28 21:20:53 -04:00
Matthias Clasen
17f99f663f
GtkGrid: Add a way to insert rows or columns
...
This is useful functionality that makes it easier to insert
things in the middle of an already populated grid.
Bug 653817
2011-08-08 13:13:48 +02:00
Matthias Clasen
d4224cd325
GtkGrid: Fix a size allocation problem
...
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.
2011-06-07 11:05:50 -04:00
Matthias Clasen
b219b3b0ec
Add shortcuts for the !children case
...
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
2011-05-12 20:12:51 -04:00
Benjamin Otte
8331b45a5f
grid: Fix homogeneuous properties being flipped
2011-04-27 00:42:44 +02:00
Matthias Clasen
7a65db0402
GtkGrid: Add forgotten RTL flipping
...
How did we manage to add a non-RTL savy container in GTK+ 3.0 ?
2011-03-30 08:19:30 -04:00
Tristan Van Berkom
887142f1f5
Added GTK_SIZE_REQUEST_CONSTANT_SIZE to GtkSizeRequestMode
...
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.
2011-03-25 18:42:07 +09:00
Matthias Clasen
1692829594
GtkGrid: Avoid problems with uninitialized memory
...
valgrind complained about these, and they make for bad size allocation
and the occasional crash.
2011-02-17 11:53:38 -05:00
Matthias Clasen
4a0aa41742
Add gtkorientableprivate.h header
2011-01-30 03:12:49 -05:00
Carlos Garnacho
e2e7075533
Redo patch in efae64b
(Set vertical/horizontal class...)
...
Add a _gtk_orientable_set_style_classes() function so all
orientation changes to style happen in a single place.
2011-01-12 22:58:41 +01:00
Carlos Garnacho
efae64be66
Set vertical/horizontal class on all widgets overriding GtkOrientable::orientation
...
This is so g_object_set() on that property leaves widgets' style in
a meaningful state. Fully fixes bug 639157.
2011-01-12 22:28:43 +01:00
Tristan Van Berkom
e20503836c
Fixed GtkGrid GtkContainerClass->forall() to not use a for loop.
...
This loop needs to be safe for removing children in a forall loop.
2010-12-22 21:25:53 +09:00
Javier Jardón
dadf5c331a
docs: Improve cross-referencing on GtkGrid docs
2010-11-05 22:19:49 +09:00
Christian Dywan
5ef2b46d64
Don't declare various unused variables in gtk_grid_set_orientation
2010-10-22 19:05:40 +02:00
Matthias Clasen
a9204e65dd
Remove child flipping from GtkGrid
...
We decided that this is not really the right thing to do, for one
thing, because it doesn't flip ::expand and ::margin properties
of children.
2010-10-22 16:43:45 +02:00
Matthias Clasen
8f0ae8e8a3
Add GtkGrid
...
GtkGrid is a container similar to GtkTable, without legacy
properties and unnecessary restrictions.
It does height-for-width geometry management.
2010-10-22 16:42:50 +02:00