Commit Graph

262 Commits

Author SHA1 Message Date
ChunEon Park d555e52cc4 elementary/win - fixed invalid sd memory access catched by valgrind.
now, more simple and clear!



SVN revision: 74310
2012-07-23 08:23:01 +00:00
Cedric BAIL 187462ec9d elementary: fix erroneous memory access.
One more pack of beer for the Valgrind developer !


SVN revision: 74202
2012-07-20 04:20:06 +00:00
Gustavo Sverzut Barbieri 3506c20374 elm_win: support trapping ecore_evas calls (aka: e17 support)
Allows setting a trap in elm_win that intercepts calls to
ecore_evas. If there is a trap and the trap returns EINA_FALSE, then
the corresponding call is NOT issued. If it does not exist or returns
EINA_TRUE, then the call is executed.

Enlightenment window manager will set these traps and will call
e_border directly, allowing E17 to use Elementary! A major feature
given e_widgets painful usage.

This should also help integrating into Wayland or even debug.





SVN revision: 74156
2012-07-19 04:35:50 +00:00
yan.wang 9521230ca9 From: yan.wang@linux.intel.com
Subject: [E-devel] [PATCH] Add frame size when calculating minimized
elm_win size

Hi,
  I found frame size including width and height isn't counted in
  _elm_win_resize_objects_eval() when calculating minimized elm_window
  size.
    It is OK for X engine because elementary only draw client area and X
    provides widow frame. So both the width and height from
    evas_output_framespace_get are 0.
      But it cause bug for wayland engine because elementary need draw
window
frame by itself. So real client area size is smaller than window size.
If frame size isn't counted into minimized window size, there isn't
enough client area to layout widgets.
  So it is bug for any engine in which elementary draws window frame by
  itself. It is the reason of
http://trac.enlightenment.org/e/ticket/1064.
  Could you please my attached patch for this issue?
    Thanks.
    


SVN revision: 74049
2012-07-18 08:27:52 +00:00
Gustavo Lima Chaves ef87e0cfb6 [elm] Style fix.
SVN revision: 74025
2012-07-17 18:46:18 +00:00
Christopher Michael e7aff2633f Elm: Commit roberts patch which fixes the unsafe call to
ecore_evas_window_get with a replacement function that checks the
currently used engine first. This fixes a segfault when running elm
with the wayland engines.



SVN revision: 73568
2012-07-11 11:53:29 +00:00
Carsten Haitzler 95bb03f0be add dpi get func in elm.
SVN revision: 73342
2012-07-05 12:59:06 +00:00
Carsten Haitzler c417a9c99f fix several elm+fb related issues and add a feature.
SVN revision: 73334
2012-07-05 09:23:38 +00:00
Stefan Schmidt b65fe02596 elementary/elm_win: No need to define and undef the same macro all over again.
SVN revision: 72194
2012-06-15 14:11:47 +00:00
Stefan Schmidt 9c0f6e7709 elementary/elm_win: Also check for potential NULL in other defines
Thanks to Daniel Willmann pointing them out to me. Actually I wonder
why we need all this define and undef for ENGINE_COMPARE. Will dig a
bit deeper into that and see if we may can go with a single one.

SVN revision: 72144
2012-06-14 15:56:42 +00:00
Stefan Schmidt c6ff40ba13 elementary/elm_win: Check argument for NULL before we pass it to strncmp
strncmp() really does not like that. So we should not be lazy and check for it. Say thanks to
scan-build which reported these to me.

SVN revision: 72142
2012-06-14 15:01:37 +00:00
Carsten Haitzler 78b003d5ea new api's for hinting base+step sizes for a window.
SVN revision: 72009
2012-06-12 10:15:19 +00:00
Christopher Michael 8ae0fe2422 Elm: Patches from Rob Bradford <rob@linux.intel.com> to:
* Move X related window items into their own substruct of
_Elm_Win_Smart_Data to allow grouping based on engine.

* Move X related cursor items into their own substruct of Elm_Cursor
to make supporting cursors on other platforms cleaner.

* Add support for setting the cursor under Wayland:
* Introduce a configure option and #define to as per other engines
* Add always-built API function to allow identification of running
under Wayland (like for X11)
* Call into Ecore to set the cursor when the mouse enters the desired
widget.



SVN revision: 71754
2012-06-06 13:55:15 +00:00
Christopher Michael 8ec6c0d94e Elm: Patch from Rob Bradford <rob@linux.intel.com> for:
* Move X related window items into their own substruct of
_Elm_Win_Smart_Data to allow grouping based on engine.



SVN revision: 71736
2012-06-06 08:25:12 +00:00
Gustavo Lima Chaves ba73332345 [elm] Give a dedicated file for inwin widget.
Thus facilitating hierarchy tree generation.



SVN revision: 71687
2012-06-04 17:36:01 +00:00
Daniel Juyung Seo 7ee2903275 elm win: Place ifdef to a proper place. Initialize variable.
SVN revision: 71529
2012-05-30 04:57:31 +00:00
Christopher Michael 29a1391542 Elm: Patch from Robert Bradford <robert.bradford@intel.com> for native
window representation.

The attached change to Elementary makes a small refactor to use
existing code that was already conditional on the Elm engine to
retrieve the underlying window - thus allowing elm_win_xwindow_get to
return 0 in the case when called on a Wayland based Elm window.

Patches have been tested against X11 and Wayland built together by
running elementary_test.



SVN revision: 71455
2012-05-28 12:28:46 +00:00
Carsten Haitzler b29d458517 barebones initial support for access commands. XXX's
SVN revision: 71324
2012-05-22 12:13:49 +00:00
Jihoon Kim c69b7f2b60 elm_win.c: fix typo
SVN revision: 71143
2012-05-16 07:28:29 +00:00
Christopher Michael 22eda0e4f0 Elm (wayland): Fix elm not drawing frames in Wayland. Fix setting a
window to alpha also.



SVN revision: 71124
2012-05-15 14:48:30 +00:00
Gustavo Lima Chaves 1ab8266b77 [Elm] Removing cruft (unnecessary) code on elm
win.
With things done right, one does not need this child deletion
by force.



SVN revision: 70718
2012-05-03 22:42:20 +00:00
Gustavo Lima Chaves a239210a0d [Elm] Now elm win and inwin got into the new
widget hierarchy.
Win inherits directly from Elm_Widget_Smart_Class, while inwin is now
an elm layout.

Note that elm_widget_sub_object_list_get(), which was an unecessary
hack only used on win, was killed.



SVN revision: 70717
2012-05-03 22:42:15 +00:00
WooHyun Jung f83917a420 elementar/focus : New feature - focus movement in all direction. By
using elm_widget_focus_direction_go function, focus will be moved from
the current focused object to the near object in one direction.
Direction can be set by degree(for easy usability). Degree changes
clockwise, i.e. 0 means UP, 90 means RIGHT, 180 means DOWN, and 270
means LEFT. You can select any direction by changing this degree.


SVN revision: 70681
2012-05-03 03:02:54 +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 7f2ba3a399 [Elm] Set this call free again.
SVN revision: 70671
2012-05-02 17:07:36 +00:00
Gustavo Lima Chaves 60cc8e20a1 [Elm] Removing cruft (unnecessary) code on elm
win.
With things done right, one does not need this child deletion
by force.



SVN revision: 70641
2012-05-02 16:59:01 +00:00
Gustavo Lima Chaves 5869e3bd8d [Elm] Now elm win and inwin got into the new
widget hierarchy.
Win inherits directly from Elm_Widget_Smart_Class, while inwin is now
an elm layout.

Note that elm_widget_sub_object_list_get(), which was an unecessary
hack only used on win, was killed.



SVN revision: 70640
2012-05-02 16:58:56 +00:00
Carsten Haitzler d76345fc8a use profate atof that fixes up locale issues for string -> float
conversion.



SVN revision: 70485
2012-04-26 03:32:18 +00:00
Christopher Michael 42865eba02 Elm: Update functions for moving/resizing elm_window (when a wayland
client).



SVN revision: 70448
2012-04-24 17:32:44 +00:00
Carsten Haitzler 3a7b769a63 use the new escape text set to clear up issues if theme has TEXT vs
TEXTBLOCK items and handling escapes so text is consistend across elm.
fiuxes the fileselector issues kai reported.



SVN revision: 70362
2012-04-20 12:51:10 +00:00
WooHyun Jung c9b889f338 elementary/elm_win : Patch from Rajeev. Thanks. - Removed the
unnecessary comparison for sub-object list not being NULL as it has
been done aleady earlier.


SVN revision: 69972
2012-04-09 10:56:42 +00:00
Jihoon Kim 7046f87e3a elementary: ignore key event of keypad when NumLock is turned on in win, scroller, slider, video, photocam, map, slideshow, and spinner.
SVN revision: 69952
2012-04-06 10:34:03 +00:00
ChunEon Park c35d5ac903 elementary/win - [E-devel] [Patch][Elementary] Patch for elm_win to fix the focus chain issue in case of a widget added as a normal sub-object, not a resizable object
Current Issue:
Currently when we add a widget to window as a sub-object, e.g.
elm_notify_add(win) which internally calls elm_widget_sub_object_add
then the focus chain using <TAB> includes only
the first focusable subitem of the widget, not all.
Whereas with elm_win_resize_object_add, it works fine and cycles to
all focusable sub-items of the widget.

Reason:
The reason is that we are appending sub-object to the list in
elm_win which is used for focus chain, only in case of
elm_win_resize_object_add.

Change Description:
Added a new API: EAPI Eina_List
*elm_widget_sub_object_list_get(const Evas_Object *obj);
This API returns the list of sub-objects of an elementary widget
(sd->subobjs) where sd is Smart_Data pointer obtainted using
elm_widget_smart_data_get(obj).
We have used this API in elm_win for focus_next_hook implementation.

Signed-Off-By: RAJEEV RANJAN<rajeev.r>@samsumg.com>



SVN revision: 69943
2012-04-06 06:19:16 +00:00
Daniel Juyung Seo 8c17d99712 elm: Fixed formatting. Added a space after 'if/while/for'
SVN revision: 69744
2012-03-29 11:09:45 +00:00
Carsten Haitzler 01994a641a use new ref_get func in object cleanup for windows.
SVN revision: 69723
2012-03-29 07:46:59 +00:00
Daniel Juyung Seo 7908a77ad8 elm: Fixed formatting.
SVN revision: 69700
2012-03-28 09:02:22 +00:00
Vincent Torri cbd838c174 Elm: typo in comment
SVN revision: 69515
2012-03-20 04:40:36 +00:00
Jiyoun Park fb217ce3a9 remove deprecated code related with
elm_win_transparent_XXX
function.


SVN revision: 69240
2012-03-12 10:03:38 +00:00
myoungwoon kim 41148d0c62 From: myoungwoon kim <myoungwoon@gmail.com>
Subject: [E-devel] [Patch] Ecore, Elementary: Supporting indicator
opacity mode

This is Myoungwoon Roy Kim.

This patches are for supporting the indicator's opacity mode and made by
Jeonhoon Park(jh1979.park@samsung.com) who is responsible for Indicator
application.

Requirements:
- In mobile device, Indicator area should be displayed as Opacity,
Transparency, or sometimes Translucency according to the UX
requirements.
This requirement can be applied in case of fullscreen based menu and
fullscreen applications like video player etc.

Functional requirements:
1. User can set indicator's opacity mode as opacity, transparency, and
translucency
2. User can get the current indicator's opacity mode.

Currently there are no APIs for supporting the upper functional
requirements.

Thus, he added support for indicator's opacity mode.
It is designed for EFL developers easily to set the indicator's opacity
like the existing indicator's mode.
He added a Elm_Win_Indicator_Opacity_Mode structure variable into
Elm_Win
structure.
Meanwhile, new two APIs are implemented independently from the existing
source code.

Anybody please review this and apply it to upstream code.



SVN revision: 68959
2012-03-07 14:27:36 +00:00
Carsten Haitzler 7a5a301a63 rename a whole host of config-related functions to be elm_config_*
now. yes - no deprecation. no time to do that.



SVN revision: 68810
2012-03-06 12:04:25 +00:00
Carsten Haitzler 7542e629d3 deprecate elm_win_transparent stuff
SVN revision: 68698
2012-03-05 12:03:40 +00:00
Carsten Haitzler 8a65fc1495 add a proper elm api to request a prefeered evas rendering engine.
SVN revision: 68553
2012-02-29 12:45:58 +00:00
Carsten Haitzler 307eb11c75 and now add/implement window icon too. awesome++!!!!!!!
that set of missing stuff that u needed ecore_x for is now done. ugh.
more stuff to do.



SVN revision: 68551
2012-02-29 12:06:12 +00:00
Daniel Juyung Seo 93981f37c3 elm win: Fixed typo. Patch by Jeremy Zurcher <jeremy@asynk.ch>
On Wed, Feb 29, 2012 at 5:10 PM, J??r??my Zurcher <jeremy@asynk.ch>
wrote:
elm_win_widthdrawn_get -> elm_win_withdrawn_get

Jeremy

SVN revision: 68541
2012-02-29 08:56:40 +00:00
Daniel Juyung Seo fd19596e5a elm win: Commented unused function.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68533
2012-02-29 05:05:50 +00:00
Christopher Michael bf0c4315fa Elm (wayland): Set frame clip. Fix maximize/unmaximize in wayland.
SVN revision: 68524
2012-02-28 22:52:34 +00:00
Christopher Michael 36f0bb5003 Elm (wayland): Update elm code to reflect recent efl wayland changes.
SVN revision: 68519
2012-02-28 21:58:34 +00:00
Carsten Haitzler f0433e3a5e add callbacks for knowing several states of a window and more api's to
control a windows properties



SVN revision: 68502
2012-02-28 11:20:35 +00:00
Carsten Haitzler 8b615e6dda actually on reflection - doyoun - indicator mode should be like this.
SVN revision: 68432
2012-02-25 05:14:19 +00:00
Doyoun Kang d15d98327f From: Doyoun Kang <doyoun.kang@samsung.com>
Subject: Add feature for showing/hiding indicator

Hi, raster.
As we discussed about indicator, i added feature for indicator.
Please check attached patch files.

1. elementary
i added enumeration to Elm_Illume_Command as below.
- ELM_ILLUME_COMMAND_INDICATOR_SHOW
- ELM_ILLUME_COMMAND_INDICATOR_HIDE

2. ecore
i added atoms/enumerations/APIs as below.
- Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_INDICATOR_STATE;
- Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_INDICATOR_ON;
- Ecore_X_Atom ECORE_X_ATOM_E_ILLUME_INDICATOR_OFF;

typedef enum _Ecore_X_Illume_Indicator_State
{
   ECORE_X_ILLUME_INDICATOR_STATE_UNKNOWN = 0,
   ECORE_X_ILLUME_INDICATOR_STATE_OFF,
   ECORE_X_ILLUME_INDICATOR_STATE_ON
} Ecore_X_Illume_Indicator_State;
         
EAPI void ecore_x_e_illume_indicator_state_set(Ecore_X_Window win,
Ecore_X_Illume_Indicator_State state);
EAPI Ecore_X_Illume_Indicator_State
ecore_x_e_illume_indicator_state_get(Ecore_X_Window win);
EAPI void ecore_x_e_illume_indicator_state_send(Ecore_X_Window win,
Ecore_X_Illume_Indicator_State state);



SVN revision: 68410
2012-02-24 12:33:11 +00:00