Commit Graph

68 Commits

Author SHA1 Message Date
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
ChunEon Park 97c6cc2d81 elementary/button,label,bg - i have no idea but elm_layout_theme_set() should be called in smart_add().
this fixes the hoversel.



SVN revision: 84275
2013-02-21 05:57:05 +00:00
ChunEon Park ade43adfd9 elementary/widgets - if the orient mode is changed, apply a default only if the style doesn't applied anything. other wise, use the preivouse one.
SVN revision: 84034
2013-02-18 05:13:58 +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 d93ee414dd [elm] Bg inheritable.
SVN revision: 74698
2012-07-31 22:07:28 +00:00
Gustavo Lima Chaves 584c53c1be [elm] New elm_widget_add() usage spread.
SVN revision: 74148
2012-07-18 21:03:39 +00:00
Daniel Juyung Seo ca4d614887 elm elm_bg.c: Fixed formatting.
SVN revision: 71482
2012-05-29 01:28:15 +00:00
Cedric BAIL a666de6518 elementary: reload theme when it change on disk.
NOTE: This is not very robust yet. But that's not related to this patch.
You can see the issue when switching between two different theme in
elementary_config. At some point elementary_test start to loose information.


SVN revision: 70895
2012-05-09 10:46:14 +00:00
Gustavo Lima Chaves 8723fd9e76 [Elm] Elm bg now happily inherits from elm
layout.



SVN revision: 70709
2012-05-03 22:41:32 +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 837c6d2354 [Elm] Elm bg now happily inherits from elm
layout.



SVN revision: 70632
2012-05-02 16:58:16 +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 7908a77ad8 elm: Fixed formatting.
SVN revision: 69700
2012-03-28 09:02:22 +00:00
Gustavo Lima Chaves 02aa57d92e [Elm] Ok, since we don't have time to address all functions, just
return val. on the most critical one: file_set (on bg).



SVN revision: 68856
2012-03-06 22:35:27 +00:00
Gustavo Lima Chaves c74b07247b [Elm] Now applying some more ret. values on bg.
Also bumping docs, as I had to fix them.



SVN revision: 68854
2012-03-06 22:12:42 +00:00
Jiyoun Park 6bfd5967e4 remove deprecated code related with elm_bubble and elm_bg_overlay.
SVN revision: 68775
2012-03-06 06:54:02 +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 31678440d9 elementary/bg - content_set/get/unset, fixed indentation
SVN revision: 64484
2011-10-28 08:31:42 +00:00
Rafael Antognolli c8e506d9ed elementary: add some examples and a better explanation to elm_bg.
The example code was copied from elementary_test, but now there are 3
pages (one for each example) explaining its usage.



SVN revision: 60394
2011-06-16 14:10:23 +00:00
Daniel Juyung Seo 77450413d7 Elementary src/lib: Removed all trailing whitespaces.
SVN revision: 58492
2011-04-08 14:36:29 +00:00
ChunEon Park 5176a3f867 elementary / entry, list, scroller, fileselector_button, config, photocam, map, pan, bg, store, priv, pager, conform, box, clock, flipselector
fixed indentation, removed white spaces.



SVN revision: 58267
2011-04-01 19:08:56 +00:00
ChunEon Park 0369dbff50 elementary / calendar, button, colorselector, bg, cnp_helper, bubble, check, box, clock - removed white spaces
SVN revision: 58253
2011-04-01 11:35:07 +00:00
Carsten Haitzler f74c18a02e make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.



SVN revision: 58242
2011-04-01 06:08:02 +00:00
ChunEon Park 11365c7445 fixed white trailing
SVN revision: 57962
2011-03-22 07:51:17 +00:00
ChunEon Park 8bc2330ac2 elementary / elm_bg - modified minor things.
changed int to Evas_Coord
appended EINA_NONNULL to a API in header. 



SVN revision: 57031
2011-02-14 17:13:40 +00:00
ChunEon Park 878bef7fa7 elementary/elm_bg - added new api elm_bg_load_size_set
SVN revision: 57029
2011-02-14 16:38:18 +00:00
3v1n0 ff67ce31fb Always check for valid evas object.
If you try to create a new widget, you must be sure that the parent
is really an evas object.

With the previous implementation it was possible to call an _add
function for an elementary widget with any non-null pointer as parent
eventually causing crashes (like with the elm_box).


SVN revision: 55521
2010-12-12 19:12:43 +00:00
helen 030b697366 EINA_SAFETY_ON_NULL_RETURN
Checking parameters with EINA_SAFETY_ON_NULL_RETURN and
EINA_SAFETY_ON_NULL_RETURN_VAL in Elementary

SVN revision: 55188
2010-12-03 14:08:33 +00:00
helen 59351f8aac Fix elm_bg_file_set/get
If the file is a NULL pointer, it will delete the old imagem and set its
internal strings about file and group to NULL.
In the get function if the file argument is null does not mean that
it will not retrieve the group too.

SVN revision: 54986
2010-11-25 15:16:48 +00:00
Tiago Rezende Campos Falcao 3a6369174d Revert. Remove INVALID enum option
SVN revision: 53926
2010-10-27 17:01:58 +00:00
Tiago Rezende Campos Falcao 116cd3c6dc Setters/Getters fix 1.
Setters can't receive const pointers.
All setter need corresponding getter.

In this patch, i adjust getter in: Bg, Box, Icon, Image, Win and Main.

SVN revision: 53917
2010-10-27 14:38:37 +00:00
Christopher Michael 22e8a30e9b Fix elm_bg overlay issue:
The problem was that when you toggle show/hide overlay in
ELM_BG_CENTER mode, the 'image' itself would not retain it's proper
size (it would fill the whole swallow and thus not be 'centered'
anymore). Solved by setting hint_min/max on the image when in centered
mode.

NB: Raster this fixes that elm_bg issue I mentioned the other day so
all is well now ;)



SVN revision: 53476
2010-10-15 23:03:56 +00:00
Leandro Pereira c245c6483f [Elementary] Code cleanups, as suggested by clang static analyzer.
SVN revision: 53472
2010-10-15 21:26:11 +00:00
Tiago Rezende Campos Falcao 738bfaa747 Review of content setters, getters and unsetters
Revised the parent, icon, end and content setter and getters of
elementary objects.
Review to smart objects and widgets items will be the next steps.

SVN revision: 53425
2010-10-14 18:54:42 +00:00
Christopher Michael 6a3bfc1a6a Add 2 new options for bg image: Center & Stretch.
Add a new Test for BG Options.
Add a new 'bg_overlay' in objects/test.edc for testing bg overlay stuff.

NB: There is an issue here that I cannot seem to get straight (perhaps
pebkac, not sure)...but basically it seems that showing/hiding the
overlay causes the other swallows of the edc to get recalc'd and makes
the 'image' not work well w/ Center.



SVN revision: 53307
2010-10-12 14:38:46 +00:00
Christopher Michael 4595005550 Better name(s) for the bg option enum.
SVN revision: 53302
2010-10-12 10:30:32 +00:00
Christopher Michael c178a21aca Add ability for elm_bg to have a color rectangle.
Add ability for elm_bg to have 'overlays' such as animated fog, etc.
Normalize elm_bg internal object names:
  Rename wd->img to the more generic wd->base.
Remove erroneous evas_object_resize(wd->base, 0, 0) (not needed).
Fix typo in doxy comment.
Add doxy for new functions (color_set, overlay_set)
Add swallow part in edc for bg color rectangle.
Fix overlay swallow part offsets.



SVN revision: 53299
2010-10-12 08:46:17 +00:00
Christopher Michael 52ebe2e754 Make 'Tiled' actually do a tile :)
SVN revision: 53292
2010-10-12 04:34:42 +00:00
Christopher Michael 1921dd5802 Widget_Data gets passed to the _custom_resize callback as 'data'
already, so no need to refetch it.



SVN revision: 53291
2010-10-12 04:21:50 +00:00
Christopher Michael 042a9432d3 Add option for elm_bg to be Tiled, Scaled (more options to come).
SVN revision: 53290
2010-10-12 04:12:48 +00:00
Christopher Michael 76f19fc03a String.h is already included via Elementary.h
SVN revision: 53280
2010-10-12 02:38:19 +00:00
김지훈 d99918389f From: 김지훈 <imfine98@gmail.com>
I changed elementary source code related to focus functions.
Eina_Bool is used instead of integer type in those functions.



SVN revision: 52839
2010-09-28 04:28:14 +00:00
Carsten Haitzler 23d81913d8 ok strange bg bug when theme changing on the fly. why?
SVN revision: 52277
2010-09-14 23:42:50 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00