Commit Graph

64 Commits

Author SHA1 Message Date
Daniel Juyung Seo c2c9a2f723 Elementary elm_button.c: Fixed unnecessary spaces.f
SVN revision: 57682
2011-03-11 02:27:12 +00:00
Daniel Juyung Seo c94d05f948 Elementary button: Fixed 'if' statement indentation. Thanks Sebastian.
SVN revision: 57437
2011-02-28 21:23:59 +00:00
Daniel Juyung Seo 110e58531c Elementary elm_button.c: Fix formatting.
SVN revision: 57400
2011-02-27 22:59:12 +00:00
Tom Hacohen c04d8990f0 Elementary: Added on-the-fly UI-mirroing support to all of the widgets
SVN revision: 56846
2011-02-09 16:14:02 +00:00
Tom Hacohen 99da5b6541 Elementary: Added ui-mirroring support for all the widgets.
SVN revision: 56803
2011-02-08 12:08:28 +00:00
Carsten Haitzler 2696d9a740 Rajeev Ranjan(in India) made a patch for elm_button.
Reasons for this patch are as follows. 

1. Clicked signal is emitted from button when mouse release region
coincides
with button region and there has not been any drag outside the region
during
pressed state. (theme change)

2. Unpressed signal is emitted from button every time we press on
button and
unpress it irrespective of whether we unpress in button's region or
outside.
(theme change)

3. The unsetting of maximum size hint has been removed from _sizing_eval
function as there is a possibility that some application may set this
hint
and if we unset it then this information set by application will be
lost.

4. Modification in test code for button to show the difference between
clicked and unpressed signal emission from this widget. Added a
scroller in
the heirarchy to show the effect of hold on clicked signal emission.



SVN revision: 55687
2010-12-21 09:32:50 +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
Tiago Rezende Campos Falcao a609cc1b69 Elementary patch for supporting keypad
Author: Jihoon Kim <jihoon48.kim@samsung.com>

SVN revision: 55062
2010-11-29 13:56:33 +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 352893a5af Add missing getters to elm_button
SVN revision: 53920
2010-10-27 14:38:45 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +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
Tiago Rezende Campos Falcao 3fb08d420f Elm Button with custom focus highlight
SVN revision: 53145
2010-10-07 14:49:35 +00:00
Carsten Haitzler 4f3090af01 and handle disables for everything else that has disable hooks.
SVN revision: 53138
2010-10-07 07:44:50 +00:00
RAJEEV RANJAN 46acbce93e From: RAJEEV RANJAN <rajeev.r@samsung.com>
Subject: Patch to address some focus and disabling issue in elementary
widgets

We have observed some generic issues in Elementary widgets.

1. Widgets not getting disabled if we call elm_object_disabled_set(ob,
EINA_TRUE) followed by elm_object_style_set(obj, <style_name>);

This works fine if we disable the widget after changing the style(call
to theme_hook happens here).


It happens because we are not sending the edje signal in theme_hook of
the widgets, if the widget is already in disabled state.

I have added this code in theme_hook of elm_button as an example and
we will need to apply the similar stuff in all other widgets if needed.

 
 
 2. The widget gets focused in a particular scenario even though we
call elm_object_focus_allow_set(obj, EINA_FALSE).

The code snippet to explain the scenario which we observed was like
this:

Evas_Object *button = NULL, *icon = NULL;

button = elm_button_add(parent);

elm_object_focus_allow_set(button, EINA_FALSE);

icon = elm_icon_add(button);

elm_icon_file_set(icon, EDJE_PATH, "test.icon");

elm_button_icon_set(button, icon);

 
  
  An icon object does not take focus by default. But still whenever
the focus returned to the parent(layout in this case) after closing
some popup, the button gets focused though we had disabled it
explicitly.
 
 The reason is in this case, when we call elm_icon_add(button), icon
gets added to button as a sub-object and in this call, we set
sd->child_can_focus for button(the parent) as true because till now,
the focus property for icon has not been set to false which by default
is true. 
 
 This was set later in the function elm_icon_add() as follows:
 elm_widget_can_focus_set(obj, EINA_FALSE);
  
  Actually this should be set before adding icon as sub-object of the
parent which in this case is a button.
 
 I have done the required modification in the function elm_icon_add().
  
  Attached to this mail is the patch file for these two issues.The
revision from which I have created this patch file is 53129.
We may need to do similar changes in other widgets if required.



SVN revision: 53137
2010-10-07 07:31:24 +00:00
Tiago Rezende Campos Falcao 52e3df6faf Fix: _event_hook must return EINA_FALSE if widget is disable
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

widgets:
* button
* check
* file selector button
* radio
* toggle

SVN revision: 52890
2010-09-29 12:22:41 +00:00
Tiago Rezende Campos Falcao 2aa5e5313f Button animate when click with keyboard
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52601
2010-09-22 17:45:53 +00:00
Tiago Rezende Campos Falcao fc4a19b171 Listen Space/Return in some widgets
widgets:
* button
* check
* file selector button
* hoversel
* radio
* toggle

Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52600
2010-09-22 17:45:49 +00:00
Tiago Rezende Campos Falcao 2bc6b517c3 Complete some widgets with activate_hook
widgets:
* button
* check
* file selector button
* hoversel
* radio

Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52598
2010-09-22 17:45:43 +00:00
김지훈 d5b8d09591 From: 김지훈 <imfine98@gmail.com>
Subject: patch for indentation and using enum in elementary

I send the patch for elementary.
In this patch, I fixed the indentation of Elementary.h.in.
In addition, I use EINA_TRUE or EINA_FALSE instead of 1 or 0.
EVAS_HINT_EXPAND and EVA_HINT_FILL is used instead of 1.0 and -1.0.
Thanks.



SVN revision: 52447
2010-09-19 02:30:14 +00:00
Lucas De Marchi 3fd31b24a0 Finish unscrewing patch-fu
SVN revision: 50820
2010-08-04 19:00:15 +00:00
Lucas De Marchi 54531a69ed FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL bdf6efa129 * elementary: fix Ecore API changes.
SVN revision: 49860
2010-06-25 09:58:14 +00:00
Iván Briano 99ff1921a9 Standardizing elm_<widget>_{icon,content}_set API
elm_<widget>_icon_set was changed to the better form and the signals
was passed to hidden icons when one icon is changed/removed.
Moreover, when changed by {icon,content}_set the old {icon,content}
will be deleted.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49706
2010-06-16 20:58:09 +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
Iván Briano 2bec9f57d8 Set evas focus for some objects when focused. More will come later.
SVN revision: 48179
2010-04-20 20:03:05 +00:00
Boris Faure 1ca26086db elm: add lots of doc! Thanks to Mike (zmike/discomfitor)
SVN revision: 47944
2010-04-12 08:12:02 +00:00
Iván Briano 415e38c50c Fix issues with button autorepeat
Patch by Brian Wang


SVN revision: 47836
2010-04-08 15:15:22 +00:00
Gustavo Sverzut Barbieri 439a3bd492 Proxy Elementary widget signals to Edje.
Add support to automatic proxy events from Elementary to Edje using
callbacks described with Evas_Smart_Cb_Description and set to
Evas_Smart_Class or per-instance with
evas_object_smart_callbacks_descriptions_set().

Right now elm_widget is not subclassable, so there is no way to define
class signals, just instance signals.

Just doing it for button, lots of widgets to do... If you can help,
please follow the process:

  * see example at src/lib/elm_button.c, copy it.

  * read your widget documentation at Elementary.h

  * grep for evas_object_smart_callback_call(), see if they are all
    documented in Elementary.h, or if there are some missing. Fix Elementary.h

  * paste and change based on fixed Elementary.h My recommendation is
    to create "static const char []" variables and replace all
    evas_object_smart_callback_call() with that, to force sync.


With callback descriptions pre-defined and using the same pointer with
a custom variation evas_object_smart_callback_call_ptr() we may later
optimize signal calling heavily, removing the requirement to call
eina_stringshare_add()/eina_stringshare_del() and also not mixing all
the callbacks in teh same list, instead having an array for defined
signals, and a list from there.  These optimizations are not in, but
they are easily added later without breaking the API/ABI.




SVN revision: 47461
2010-03-26 00:58:14 +00:00
Gustavo Sverzut Barbieri 06d14ed245 const and -Wextra, come on guys! :-/
SVN revision: 47409
2010-03-24 03:06:00 +00:00
Carsten Haitzler 8f34a43231 aaah typo! fix from lupan.
SVN revision: 47225
2010-03-14 22:33:52 +00:00
Gustavo Sverzut Barbieri e01d72fe26 Use eina_stringshare_replace to avoid crashes.
By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 47187
2010-03-13 21:01:26 +00:00
Carsten Haitzler ca93701c55 remove deprecated calls (been deprecated for a while now)
SVN revision: 47100
2010-03-10 07:21:10 +00:00
Vincent Torri b07e49d435 remove unused parameter in the library.
I won't do this everyday, and i won't touch the tests.


SVN revision: 47093
2010-03-09 17:51:30 +00:00
Carsten Haitzler 6792e2db2c warning fix 1. :)
SVN revision: 47074
2010-03-09 07:30:48 +00:00
Carsten Haitzler 91e01aa86e patch from discomfitor <- check type of widget on api call and return if not
the right type



SVN revision: 47073
2010-03-09 06:15:39 +00:00
Carsten Haitzler 602a2db2d7 brian's button autorepeat core code.
SVN revision: 45504
2010-01-24 01:53:37 +00:00
Carsten Haitzler b2f29d6364 remvoe kbd stuff from button - dont want that
SVN revision: 45324
2010-01-19 12:11:58 +00:00
Carsten Haitzler d574bf68f7 1. fix list theme adapting - simply never got callbac ks to handle iot,
that's why!
2. make cmd-line tool to set scale, theme, finger size (more later) - used
this to test this and fix it.
3. cmd-line tool... also uses elm - and... as a result... also has a dialog
sayint its doing something - and... it can get a gui config later too!



SVN revision: 45175
2010-01-15 09:32:43 +00:00
Carsten Haitzler 706a76c467 patch for unfocus for elm butotn from chun eon park
SVN revision: 45034
2010-01-11 06:23:00 +00:00
Carsten Haitzler 958aad8241 fix swallows to happen after u added hint change cb
SVN revision: 44245
2009-12-07 14:19:20 +00:00
Jonathan Atton 7be1d94aa2 Elm: use evas_object_event_callback_del_full() everywhere and improve elm_notify
SVN revision: 43217
2009-10-22 22:10:23 +00:00
Davide Andreoli bbb976c85a * Revert my previous commit, the correct way to set the style of a widget is to use elm_object_style_set.
* Mark all the remaining elm_*_style_set() as deprecated.
 * Some whitespaces
 

SVN revision: 43095
2009-10-15 13:18:11 +00:00
Carsten Haitzler a4996f90ae 1. remove excess swallows - now edje handles that itself
2. beforfe show.. calc first so initial windowis the right size!



SVN revision: 42953
2009-10-08 05:26:58 +00:00
Christopher Michael dd5b63045f Formatting.
SVN revision: 42715
2009-09-26 17:39:29 +00:00
Iván Briano e8bf64d566 Improve documentation for Evas, Ecore, Edje and Elementary.
Work by:
 - Thiago R. Masaki (mostly)
 - Fabiano Fidencio
 - Gustavo Lima


SVN revision: 42553
2009-09-17 22:39:18 +00:00
Viktor Kojouharov 5fb0b1e786 From: Viktor Kojouharov <vkojouharov@gmail.com>
Hi raster, glad you're back. I'm resending some elm patches your way. the
disabled_buttons.diff also needs bt_dis_base.png and bt_dis_hilight.png
from e17's b&w theme.



SVN revision: 41818
2009-08-16 11:35:55 +00:00
Davide Andreoli d69a56c1e8 * Add the *_icon_get() API calls for all the widgets that have the *_icon_set() corresponding func.
SVN revision: 41721
2009-08-12 22:37:48 +00:00
Davide Andreoli bf16de5092 Implement all the *_label_get() functions for widgets that have a *_label_set() function.
SVN revision: 41684
2009-08-11 10:44:49 +00:00