[text] Add single-line-mode to ClutterText
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 7 Jan 2009 00:25:24 +0000 (00:25 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 7 Jan 2009 00:25:24 +0000 (00:25 +0000)
commit43f82332dd918c7e13e7896523a2508430cfa6f0
treeab6eca719e79fa5ee40844d454ab6ff1f23d1548
parent8182b354b167681a89ef9c3354c1278378e4ea2c
[text] Add single-line-mode to ClutterText

Allow using ClutterText as a single line text field. This is useful for
text fields that accept just a single line of contents by default, and
respond to the Enter key press to execute some action.

The :single-line-mode property enables this behaviour inside ClutterText
by clipping and scrolling the contents of the PangoLayout if they do
not fit the allocated width of the Text actor.
clutter/clutter-text.c
clutter/clutter-text.h