Commit Graph

129 Commits

Author SHA1 Message Date
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
Tiago Rezende Campos Falcao 670ca32f20 Event Callback
SVN revision: 55061
2010-11-29 13:56:30 +00:00
Carsten Haitzler 01e71a2649 well... many things - genlist, when it is processign quue, or u
add.del items will try and stick to viewing an acnhor item. it also
handles wrapping text properly now if style has such a thing - a test
style with that is there too (message style) for now - found isasue in
edje with textblock styles - doesnt change on state change. but anyway
- re-wrapping text works.. and it progressively processes the genlist
blocks to re-calc sizes etc. etc. so you dont block and so-on. i5ts
not too shabby. as for that - store has a generic struct type reader
now and is being tested... and get rid of unused var.



SVN revision: 54738
2010-11-20 08:43:43 +00:00
Carsten Haitzler b74087982a no debug!
SVN revision: 54492
2010-11-12 10:59:44 +00:00
Carsten Haitzler 0584726101 fix focus revert -> reverting should revert only to widgets that say
they CAN be focused :) see conform 2 test. focuse the entry in the
pager then dlete the pager page (pop). before focus vanished. now it
goes back to the top entry as you'd expect.



SVN revision: 54486
2010-11-12 04:16:24 +00:00
Carsten Haitzler 5f8146dff7 comment++!
SVN revision: 54485
2010-11-12 03:13:38 +00:00
Carsten Haitzler 5400a9a7f1 elm theme can be copied, referenced and theme flush tries to ONLY
flush a specific theme if told so (and only those widgets and their
children).



SVN revision: 54169
2010-11-05 08:37:31 +00:00
Bruno Dilly 7c5152ef83 Add cursor getters for elm widgets and items
SVN revision: 54164
2010-11-05 00:46:54 +00:00
Carsten Haitzler 32c2779ac4 mapbuf -> hide/show content absolutely if mapbuf is hidden/shown and
add test.



SVN revision: 54014
2010-10-30 04:01:09 +00:00
Iván Briano ea3dda3527 And let's not expose internal objects when setting signal callbacks on widgets.
SVN revision: 54004
2010-10-29 18:21:58 +00:00
Tiago Rezende Campos Falcao d938999c78 Add missing object type checkers.
The test test_decl now warn about missing API_ENTRY or
ELM_CHECK_WIDTYPE.

SVN revision: 53956
2010-10-28 13:38:55 +00:00
Tiago Rezende Campos Falcao 4672a51b0c Remove tests == 0 and != 0
SVN revision: 53787
2010-10-22 21:41:27 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Iván Briano 3ec77727cc Bring focused object into the visible area
There's still a little bugger that can be noticed with the Scroller 2 test
and elm_conform still needs to handle this as scroller does.


SVN revision: 53778
2010-10-22 18:29:51 +00:00
Tiago Rezende Campos Falcao 6bea70c4e4 Improve Focus manager.
In Window show, the focus is given to first focusable object, or to
window if no exist focusable object. So, suggest create the widgets
before show the window.

If pager is focused, it give the focus to top page in each promote.

SVN revision: 53733
2010-10-21 18:58:43 +00:00
Tiago Rezende Campos Falcao ece2114120 Review type checkers in main and widget
SVN revision: 53732
2010-10-21 18:58:40 +00:00
Tiago Rezende Campos Falcao b8ac8c0e80 Added focus_direction_go entry in API.
Also, exported the focus_cycle.

SVN revision: 53659
2010-10-20 12:38:27 +00:00
Bruno Dilly a109dce782 Fix some wextra complains on elm lib
SVN revision: 53635
2010-10-19 18:24:27 +00:00
Tiago Rezende Campos Falcao b0694a1817 Include docs to focus cycle.
SVN revision: 53618
2010-10-19 14:17:03 +00:00
Iván Briano 0016872d45 Kill double declaration.
Patch by Fidencio again, after I stupidly forgot to remove it in the first one.


SVN revision: 53574
2010-10-18 17:11:18 +00:00
Iván Briano 2235e7f37d Properly check for Smart_Data of subobject before using.
Modified patch by Fabiano Fidencio


SVN revision: 53573
2010-10-18 17:01:11 +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
Carsten Haitzler ee860fa225 handle resize object set better if resize obj already a child of
another elm widget



SVN revision: 53435
2010-10-15 06:04:33 +00:00
Bruno Dilly fcccd7dd5a Clean elm of null pointers dereferences
SVN revision: 53399
2010-10-14 14:12:26 +00:00
Bruno Dilly 9fa9c659e5 Remove dead assignments from elementary
The only one remaining is on index code, related to the not yet
implemented horizontal mode.



SVN revision: 53396
2010-10-14 14:10:33 +00:00
Tiago Rezende Campos Falcao f17463a37f Add Object name in dot dump
Now can generate graphs like this:
https://trac.profusion.mobi/~tiago/editje_elm_dump.png

Call elm_object_tree_dot_dump(obj, "file.dot")
and use $ dot -Tpng file.dot -ofile.png

SVN revision: 53205
2010-10-08 20:16:48 +00:00
Tiago Rezende Campos Falcao 9ff54ffc12 Fix event propagation in elementary.
Need set ON_HOLD, and check it.

SVN revision: 53194
2010-10-08 16:27:04 +00:00
Tiago Rezende Campos Falcao 7b9804f31a Don't add again one child to the same parent
SVN revision: 53193
2010-10-08 16:27:01 +00:00
?\236?\157?\180?\235?\170?\133?\236?\158?\172 acec5fa410 From: ?\236?\157?\180?\235?\170?\133?\236?\158?\172 <mjae.lee@samsung.com>
Subject: patch for elm_widget_show_region_set function
  
back in again. i backed it out because of unrelated issues.



SVN revision: 53184
2010-10-08 12:50:40 +00:00
Tiago Rezende Campos Falcao f24cfca511 Removing unused variables to clean compile
SVN revision: 53146
2010-10-07 14:49:37 +00:00
Carsten Haitzler cddcaed64e aaaagh! free the member list! :)
SVN revision: 53131
2010-10-07 03:53:53 +00:00
Tiago Rezende Campos Falcao d959e612eb Adding custom chain to focus.
Added set, get, unset, prepend and append (relative or not).

Set - overwrite the custom chain
Unset - Delete the custom chain
Get- Return the custom chain
Append - append after the relative object or in the end
Prepend - prepend before the relative object or in the start

SVN revision: 53115
2010-10-06 20:24:22 +00:00
Tiago Rezende Campos Falcao ef18ffa4f4 Set const where need in focus_next_get functions set
SVN revision: 53114
2010-10-06 20:24:19 +00:00
Tiago Rezende Campos Falcao 434ed6e093 Adding elm_widget_focus_cycle method
This will cycle focus inside the sub-tree of one object.

SVN revision: 53113
2010-10-06 20:24:16 +00:00
Tiago Rezende Campos Falcao 198ca1fd95 Rename focus method from cycle to next_get
SVN revision: 53112
2010-10-06 20:24:13 +00:00
Tiago Rezende Campos Falcao c3e3585e83 Optimized Linear Focus Chain
Before, the focus_cycle try pass the focus to next, and try again if
need loop the objects. Now, the focus cycle return possible next
object and if is necessary loop or not to focus this returned object.

SVN revision: 53111
2010-10-06 20:24:09 +00:00
Tiago Rezende Campos Falcao a11d03a921 Adding method to output the elm obj tree in dot.
This Debug search all subobjects from one object and put in file all
sub-tree of elementary objects as dot language in file. After you can
use dot(from graphviz) to generate PNG, SVG,... diagram of objects.

SVN revision: 53035
2010-10-04 18:37:48 +00:00
Tiago Rezende Campos Falcao 3b04b52ba4 Adding debug option in elementary.
SVN revision: 52966
2010-10-01 19:03:23 +00:00
Tiago Rezende Campos Falcao 6fd3d0b565 Better management to focus cycle.
Now Widgets can control between children interation or receive focus
itself. And focus_cycle has now one default code.

And don't pass focus to disabled widgets

SVN revision: 52959
2010-10-01 19:02:55 +00:00
Carsten Haitzler c48b8da243 one more focus case.
SVN revision: 52879
2010-09-29 05:27:42 +00:00
Carsten Haitzler 540bb06455 this should fix reparenting of already focused widgets and properly
reset focus stack.



SVN revision: 52876
2010-09-29 03:59:28 +00:00
Iván Briano 8f7c57b6c7 Little debug function. It helped already to track the scrolled_entry focus problems.
SVN revision: 52861
2010-09-28 19:35:12 +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
Tiago Rezende Campos Falcao a276bb071a Refactoring focus_cycle_next_get and copies
SVN revision: 52813
2010-09-27 21:13:25 +00:00
Brett Nash fba4994c3d Shush GCC up.
SVN revision: 52796
2010-09-27 04:25:10 +00:00
Bruno Dilly 89f23acadc Remove some dead assignments from elementary
SVN revision: 52763
2010-09-25 22:07:55 +00:00
Bruno Dilly 3dd29a961c Implements a way to select if we should use ecore_evas for cursor or only engine
With this commit is now possible to not use theme's cursor (default behevior)
that could be overriding cursors defined by the engine.



SVN revision: 52761
2010-09-25 22:03:37 +00:00
Bruno Dilly 816c77b3fa Add cursor support on Elm using ecore_evas
Basically, get the group from widget theme, using the string passed to
elm_object_cursor_set, get hot spots x and y from the theme (keeps the object
and these two integers on cursor struct).
Cursor is set with ecore_evas_object_cursor_set()

Some functions to change style were added to the api.



SVN revision: 52760
2010-09-25 22:01:19 +00:00
Tiago Rezende Campos Falcao 113ad55d2e Focus Linear Chain for some Widgets
Containers implemented (and with test):
* Win
* Box
* Scroller
* Layout
* Panel

SVN revision: 52686
2010-09-24 14:47:59 +00:00
Tiago Rezende Campos Falcao 66d585a905 Elm_widget_can_focus only return if can have focus.
If want the old comportament, use elm_widget_can_focus_receive_get()

SVN revision: 52684
2010-09-24 14:47:52 +00:00