Awesome patch! I had the same problem and was about to fix it! Great! Daniel Juyung Seo (SeoZ)
On Fri, Aug 23, 2013 at 11:05 AM, Ryuan Choi - Enlightenment Git < no-re...@enlightenment.org> wrote: > ryuan pushed a commit to branch master. > > commit b569684bc63dc301d8e577b9af921f6466f97ddb > Author: Ryuan Choi <ryuan.c...@gmail.com> > Date: Fri Aug 23 10:44:49 2013 +0900 > > elm_entry: "elm.guide" part should be aligned to "elm.text" part. > > Attached test code for guide part. > In addition, updated supported part for "guide" in documentation. > --- > data/themes/widgets/entry.edc | 4 ++-- > src/bin/test_entry.c | 11 +++++++++++ > src/lib/elm_entry.h | 1 + > 3 files changed, 14 insertions(+), 2 deletions(-) > > diff --git a/data/themes/widgets/entry.edc b/data/themes/widgets/entry.edc > index 00fcc96..baec9d6 100644 > --- a/data/themes/widgets/entry.edc > +++ b/data/themes/widgets/entry.edc > @@ -1026,7 +1026,7 @@ group { name: "elm/entry/base-single/default"; > text { > style: "entry_single_textblock_guide_style"; > min: 0 1; > - align: 0.0 0.0; > + align: 0.0 0.5; > } > } > description { state: "hidden" 0.0; > @@ -1197,7 +1197,7 @@ group { name: "elm/entry/base-password/default"; > text { > style: "entry_single_textblock_guide_style"; > min: 0 1; > - align: 0.0 0.0; > + align: 0.0 0.5; > } > } > description { state: "hidden" 0.0; > diff --git a/src/bin/test_entry.c b/src/bin/test_entry.c > index 3e1d3ee..9217697 100644 > --- a/src/bin/test_entry.c > +++ b/src/bin/test_entry.c > @@ -300,6 +300,17 @@ test_entry_scrolled(void *data __UNUSED__, > Evas_Object *obj __UNUSED__, void *ev > evas_object_show(en); > elm_box_pack_end(bx, en); > > + /* entry with guide */ > + en = elm_entry_add(win); > + elm_entry_scrollable_set(en, EINA_TRUE); > + evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, 0.0); > + evas_object_size_hint_align_set(en, EVAS_HINT_FILL, 0.5); > + elm_scroller_policy_set(en, ELM_SCROLLER_POLICY_OFF, > ELM_SCROLLER_POLICY_OFF); > + elm_object_part_text_set(en, "guide", "This string is guide"); > + elm_entry_single_line_set(en, EINA_TRUE); > + evas_object_show(en); > + elm_box_pack_end(bx, en); > + > /* password entry */ > en = elm_entry_add(win); > elm_entry_scrollable_set(en, EINA_TRUE); > diff --git a/src/lib/elm_entry.h b/src/lib/elm_entry.h > index 1f7a63b..d1cbfdd 100644 > --- a/src/lib/elm_entry.h > +++ b/src/lib/elm_entry.h > @@ -249,6 +249,7 @@ > * > * Default text parts of the entry that you can use for are: > * @li "default" - text of the entry > + * @li "guide" - placeholder of the entry > * > * Supported elm_object common APIs. > * @li @ref elm_object_signal_emit > > -- > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel