~unity-team/nux/nux.fix-746761

Viewing all changes in revision 312.

  • Committer: Jay Taoko
  • Date: 2011-04-07 13:57:26 UTC
  • mfrom: (302.2.1 bug-741830)
  • Revision ID: jay.taoko@canonical.com-20110407135726-qbj8zvg5427k0a5s
On behalf of Nico van der Walt:

Introduced a new variable _clipping in the StaticText class. If this is set to anything other than 0 ellipses will be drawn at the end of the string for strings that won't fit inside the allocated space in the combo box text area. Appropriate methods for manipulating this attribute are also new (GetClipping and SetClipping).

The default value for _clipping is initialized to 0 in order to maintain compatibility with existing implementations of the StaticText class.

A new signal handler (RecvGeometryChanged) was added to ComboBoxSimple that adjusts the clipping whenever the geometry of _combo_box_area is changed.

Fix Bug #741830

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: