Matthias Clasen
9c88256441
box: Trivial doc change
...
All the CSS sections are named CSS nodes, so do the same here.
2015-12-15 08:41:16 -05:00
Benjamin Otte
49fea0b0f5
box: Port to gadgets
2015-12-15 08:41:16 -05:00
Timm Bäder
88b4955fd9
GtkBox: The center widget can be NULL
...
Propagates to GtkActionBar.
2015-12-01 13:41:35 +01:00
Matthias Clasen
95df0fb6f5
box: Use an element name
2015-11-19 07:07:26 -05:00
Benjamin Otte
a7816909ef
box: Refactor CSS node handling
...
Only update the node that changed, don't invalidate everything.
2015-11-09 01:48:14 +01:00
Benjamin Otte
bed3ff2737
box: Don't track children visibility
...
It's not necessary anymore with css nodes.
2015-11-09 01:48:14 +01:00
Matthias Clasen
1e4369e8ef
box: Convert to gtk_container_child_notify_by_pspec
...
For the same reasons as g_object_child_notify_by_pspec.
2015-09-08 08:07:32 -04:00
Matthias Clasen
0f92a43e10
Move GtkWidgetPrivate to gtkwidgetprivate.h
...
This lets us use inlined getters for members in there,
avoiding the type checks in the public getters.
2015-09-07 02:40:22 -04:00
Benjamin Otte
6e4f42f97e
cssnode: Change API of some functions
...
gtk_css_node_set_after/before() are now called
gtk_css_node_insert_after/before().
This brings them in line with other similar APIs (ie GtkListStore). And
it allows easier usage of the API (see changes to gtkbox.c).
2015-07-16 06:15:13 +02:00
Benjamin Otte
36678306a0
box: Fix RTL styling
2015-05-12 18:44:59 +02:00
Benjamin Otte
ee91fb71ca
box: Use CSS nodes instead of widget paths
...
This is a very simple patch that causes a bunch of overhead. But it
works.
2015-03-18 15:23:31 +01:00
Matthias Clasen
45d0a5cc4b
Trivial formatting fix
...
&& goes at the end of the line in GTK+ coding style.
2014-12-09 23:41:28 -05:00
Matthias Clasen
8b6457732f
GtkBox: Fix self-assignment for center widget
...
This is happening when glade is loading ui files containing
center widgets.
2014-10-25 20:30:08 -04:00
Matthias Clasen
b4a288a592
GtkBox: Ensure we only allow one center child
...
Glade was happily adding multiple center widgets. Oops.
2014-10-13 12:45:05 -04:00
Benjamin Otte
b5a8b7ef3b
widget: Make _gtk_set_simple_clip() take an optional content clip
2014-08-21 00:54:07 +02:00
Matthias Clasen
b4ab29d4d5
GtkBox: Set orientable style classes initially
...
This was an omission, horizontal/vertical would only be set
when the orientation is changed.
2014-07-18 19:37:33 -04:00
Matthias Clasen
f531b0757c
GtkBox: Use G_PARAM_EXPLICIT_NOTIFY
2014-06-09 13:30:52 -04:00
Matthias Clasen
06564f5df6
GtkBox: Convert to g_object_install_properties
2014-06-09 13:30:52 -04:00
Matthias Clasen
e54525729e
GtkBox: Move overridden property ids to the end
...
This will make it easier to convert to g_object_install_properties
in the next commit.
2014-06-09 13:30:52 -04:00
Benjamin Otte
0cd63faee2
widget: Add _gtk_widget_set_css_clip()
...
... and use it in GtkBox and GtkGrid.
2014-05-24 16:12:21 +02:00
Marcus Karlsson
ac5fbb5ef3
docs: Add missing transfer annotation to GtkBox
...
The gtk_box_get_center_widget function is missing a transfer annotation
for the returned widget. No transfer is done, so set transfer to none.
https://bugzilla.gnome.org/show_bug.cgi?id=728093
2014-04-13 13:22:36 -07:00
William Jon McCann
469d333aa2
docs: use Returns: consistently
...
Instead of Return value:
2014-02-19 18:56:05 -05:00
Matthias Clasen
e679812be0
GtkBox: Fix an off-by-one error with center allocation
...
This error was causing children to not get allocated when
the center widget is the first one in the list of the box's
children.
2014-02-18 22:55:45 -05:00
Matthias Clasen
bb4f8d8ce1
Make gtk_box_set_center_widget take NULL
...
It makes sense to allow this, and gtk_action_bar_set_center_widget
already assumes that it can pass NULL to this function.
2014-02-18 22:50:37 -05:00
Paolo Borelli
ad9019c2c9
gtkbox: fix positioning of center widget
2014-02-17 23:23:04 +01:00
Matthias Clasen
e734b79fd8
Fix return_if_fail lines in gtk_box_pack
...
Since the function now returns a value, these checks
need to be updated.
2014-02-17 11:55:56 -05:00
Paolo Borelli
b63ecf8b1a
Add builder support for GtkBox center widget
2014-02-17 14:05:36 +01:00
Matthias Clasen
06716a6c79
Add center widget support to GtkBox
...
This makes GtkCenterBox unnecessary, and at the same time
adds more features: the center widget can be expanded, and
baseline alignment is supported.
2014-02-16 22:57:24 -05:00
William Jon McCann
7a208fbbf3
docs: use proper apostrophe
...
https://wiki.gnome.org/Design/OS/Typography
2014-02-07 13:06:10 -05:00
Matthias Clasen
245c385ae7
Docs: Don't use note elements
...
In most cases, the text itself makes the message clear enough.
2014-02-02 01:22:14 -05:00
William Jon McCann
2d003553e8
docs: don't use <emphasis>
...
It is a little heavy handed. The text can speak for itself.
2014-01-28 02:02:05 -05:00
Matthias Clasen
05655c5bfa
Trivial typo fix
2014-01-27 23:30:38 -05:00
William Jon McCann
4872ee75e6
docs: don't use structfield tags
2014-01-27 19:59:58 -05:00
William Jon McCann
00f15b863e
docs: don't use property syntax for child properties
2014-01-21 22:40:55 -05:00
William Jon McCann
0b4ea6ea1b
docs: fix typo in property name
2014-01-21 18:57:37 -05:00
William Jon McCann
01018e019b
docs: don't use property syntax for child properties
2014-01-21 18:57:37 -05:00
Jasper St. Pierre
698488ddc4
gtkbox: Draw backgrounds and borders
2013-10-31 12:21:08 -04:00
Piotr Drąg
60ec788489
Fix minor typos
2013-08-21 04:15:52 +02:00
Emmanuele Bassi
0899ef7cc9
gtk: Use new macros for defining private data
...
https://bugzilla.gnome.org/show_bug.cgi?id=702996
2013-07-09 09:30:02 +01:00
Matthias Clasen
80513aa2c7
GtkBox: don't propagate the expand child property
...
The intention of the expand widget flags was to in fact propagate
legacy expand child properties as well. Due to implementation errors,
this was only happening in some cases, but not in others. To avoid
breaking old code assuming traditional expand flag behavior, this
commit removes all attempts to propagate GtkBox::expand.
This was discussed in
https://bugzilla.gnome.org/show_bug.cgi?id=698656 and
https://bugzilla.gnome.org/show_bug.cgi?id=628902
This patch was written by Tristan Van Berkom.
2013-05-25 14:46:09 -04:00
Benjamin Otte
6146bf7a32
gtkprivate: #define OPPOSITE_ORIENTATION
...
and use it
2013-05-01 16:41:11 +02:00
Alexander Larsson
43f1ac2b8f
GtkBox: Add missing Since in docs
2013-04-23 05:58:08 +02:00
Alexander Larsson
9a42942afb
GtkBox: Add baseline alignment for horizontal boxes
...
Report a baseline based height and baseline whenever there
are children with ALIGN_BASELINE.
Assign baseline to childen in size_allocate. Either the one inherited
from the parent if set, or otherwise calculate one based on any
ALIGN_BASELINE children.
2013-04-23 05:50:38 +02:00
Cosimo Cecchi
61344219d4
Revert "box: Don't special-case RTL hbox child positions anymore"
...
This reverts commit 6f86e57c4f
.
https://bugzilla.gnome.org/show_bug.cgi?id=694451
2013-02-23 14:53:24 -05:00
Benjamin Otte
6f86e57c4f
box: Don't special-case RTL hbox child positions anymore
...
If you want to get rounded corners on an hbox, instead of
:first-child {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
:last-child {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
you now need to write:
:first-child, :last-child:dir(rtl) {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
}
:last-child, :first-child:dir(rtl) {
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
2012-12-18 18:25:42 +01:00
Matthias Clasen
ffa42cb5bb
Nuke GtkBoxAccessible
...
It didn't contain anything useful.
2012-11-07 20:17:30 -05:00
Stefano Facchini
fb18145c06
box: Fix typo
...
https://bugzilla.gnome.org/show_bug.cgi?id=683718
2012-09-11 21:40:46 +02:00
Cosimo Cecchi
f900df6f01
box: set orientation style classes when setting orientation
...
Since we override the property, we have to call the internal helper
manually.
2012-05-11 11:46:59 -04:00
Benjamin Otte
33f111a47c
widget: Don't cache widget paths all the time
...
Add an internal API that allows GtkStyleContext to create a widget path
for the widget and with that bypassing gtk_widget_get_path() and that
function caching the path.
2012-04-17 08:59:21 +02:00
Benjamin Otte
ece9d2fd92
gtk: Make widget only invalidate widget positions
...
Instead of resetting them completely
2012-04-17 08:59:10 +02:00