summaryrefslogtreecommitdiff
path: root/gtk/gtkalignment.c
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate GtkAligmentMatthias Clasen2014-05-231-833/+0
| | | | | | This has been dangling ever since 3.0. https://bugzilla.gnome.org/show_bug.cgi?id=645781
* alignment: Remove unneeded checksBenjamin Otte2014-05-011-5/+2
| | | | | Size vfuncs always get non-null out variables passed, so no need to check for NULL.
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* Docs: Don't use note elementsMatthias Clasen2014-02-021-4/+0
| | | | In most cases, the text itself makes the message clear enough.
* alignment: Remove dead assignmentBenjamin Otte2013-08-131-4/+1
| | | | .. and clean up code
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* Always use gint for border_widthMatthias Clasen2013-05-041-1/+1
| | | | | | | This avoids an evil trap when doing MAX (..., ... - 2 * border_width) and the expression on the right gets promoted to unsigned, instead of going negative as you would expect. https://bugzilla.gnome.org/show_bug.cgi?id=699633
* GtkAlignment: Support baselinesAlexander Larsson2013-04-231-12/+70
| | | | | | We now report any baselines from the child, and allocate it. Also, in the case of a baselign aligned child we ignore yscale/yalign as that is not supportable.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-4/+8
|
* Added proper height-for-width implementation to GtkAlignment.Tristan Van Berkom2010-12-291-4/+66
| | | | | | | For "padding" cases, it would be ok to fallback on GtkBin class implementation of height-for-width. However in cases where the user set's an xscale/yscale the GtkAlignment needs to take care of properly adjusting the for_size when querying it's child.
* docs: Add gtk-doc notationJavier Jardón2010-10-221-0/+4
| | | | to emphasize that GtkMisc and GtkAdjustment are not encouraged in new code
* Discourage use of GtkMisc and GtkAlignmentMatthias Clasen2010-10-221-1/+1
|
* Move GtkSizeRequest into GtkWidgetBenjamin Otte2010-09-261-45/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | It doesn't make sense to keep them separate as GtkSizeRequest requires a GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have one without the other. It also makes the code a lot easier because no casts are required when calling functions. Also, the names would translate to gtk_widget_get_width() and people agreed that this would be a too generic name, so a "preferred" was added to the names. So this patch moves the functions: gtk_size_request_get_request_mode() => gtk_widget_get_request_mode() gtk_size_request_get_width() => gtk_widget_get_preferred_width() gtk_size_request_get_height() => gtk_widget_get_preferred_height() gtk_size_request_get_size() => gtk_widget_get_preferred_size() gtk_size_request_get_width_for_height() => gtk_widget_get_preferred_width_for_height() gtk_size_request_get_height_for_width() => gtk_widget_get_preferred_height_for_width() ... and moves the corresponding vfuncs to the GtkWidgetClass. The patch also renames the implementations of the vfuncs in widgets to include the word "preferrred".
* Point to the new GtkWidget align and margin propertiesMatthias Clasen2010-09-191-0/+4
|
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-12/+12
|
* gtk/gtkalignment.c: use accessor functions to access GtkWidgetJavier Jardón2010-08-221-1/+1
|
* GtkAlignment: move public members to private structureJavier Jardón2010-07-141-80/+85
|
* Use GtkBin accessorsJavier Jardón2010-07-131-8/+15
|
* Use accessor functions to acces GtkContainerJavier Jardón2010-07-131-4/+4
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Mass api change from GtkExtendedLayout --> GtkSizeRequestTristan Van Berkom2010-06-181-38/+38
| | | | | | | | | | | | | | | | | | | | This commit makes a few massive changes to the extended layout code: a.) gtkextendedlayout.c --> gtksizerequest.c b.) _is_height_for_width --> get_request_mode() c.) get_desired_size(), get_desired_width(), get_desired_height() --> get_size(), get_width(), get_height() This is the first partial commit and only effects portions of the tree that have already been merged in master (in order to easily cherry pick this commit). Conflicts: gtk/Makefile.am gtk/gtk.h gtk/gtk.symbols gtk/gtkextendedlayout.h
* Merge branch 'native-layout-incubator'Matthias Clasen2010-04-301-40/+112
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.in docs/reference/gtk/tmpl/gtkaction.sgml docs/reference/gtk/tmpl/gtkbuilder.sgml gdk/directfb/gdkkeys-directfb.c gdk/gdk.symbols gdk/x11/gdkwindow-x11.c gtk/gtkalignment.c gtk/gtkbox.c gtk/gtkbutton.c gtk/gtkcelleditable.c gtk/gtkfilechooser.c gtk/gtkframe.c gtk/gtkinvisible.c gtk/gtklabel.c gtk/gtkscrolledwindow.c gtk/gtksearchenginetracker.c gtk/gtktextview.c gtk/gtktoolbutton.c gtk/gtktooltip.c gtk/gtkviewport.c gtk/gtkwidget.c gtk/gtkwindow.c po-properties/ca@valencia.po po-properties/es.po po-properties/kn.po po-properties/mr.po po/ca.po po/ca@valencia.po po/el.po po/es.po po/gl.po po/id.po po/kn.po po/lv.po po/mr.po po/th.po
| * GtkAlignment now tries to allocate natural size to the child if available ↵Tristan Van Berkom2010-04-201-13/+27
| | | | | | | | and does the height-for-width calculation depending on allocation.
| * Mega commit to change ->get_desired_size() for ->get_desired_width/height().Tristan Van Berkom2010-04-121-22/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes gtk_extended_layout_get_desired_size() for per dimension variants. Furthermore this commit reverts the actions done in size-groups for now as it needs a different approach. The natural width/height parameters added to aux_info have been changed for a per width cache for heights and a per height cache for widths. gtk-demo is still working, currently sizegroups are not taken into account as mentioned above - size groups need to be alerted both when the widths and heights are updated independantly and then that information needs to repropagate also to other extended layout implementors.
| * Implement GtkExtendedLayout on AlignmentTristan Van Berkom2010-04-061-32/+50
| | | | | | | | | | | | | | GtkAlignment is already using the height for width api to align the child in the cases where space is available, but also needed to implement the extended layout in order to reflect natural sizes to parent widgets.
| * Fixed classes to call gtk_extended_layout_get_desired_size_again()Tristan Van Berkom2010-04-061-1/+1
| | | | | | | | The previous patch removes the ambiguous gtk_widget_get_desired_size().
| * Fixed extended layout implementors to not call ->get_desired_size() directlyTristan Van Berkom2010-04-031-1/+1
| | | | | | | | | | | | | | Getting the desired size of a GtkWidget must always be done with gtk_widget_get_desired_size() and never with gtk_extended_layout_get_desired_size() directly as the former passes through size group logic and updates the widget->requisition cache.
| * Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)Javier Jardón2010-04-031-1/+1
| | | | | | | | | | | | Use new API instead: gtk_widget_set_has_window () https://bugzilla.gnome.org/show_bug.cgi?id=69872
| * Deprecate widget flag: GTK_WIDGET_VISIBLEJavier Jardón2010-04-031-2/+2
| | | | | | | | | | | | Use gtk_widget_get_visible() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
| * [annotations] Add allow-noneJohan Dahlin2010-04-031-4/+4
| | | | | | | | | | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
| * native-layout: Introduce GtkExtendedLayout interface.Johannes Schmmid2009-12-141-3/+13
| |
* | [docs] Move documentation to inline comments: GtkAlignment.Tadej Borovšak2010-04-181-0/+54
| | | | | | | | | | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611956 Signed-off-by: Javier Jardón <jjardon@gnome.org>
* | Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)Javier Jardón2010-03-061-1/+1
| | | | | | | | | | | | Use new API instead: gtk_widget_set_has_window () https://bugzilla.gnome.org/show_bug.cgi?id=69872
* | Deprecate widget flag: GTK_WIDGET_VISIBLEJavier Jardón2010-03-011-2/+2
| | | | | | | | | | | | Use gtk_widget_get_visible() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
* | [annotations] Add allow-noneJohan Dahlin2010-02-191-4/+4
|/ | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Bug 561539 - Fix warnings when size allocations fall short of border widthTristan Van Berkom2008-11-241-2/+2
| | | | | | | | * gtk/gtkalignment.c: Bug 561539 - Fix warnings when size allocations fall short of border width and padding. svn path=/trunk/; revision=21805
* Revert name changeCody Russell2008-07-011-1/+1
| | | | svn path=/trunk/; revision=20724
* Practically everything changed.Cody Russell2008-06-301-1/+1
| | | | | | | | | | | | | 2008-06-30 Cody Russell <bratsche@gnome.org> * Practically everything changed. Change all references of GIMP Toolkit (and variations of it) to GTK+ Toolkit, showing no mercy at all to our beloved ancestry. (#540529) svn path=/trunk/; revision=20709
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* gtk/gtkalignment.c gtk/gtkarrow.c gtk/gtkbbox.c gtk/gtkcalendar.c removeMichael Natterer2008-05-211-3/+1
| | | | | | | | | | | | | 2008-05-21 Michael Natterer <mitch@imendio.com> * gtk/gtkalignment.c * gtk/gtkarrow.c * gtk/gtkbbox.c * gtk/gtkcalendar.c * gtk/gtkscrolledwindow.c: remove PROP_LAST enum values. svn path=/trunk/; revision=20121
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Boilerplate reductionMatthias Clasen2006-05-021-28/+1
|
* Various cleanups. (#315360, Kjartan Maraas)Matthias Clasen2005-09-131-2/+0
| | | | | | 2005-09-13 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: Various cleanups. (#315360, Kjartan Maraas)
* Intern some more strings.Matthias Clasen2005-09-011-1/+1
| | | | | | | | | 2005-09-01 Matthias Clasen <mclasen@redhat.com> * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string().
* Intern type names in code generated by glib-mkenums, too.Matthias Clasen2005-08-311-1/+1
| | | | | | | | | | | | | 2005-08-31 Matthias Clasen <mclasen@redhat.com> * gdk/Makefile.am: * gtk/Makefile.am: Intern type names in code generated by glib-mkenums, too. * gtk/*.c: * gdk/x11/*.c: * gdk/*.c: Intern type names before registering the type to avoid unnecessary copies.
* Flip the paddingMatthias Clasen2005-05-101-4/+3
|
* Use canonical names for g_object_notify() as well.Matthias Clasen2005-03-261-4/+4
| | | | | | | | 2005-03-26 Matthias Clasen <mclasen@redhat.com> * gtk/*.c: * gdk/gdkdisplaymanager.c: Use canonical names for g_object_notify() as well.
* Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITEMatthias Clasen2005-03-221-10/+9
| | | | | | | | | | | | 2005-03-21 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprivate.h: Define macros GTK_PARAM_READABLE, GTK_PARAM_WRITABLE, GTK_PARAM_READWRITE which are like their G_ counterparts, but also mark the name, nick and blurb as static. * gtk/*.c: Mark param spec strings as static, using the new macros.
* : Mark param spec strings as static.Matthias Clasen2005-03-211-11/+13
|