Commit Graph

39 Commits

Author SHA1 Message Date
Daniel Juyung Seo 6ac249e370 elc_player: ELM_SAFE_FREE adoption.
1. ELM_FREE_FUNC -> ELM_SAFE_FREE
2. There were a lot of suggestions and consideration in the mailing list.
ELM_SAFE_FREE will be used only when it checks the pointer, deletes it, and initializes it to NULL.

ex)
if (timer)
  {
     ecore_timer_del(timer);
     timer = NULL;
  }
=>
ELM_SAFE_FREE(timer, ecore_timer_del);

My first aim was to remove many human mistakes but it looks like people want more optimized code in a code level.
So this macro will be used only for reducing 5 lines of code into 1 line.
Otherwise, I will just call xxx_del() manually.

3. ELM_SAFE_FREE can be used for other del or free functions such as ecore_job_del, ecore_animator_del, eina_stringshare_del, free, ...
2013-05-29 20:11:47 +09:00
Daniel Juyung Seo ac25946a19 elm: introduce ELM_FREE_FUNC for code quality enhancement.
There are pros and cons but this
1. reduces human mistakes.
2. enhances readability.
3. enhances code quality.
4. removes future bug.
5. was adopted from enlightenment.

This is not all. I will work on enhancing elementary more and more.
2013-05-22 02:24:02 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo f1da69d77a elc_player: set internal variable to NULL after deleting the timer.
This fixes elc_player crash issue.
2013-04-09 17:00:02 +09:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03:00
Arvind R 8ba138ba2c From: Arvind R <arvino55@gmail.com>
Subject: Re: [e-users] 3 small corrections in elc_player

Hi,
1. remove __UNUSED__ for parameter that is used.
2. emit a "elm,player,play" signal as is done in _pause to keep the
state of pause/play buttons in sync.
3. Correct double_to_string which misses out subtracting hours to get
seconds.



SVN revision: 83855
2013-02-12 11:22:05 +00:00
Carsten Haitzler 533707cc6e let's make the player widget only udpate every 0.25 sec... or so form
playback info. :)



SVN revision: 83854
2013-02-12 11:10:55 +00:00
Daniel Zaoui cdd1eea853 Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 83803
2013-02-10 07:52:31 +00:00
Daniel Zaoui 0c915e9023 Cleaning: removed include Eo.h in widgets because it was indirectly included by Elementary.h
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79682
2012-11-26 09:29:01 +00:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
Gustavo Lima Chaves 84b23046da [elm] Now those comments make less sense, remove.
SVN revision: 74768
2012-08-01 21:05:16 +00:00
Gustavo Lima Chaves 2cf7831606 [elm] Player inheritable.
SVN revision: 74697
2012-07-31 22:07:23 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Tom Hacohen f5df97e869 Elm: Fixed warnings when emotion is not available.
SVN revision: 70959
2012-05-13 08:37:06 +00:00
Gustavo Lima Chaves 643df97343 [Elm] Video and player now layouts, too.
SVN revision: 70741
2012-05-03 22:44:21 +00:00
Carsten Haitzler c0f2f4be91 REVERT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
this breaks theme api. so NO! come back with a version that doesn't
break it.



SVN revision: 70679
2012-05-03 01:19:05 +00:00
Gustavo Lima Chaves 0335e1a03a [Elm] Video and player now layouts, too.
SVN revision: 70664
2012-05-02 17:01:43 +00:00
Jihoon Kim b7c213af86 elementary: ignore key event of keypad when NumLock is turned on in calendar, diskselector, gengrid, genlist, and player
SVN revision: 69939
2012-04-06 00:56:06 +00:00
Daniel Juyung Seo 4801d7f5c1 elm elm_object: Fixed part content set hooks.
1. delete old content object
 2. check whether new content object is same as old content object
 3. added some doxygen description.

SVN revision: 69743
2012-03-29 11:09:40 +00:00
Daniel Juyung Seo d71a77419a elm elc_player.c: Fixed slider usage.
SVN revision: 69697
2012-03-28 08:42:13 +00:00
Mike Blumenkrantz d45d7a6532 properly #ifdef out entire function
SVN revision: 69445
2012-03-16 03:35:14 +00:00
Jiyoun Park 28cd02b8c6 remove code related with
elm_player_video_set
which was deprecated


SVN revision: 69105
2012-03-09 13:57:25 +00:00
Sanjeev BA e6bc7da5f4 make API naming consistent for elm_video API.
Signed-off-by: Sanjeev BA <eflelev8@gmail.com>

SVN revision: 68202
2012-02-21 06:12:51 +00:00
ChunEon Park fb3f515001 elementary/player - removed debugging printf
SVN revision: 67316
2012-01-19 05:04:24 +00:00
ChunEon Park ac95fc8afb elementary/player - fixed incorrect argument.
SVN revision: 67315
2012-01-19 05:01:58 +00:00
Cedric BAIL 62838a114e elementary: do not do any call after smart callback (object could have been destroyed).
SVN revision: 65814
2011-12-02 14:08:24 +00:00
Boris Faure 1112d30a41 elm: change elm_object_content_part_set/get/unset to elm_object_part_content_set/get/unset
SVN revision: 65349
2011-11-17 21:02:31 +00:00
ChunEon Park 085e500875 elemlentary - minor changes.
guarantee the compatibility for priveous content_set/get/unset changes. 



SVN revision: 65320
2011-11-17 00:42:14 +00:00
ChunEon Park 236192cd9a elementary - modified content_set/get/unset part names to be simple names.
Previous part names are just the swallow part names
but in modified version, the part names chaned to simpler meaning names to use.

i.e for button

elm_object_content_part_set(button, "elm.swallow.icon", icon);
-> elm_object_content_part_set(button, "icon", icon);




SVN revision: 65295
2011-11-16 12:51:53 +00:00
ChunEon Park a064a70dc7 elementary/player - fixed build error
sorry :p



SVN revision: 64544
2011-10-31 04:49:56 +00:00
ChunEon Park 47cf9628e6 elementary/player - applied content_set/get/unset
finally, done!



SVN revision: 64543
2011-10-31 03:58:44 +00:00
ChunEon Park 8d85b136bf elementary/button -> use elm_object_content_set/get/unset
SVN revision: 64370
2011-10-25 01:23:25 +00:00
Cedric BAIL 33254e8736 elementary: turn on priority when it make sense.
SVN revision: 63770
2011-10-03 10:33:31 +00:00
Cedric BAIL 71bc2bd8da elementary: forgotten patch that cleanup callback.
SVN revision: 63212
2011-09-05 20:09:02 +00:00
Gustavo Lima Chaves 31a3e6180a [elementary] All docs to elm's header, as Raster wishes.
Discomfitor, now it's time to split the header and/or write another novel.



SVN revision: 62315
2011-08-10 21:03:21 +00:00
Cedric BAIL f5d9c45f1b elementary: add the basic of an elm_player object.
This object should be linked with an elm_video to be
usefull at all. If people have some graphical skill,
the kind of thing I lack, you are welcome to improve
this player !



SVN revision: 61053
2011-07-05 14:05:59 +00:00