Page MenuHomePhabricator

Cannot use transit on an entry/label : contents are not updated unless you move the mouse over the window
Open, NormalPublic


Try this simple example :

//Compile with:
//gcc -g entry.c -o entry `pkg-config --cflags --libs elementary`

#include <Elementary.h>

elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
   Evas_Object *win, *label;


   win = elm_win_util_standard_add("scroller", "Scroller");
   elm_win_autodel_set(win, EINA_TRUE);

   Evas_Object* box = elm_box_add(win);
   evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_win_resize_object_add(win, box);

   evas_object_resize(win, 200, 200);

   label = elm_entry_add(win);
   evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, 0);
   evas_object_size_hint_align_set(label, EVAS_HINT_FILL, EVAS_HINT_FILL);
   elm_object_text_set(label, "lkdsjflsjdf sdkfj skjs fkjslskdj fklsjd flskjf sdljf sdlk fjsdlkfj sdlkjf lskdjflksdj fklsdj flksdjlsdjflksdj flksjadflkjsdlkf jsdlkfj lksdjflksdj flksdjf lksdjf lksdjflksdjflksdjf lksdjf lskdjf sldjf sldkfj lksd jflksdjf lsdkjfsdlkfj sdlfjsdlkfj asdlk fsdlkj fsdklj f");
   elm_box_pack_end(box, label);

   Elm_Transit *trans = elm_transit_add();
   elm_transit_object_add(trans, label);
   elm_transit_event_enabled_set(trans, EINA_TRUE);
   elm_transit_effect_color_add(trans, 0, 0, 0, 0, 0, 255, 0, 255);
   elm_transit_duration_set(trans, 3);
   elm_transit_objects_final_state_keep_set(trans, EINA_TRUE);


   return 0;

The text should go from transparent to green but it does not update.
With an entry, if you move the mouse over it, the parts over the mouse update.
With a label it does not update even with the mouse.

It works with a button.
I didn't test with other widgets.

Should transit work with every objects/widgets?

indefini created this task.Jan 29 2018, 5:37 PM
bu5hm4n reassigned this task from raster to herdsman.Jun 11 2018, 1:35 AM
bu5hm4n triaged this task as Normal priority.
bu5hm4n added a subscriber: raster.
zmike edited projects, added Restricted Project; removed efl.Jun 11 2018, 6:56 AM
bu5hm4n edited projects, added efl: widgets; removed Restricted Project.Jun 11 2018, 9:15 AM
zmike added a subscriber: Hermet.Jan 17 2019, 11:38 AM