gnome-shell/src/st
Dan Winship 5331d3e360 [St] Make allocation handling more consistent
In StBin, StBoxLayout, and StTable, if a child has a potential
allocation that is larger than its preferred size, we give it its
preferred size instead. However, the corresponding
get_preferred_height/width methods were not making the same
assumption, which meant that if we had more width than the widget
wanted, we would allocate it its preferred width, but with the height
that corresponded to the larger width.

Fix this by defining new helpers _st_actor_get_preferred_width() and
_st_actor_get_preferred_height() and using them everywhere. Also, make
StBin and StTable use _st_allocate_fill() rather than having
nearly-identical duplicate copies of the code.

https://bugzilla.gnome.org/show_bug.cgi?id=609848
2010-02-16 14:06:39 -05:00
..
st-adjustment.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-adjustment.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-bin.c [St] Make allocation handling more consistent 2010-02-16 14:06:39 -05:00
st-bin.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-border-image.c Rename StThemeImage to StBorderImage 2009-10-01 14:41:19 -04:00
st-border-image.h Rename StThemeImage to StBorderImage 2009-10-01 14:41:19 -04:00
st-box-layout-child.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-box-layout-child.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-box-layout.c [St] Make allocation handling more consistent 2010-02-16 14:06:39 -05:00
st-box-layout.h [St] Add st_box_layout_move_child and st_box_layout_insert_actor 2010-01-13 15:13:20 -05:00
st-button.c [StButton] Hold ref to self until animation completes 2010-01-26 14:28:57 -05:00
st-button.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-clickable.c Import ShellButtonBox as StClickable 2009-11-23 14:33:48 -05:00
st-clickable.h Import ShellButtonBox as StClickable 2009-11-23 14:33:48 -05:00
st-clipboard.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-clipboard.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-drawing-area.c Move ShellDrawingArea to StDrawingArea 2009-11-23 14:33:48 -05:00
st-drawing-area.h Move ShellDrawingArea to StDrawingArea 2009-11-23 14:33:48 -05:00
st-entry.c Use clutter_actor_destroy in dispose, add _dispose where needed 2009-10-09 16:19:33 -04:00
st-entry.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-enum-types.c.in Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-enum-types.h.in Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-im-text.c Use GtkIMContext instead of ClutterIMContext 2009-10-06 14:48:32 -04:00
st-im-text.h Use GtkIMContext instead of ClutterIMContext 2009-10-06 14:48:32 -04:00
st-label.c [St] Implement text-decoration: [underline|strikethrough] 2009-12-18 11:20:05 -05:00
st-label.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-marshal.list Import Mx core as ST 2009-10-01 14:41:16 -04:00
st-overflow-box.c [StOverflowBox] Vertical box which skips painting underallocated children 2009-12-18 10:01:36 -05:00
st-overflow-box.h [StOverflowBox] Vertical box which skips painting underallocated children 2009-12-18 10:01:36 -05:00
st-private.c [St] Make allocation handling more consistent 2010-02-16 14:06:39 -05:00
st-private.h [St] Make allocation handling more consistent 2010-02-16 14:06:39 -05:00
st-scroll-bar.c [StScrollbar] Allocate steppers according to size requests 2010-02-10 10:13:00 +01:00
st-scroll-bar.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-scroll-view.c Use clutter_actor_destroy in dispose, add _dispose where needed 2009-10-09 16:19:33 -04:00
st-scroll-view.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-scrollable.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-scrollable.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-shadow-texture.c [StShadowTexture] Fix invalid unref of CoglHandle 2010-01-26 13:03:43 -05:00
st-shadow-texture.h Implement -st-shadow for StWidget 2010-01-05 21:48:09 +01:00
st-shadow.c Implement -st-shadow for StWidget 2010-01-05 21:48:09 +01:00
st-shadow.h Implement -st-shadow for StWidget 2010-01-05 21:48:09 +01:00
st-subtexture.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-subtexture.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-table-child.c [StTable] fix x-align/y-align properties to be StAlign, not double 2010-02-16 14:06:39 -05:00
st-table-child.h [StTable] fix x-align/y-align properties to be StAlign, not double 2010-02-16 14:06:39 -05:00
st-table-private.h Add emacs modelines to all .c and .h files that were missing them 2009-10-27 11:27:45 -04:00
st-table.c [St] Make allocation handling more consistent 2010-02-16 14:06:39 -05:00
st-table.h Port StTable to StThemeNode 2009-10-01 14:46:33 -04:00
st-texture-cache.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-texture-cache.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-texture-frame.c Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-texture-frame.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-theme-context.c Add support for inline styles 2009-10-01 14:41:18 -04:00
st-theme-context.h Import stylesheet code from hippo-canvas 2009-10-01 14:41:18 -04:00
st-theme-node.c Implement radial gradients for StWidget 2010-01-11 23:38:34 +01:00
st-theme-node.h Implement radial gradients for StWidget 2010-01-11 23:38:34 +01:00
st-theme-private.h Work around libcroco < 0.6.2 parsing bug for 'rgba' 2009-10-05 16:25:38 -04:00
st-theme.c Add functions to dynamically load/unload stylesheets 2009-12-01 15:00:56 -05:00
st-theme.h Add functions to dynamically load/unload stylesheets 2009-12-01 15:00:56 -05:00
st-tooltip.c [StTooltip] Fix _get_preferred_width 2009-11-12 11:42:00 -05:00
st-tooltip.h Add emacs mode-lines to ST sources 2009-10-01 14:41:18 -04:00
st-types.h Centralize computations of border and padding into StThemeNode 2009-10-01 14:41:19 -04:00
st-widget.c Remove C99 use of non-constant initializers 2010-02-08 14:04:45 -05:00
st-widget.h [StWidget] add API support for right-to-left UI 2009-11-16 11:46:09 -05:00
test-theme.c StThemeNode: Add border-radius support 2009-10-01 14:41:18 -04:00
test-theme.css StThemeNode: Add border-radius support 2009-10-01 14:41:18 -04:00