summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
Commit message (Collapse)AuthorAgeFilesLines
* box: Fix rtl allocation with center widgetMatthias Clasen2016-02-201-10/+14
| | | | | | | The code for adjusting the center widget allocation in case of uneven sides never worked right in RTL. This was finally noticed for tabs with close button, which commonly use a centered label.
* Revert "Remove _gtk_box_get_children"Carlos Garcia Campos2016-02-121-0/+24
| | | | | | | | | | This reverts commit 572e9a04027e213082a5b257e5d662a5daa32667. _gtk_box_get_children was not doing exactly the same than gtk_container_get_children does, because the latter uses the forall implementation of GtkBox that takes into account the children pack mode while the former just iterated the list of children. This broke the order of the buttons in a GtkButtonBox when they were packaged with PACK_END.
* Remove _gtk_box_get_childrenTimm Bäder2016-02-041-24/+0
| | | | It's doing exactly the same thing as gtk_container_get_children.
* GtkBox: Documentation tweakMatthias Clasen2016-01-131-3/+5
|
* box: Document child node orderingMatthias Clasen2016-01-121-1/+3
|
* box: Add a way to get the gadgetMatthias Clasen2015-12-181-0/+6
| | | | This will be used in GtkButtonBox.
* box: Trivial doc changeMatthias Clasen2015-12-151-1/+1
| | | | All the CSS sections are named CSS nodes, so do the same here.
* box: Port to gadgetsBenjamin Otte2015-12-151-64/+138
|
* GtkBox: The center widget can be NULLTimm Bäder2015-12-011-1/+2
| | | | Propagates to GtkActionBar.
* box: Use an element nameMatthias Clasen2015-11-191-0/+5
|
* box: Refactor CSS node handlingBenjamin Otte2015-11-091-33/+32
| | | | Only update the node that changed, don't invalidate everything.
* box: Don't track children visibilityBenjamin Otte2015-11-091-17/+0
| | | | It's not necessary anymore with css nodes.
* box: Convert to gtk_container_child_notify_by_pspecMatthias Clasen2015-09-081-47/+52
| | | | For the same reasons as g_object_child_notify_by_pspec.
* Move GtkWidgetPrivate to gtkwidgetprivate.hMatthias Clasen2015-09-071-22/+22
| | | | | This lets us use inlined getters for members in there, avoiding the type checks in the public getters.
* cssnode: Change API of some functionsBenjamin Otte2015-07-161-24/+21
| | | | | | | | 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).
* box: Fix RTL stylingBenjamin Otte2015-05-121-1/+18
|
* box: Use CSS nodes instead of widget pathsBenjamin Otte2015-03-181-5/+14
| | | | | This is a very simple patch that causes a bunch of overhead. But it works.
* Trivial formatting fixMatthias Clasen2014-12-091-2/+2
| | | | && goes at the end of the line in GTK+ coding style.
* GtkBox: Fix self-assignment for center widgetMatthias Clasen2014-10-251-0/+5
| | | | | This is happening when glade is loading ui files containing center widgets.
* GtkBox: Ensure we only allow one center childMatthias Clasen2014-10-131-2/+6
| | | | Glade was happily adding multiple center widgets. Oops.
* widget: Make _gtk_set_simple_clip() take an optional content clipBenjamin Otte2014-08-211-2/+2
|
* GtkBox: 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.
* GtkBox: Use G_PARAM_EXPLICIT_NOTIFYMatthias Clasen2014-06-091-3/+3
|
* GtkBox: Convert to g_object_install_propertiesMatthias Clasen2014-06-091-38/+47
|
* GtkBox: Move overridden property ids to the endMatthias Clasen2014-06-091-2/+4
| | | | | This will make it easier to convert to g_object_install_properties in the next commit.
* widget: Add _gtk_widget_set_css_clip()Benjamin Otte2014-05-241-0/+4
| | | | ... and use it in GtkBox and GtkGrid.
* docs: Add missing transfer annotation to GtkBoxMarcus Karlsson2014-04-131-1/+1
| | | | | | | 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
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-5/+5
| | | | Instead of Return value:
* GtkBox: Fix an off-by-one error with center allocationMatthias Clasen2014-02-181-2/+2
| | | | | | 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.
* Make gtk_box_set_center_widget take NULLMatthias Clasen2014-02-181-6/+11
| | | | | It makes sense to allow this, and gtk_action_bar_set_center_widget already assumes that it can pass NULL to this function.
* gtkbox: fix positioning of center widgetPaolo Borelli2014-02-171-1/+5
|
* Fix return_if_fail lines in gtk_box_packMatthias Clasen2014-02-171-3/+3
| | | | | Since the function now returns a value, these checks need to be updated.
* Add builder support for GtkBox center widgetPaolo Borelli2014-02-171-1/+23
|
* Add center widget support to GtkBoxMatthias Clasen2014-02-161-14/+468
| | | | | | This makes GtkCenterBox unnecessary, and at the same time adds more features: the center widget can be expanded, and baseline alignment is supported.
* docs: use proper apostropheWilliam Jon McCann2014-02-071-2/+2
| | | | https://wiki.gnome.org/Design/OS/Typography
* Docs: Don't use note elementsMatthias Clasen2014-02-021-2/+0
| | | | In most cases, the text itself makes the message clear enough.
* docs: don't use <emphasis>William Jon McCann2014-01-281-4/+4
| | | | It is a little heavy handed. The text can speak for itself.
* Trivial typo fixMatthias Clasen2014-01-271-1/+1
|
* docs: don't use structfield tagsWilliam Jon McCann2014-01-271-2/+1
|
* docs: don't use property syntax for child propertiesWilliam Jon McCann2014-01-211-7/+7
|
* docs: fix typo in property nameWilliam Jon McCann2014-01-211-1/+1
|
* docs: don't use property syntax for child propertiesWilliam Jon McCann2014-01-211-4/+4
|
* gtkbox: Draw backgrounds and bordersJasper St. Pierre2013-10-311-0/+18
|
* Fix minor typosPiotr Drąg2013-08-211-1/+1
|
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-7/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* GtkBox: don't propagate the expand child propertyMatthias Clasen2013-05-251-51/+3
| | | | | | | | | | | | | | 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.
* gtkprivate: #define OPPOSITE_ORIENTATIONBenjamin Otte2013-05-011-4/+1
| | | | and use it
* GtkBox: Add missing Since in docsAlexander Larsson2013-04-231-0/+4
|
* GtkBox: Add baseline alignment for horizontal boxesAlexander Larsson2013-04-231-50/+332
| | | | | | | | | 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.
* Revert "box: Don't special-case RTL hbox child positions anymore"Cosimo Cecchi2013-02-231-2/+23
| | | | | | This reverts commit 6f86e57c4fb2cd76549910302b3a7145e7fd0e8b. https://bugzilla.gnome.org/show_bug.cgi?id=694451