[E-devel] Fwd: Your stand proposal for Enlightenment has been accepted
-- Forwarded message -- From: FOSDEM Stands Team sta...@fosdem.org Date: 2013/12/16 Subject: Your stand proposal for Enlightenment has been accepted To: Philippe Caseiro caseiro.phili...@gmail.com Hi Philippe, The FOSDEM stands team is glad to be able to inform you that your request for a stand for Enlightenment has been accepted. There will be one table reserved for you. You will receive further information about what's expected of you closer to the event date. Looking forward to seeing you at FOSDEM 2014! Kind regards, Wynke Stulemeijer FOSDEM stands team -- Philippe Caseiro Change your computer life http://www.sourcemage.org http://www.enlightenment.org http://www.enlightenment.fr http://www.archlinux.org -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Fwd: Your stand proposal for Enlightenment has been accepted
Yay. Does that mean you are coming this year? -- Tom. On 17/12/13 08:23, Philippe Caseiro wrote: -- Forwarded message -- From: FOSDEM Stands Team sta...@fosdem.org Date: 2013/12/16 Subject: Your stand proposal for Enlightenment has been accepted To: Philippe Caseiro caseiro.phili...@gmail.com Hi Philippe, The FOSDEM stands team is glad to be able to inform you that your request for a stand for Enlightenment has been accepted. There will be one table reserved for you. You will receive further information about what's expected of you closer to the event date. Looking forward to seeing you at FOSDEM 2014! Kind regards, Wynke Stulemeijer FOSDEM stands team -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Clouseau v0.2.0 release
On 17/12/13 00:20, Michael Blumenkrantz wrote: On Tue, 17 Dec 2013 09:14:10 +0900 Daniel Juyung Seo seojuyu...@gmail.com wrote: Clouseau got really nice features. I really love it. Thanks tom for you effort! Daniel Juyung Seo (SeoZ) On Tue, Dec 17, 2013 at 4:35 AM, Tom Hacohen tom.haco...@samsung.comwrote: Hey guys, Unlike version 0.1.0 that supports 1.7, this version (0.2.0) depends on 1.8, and more specifically, Eo. Changes include: Improvements: * Better data fetching using an Eo function (very easy to add new info). * Reopens on the last object that was selected when data is reloaded. * Added the ability to jump to a specific pointer. * Now supports passing the remote (or local) daemon address as the first parameter to clouseau_client. * Elementary integration (actually more of an elm thing...). You can now start clouseau using elementary_config or an ENV var. * Added a show only elementary widgets config option, that makes it much more useful for developers using our API. Bug fixes: * Many bugs fixed, more stable now. * Daemon is now more reliable, and starts and stops correctly. Internal: * Reworked a lot. Much better and cleaner now. Refer to git shortlog, or the email on the commit ML for more information. If you have any bugs/feature requests, please open tickets. If you just want to suggest an idea, but are too shy to open a ticket/not sure if it's good enough, go to: https://phab.enlightenment.org/w/projects/clouseau/ Enjoy, Tom. post more ideas here: https://phab.enlightenment.org/w/projects/clouseau/ Oh yeah, forgot to thank you for creating that page. Thanks! -- Tom. -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[EGIT] [core/efl] master 01/01: Ecore_Avahi: initial commit.
cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0a1cc79a917b770ef66afe8b99731f6d5754ca44 commit 0a1cc79a917b770ef66afe8b99731f6d5754ca44 Author: Cedric BAIL ced...@efl.so Date: Sun Nov 10 08:51:42 2013 +0100 Ecore_Avahi: initial commit. TODO: - Add tests, how ? - Integrate with Eo, needed ? --- Makefile.am| 1 + configure.ac | 59 ++ pc/.gitignore | 1 + pc/ecore-avahi.pc.in | 12 ++ src/Makefile.am| 2 + src/Makefile_Ecore_Avahi.am| 16 ++ src/examples/ecore_avahi/.gitignore| 1 + src/examples/ecore_avahi/Makefile.am | 35 src/examples/ecore_avahi/ecore_avahi_example.c | 187 +++ src/lib/ecore/Ecore_Legacy.h | 1 + src/lib/ecore/ecore_timer.c| 21 +++ src/lib/ecore_avahi/Ecore_Avahi.h | 88 + src/lib/ecore_avahi/ecore_avahi.c | 247 + 13 files changed, 671 insertions(+) diff --git a/Makefile.am b/Makefile.am index 0e8d175..b446af7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -131,6 +131,7 @@ pc/ecore-input-evas.pc \ pc/ecore-imf.pc \ pc/ecore-imf-evas.pc \ pc/ecore-evas.pc \ +pc/ecore-avahi.pc \ pc/embryo.pc \ pc/eio.pc \ pc/eldbus.pc \ diff --git a/configure.ac b/configure.ac index 29c67ae..788d392 100644 --- a/configure.ac +++ b/configure.ac @@ -2568,6 +2568,62 @@ AC_SUBST([ECORE_WIN32_LIBS]) EFL_LIB_END_OPTIONAL([Ecore_Win32]) End of Ecore_Win32 + Ecore_Avahi + +EFL_LIB_START([Ecore_Avahi]) + +### Default values + +### Additional options to configure + +want_avahi=yes + +AC_ARG_ENABLE([avahi], + [AC_HELP_STRING([--disable-avahi], + [disable avahi support. @:@default=enabled@:@])], + [ +if test x${enableval} = xyes ; then + want_avahi=yes +else + want_avahi=no +fi + ], [ +want_avahi=yes + ]) + +### Checks for programs + +### Checks for libraries +EFL_INTERNAL_DEPEND_PKG([ECORE_AVAHI], [ecore]) +EFL_INTERNAL_DEPEND_PKG([ECORE_AVAHI], [eina]) +EFL_INTERNAL_DEPEND_PKG([ECORE_AVAHI], [eo]) + +EFL_OPTIONAL_DEPEND_PKG([ECORE_AVAHI], [${want_avahi}], [AVAHI], [avahi-client]) + +EFL_ADD_FEATURE([ECORE_AVAHI], [avahi-client], [${have_avahi}]) + +# Needed bu example as they use avahi directly in that case +if test x${have_avahi} = xyes; then + PKG_CHECK_MODULES([AVAHI_CLIENT], [avahi-client]) +fi + +EFL_EVAL_PKGS([Ecore_Avahi]) + +### Checks for header files + +### Checks for types + +### Checks for structures + +### Checks for compiler characteristics + +### Checks for linker characteristics + +### Checks for library functions + +EFL_LIB_END([Ecore_Avahi]) + + End of Ecore_Avahi Ecore_WinCE EFL_LIB_START_OPTIONAL([Ecore_WinCE], [test ${have_wince} = yes]) @@ -3748,6 +3804,7 @@ src/examples/eet/Makefile src/examples/eo/Makefile src/examples/evas/Makefile src/examples/ecore/Makefile +src/examples/ecore_avahi/Makefile src/examples/eio/Makefile src/examples/eldbus/Makefile src/examples/ephysics/Makefile @@ -3795,6 +3852,7 @@ pc/ecore-evas.pc pc/ecore-imf.pc pc/ecore-imf-evas.pc pc/ecore-audio.pc +pc/ecore-avahi.pc pc/embryo.pc pc/eio.pc pc/eldbus.pc @@ -3914,6 +3972,7 @@ echo Ecore_Win32.: $have_win32 echo Ecore_WinCE.: $have_wince fi echo Ecore_Audio.: ${efl_lib_optional_ecore_audio} (${features_ecore_audio}) +echo Ecore_Avahi.: yes (${features_ecore_avahi}) echo Ecore_Evas..: yes (${features_ecore_evas}) echo Eeze: ${efl_lib_optional_eeze} (${features_eeze}) echo EPhysics: ${efl_lib_optional_ephysics} diff --git a/pc/.gitignore b/pc/.gitignore index c9e1de0..b6178fb 100644 --- a/pc/.gitignore +++ b/pc/.gitignore @@ -1,3 +1,4 @@ +/ecore-avahi.pc /ecore-audio.pc /ecore-cocoa.pc /ecore-con.pc diff --git a/pc/ecore-avahi.pc.in b/pc/ecore-avahi.pc.in new file mode 100644 index 000..a5a5ce9 --- /dev/null +++ b/pc/ecore-avahi.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: ecore-avahi +Description: E core library, avahi integration +Requires.private: @requirements_pc_ecore_avahi@ +Version: @VERSION@ +Libs: -L${libdir} -lecore_avahi +Libs.private: @requirements_libs_ecore_avahi@ +Cflags: -I${includedir}/efl-@VMAJ@ -I${includedir}/efl-@VMAJ@ -I${includedir}/ecore-avahi-@VMAJ@ diff --git a/src/Makefile.am b/src/Makefile.am index 2d7fdd1..e797d57 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -44,6 +44,7 @@ include Makefile_Ecore_IMF.am include Makefile_Ecore_IMF_Evas.am include Makefile_Ecore_Evas.am include Makefile_Ecore_Audio.am +include Makefile_Ecore_Avahi.am include Makefile_Embryo.am include Makefile_Eio.am include Makefile_Eldbus.am @@ -74,6 +75,7 @@ examples/eo \ examples/eet \
[EGIT] [core/efl] master 01/01: ecore/ecore_x - show the window if the window should be visible.
hermet pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0947bae12627aa819ff81845b10fcf0af5e924be commit 0947bae12627aa819ff81845b10fcf0af5e924be Author: ChunEon Park her...@hermet.pe.kr Date: Tue Dec 17 20:37:17 2013 +0900 ecore/ecore_x - show the window if the window should be visible. when the window alpha mode is changed, the x window is re-created. but if the window is going on the show state(not visible yet but waiting for visible from xserver) this window never be visible. so here it make the window visible also if the window is going on the visible state. --- src/modules/ecore_evas/engines/x/ecore_evas_x.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c b/src/modules/ecore_evas/engines/x/ecore_evas_x.c index 2847e6c..18f6e89 100644 --- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c +++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c @@ -2314,7 +2314,8 @@ _alpha_do(Ecore_Evas *ee, int alpha) (Ecore_Event_Multi_Up_Cb)_ecore_evas_mouse_multi_up_process); if (ee-prop.borderless) ecore_x_mwm_borderless_set(ee-prop.window, ee-prop.borderless); - if (ee-visible) ecore_x_window_show(ee-prop.window); + if (ee-visible || ee-should_be_visible) + ecore_x_window_show(ee-prop.window); if (ee-prop.focused) ecore_x_window_focus(ee-prop.window); if (ee-prop.title) { @@ -2461,7 +2462,8 @@ _ecore_evas_x_alpha_set(Ecore_Evas *ee, int alpha) (Ecore_Event_Multi_Up_Cb)_ecore_evas_mouse_multi_up_process); if (ee-prop.borderless) ecore_x_mwm_borderless_set(ee-prop.window, ee-prop.borderless); -if (ee-visible) ecore_x_window_show(ee-prop.window); +if (ee-visible || ee-should_be_visible) + ecore_x_window_show(ee-prop.window); if (ee-prop.focused) ecore_x_window_focus(ee-prop.window); if (ee-prop.title) { --
Re: [E-devel] (no subject)
In the end, what raster said is true, out of all the EFL C API, only some is thread safe. The EFL design does include mechanisms for marshalling unsafe calls to the main thread. So it doesn't matter which scripting language is used to wrap it, somewhere along the line this call marshalling will have to be taken care of. Nice, this is what I wanted to know. Now it's apparent it's (and will be) possible to use pure pthreads from C without EFL thread-wrappers under the condition the programmer passes explicitly serialized messages (using thread-safe serializing C functions) to those thread-unsafe C functions. My intention with Edje Lua is to make that transparent to Lua scripts. Great idea, keep going! Thank you guys for participation in this discussion. All my concerns are clarified. -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[EGIT] [core/enlightenment] master 01/01: only allow backlight to go to 0.1, not 0.0
discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=292bcf6e81d53fb3eb1e20ec1fbd31fa44a8f870 commit 292bcf6e81d53fb3eb1e20ec1fbd31fa44a8f870 Author: Mike Blumenkrantz zm...@samsung.com Date: Tue Dec 17 11:22:56 2013 -0500 only allow backlight to go to 0.1, not 0.0 on some backlight devices, 0.0 is completely off, which can render the system unusable. T651 --- src/bin/e_backlight.c | 2 +- src/bin/e_config.c | 4 src/modules/backlight/e_mod_main.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c index aeaf103..ca2b7d9 100644 --- a/src/bin/e_backlight.c +++ b/src/bin/e_backlight.c @@ -87,7 +87,7 @@ e_backlight_init(void) e_backlight_update(); if (!getenv(E_RESTART)) { - e_backlight_level_set(NULL, 0.0, 0.0); + e_backlight_level_set(NULL, 0.1, 0.0); e_backlight_level_set(NULL, e_config-backlight.normal, 0.0); } } diff --git a/src/bin/e_config.c b/src/bin/e_config.c index 1d13775..7c89f28 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -1449,6 +1449,10 @@ e_config_load(void) E_CONFIG_LIMIT(e_config-multiscreen_flip, 0, 1); + E_CONFIG_LIMIT(e_config-backlight.normal, 0.1, 1.0); + E_CONFIG_LIMIT(e_config-backlight.dim, 0.1, 1.0); + E_CONFIG_LIMIT(e_config-backlight.idle_dim, 0.1, 1.0); + if (!e_config-icon_theme) e_config-icon_theme = eina_stringshare_add(hicolor); // FDO default diff --git a/src/modules/backlight/e_mod_main.c b/src/modules/backlight/e_mod_main.c index 5d582b0..f23396e 100644 --- a/src/modules/backlight/e_mod_main.c +++ b/src/modules/backlight/e_mod_main.c @@ -202,7 +202,7 @@ _backlight_popup_new(Instance *inst) inst-o_table = e_widget_table_add(evas, 0); - o = e_widget_slider_add(evas, 0, 0, NULL, 0.0, 1.0, 0.05, 0, (inst-val), NULL, 100); + o = e_widget_slider_add(evas, 0, 0, NULL, 0.1, 1.0, 0.05, 0, (inst-val), NULL, 100); evas_object_smart_callback_add(o, changed, _slider_cb, inst); inst-o_slider = o; e_widget_table_object_align_append(inst-o_table, o, --
[EGIT] [core/efl] master 01/01: getopt: fix line wrapping issues in help strings.
barbieri pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=99ba5822c84c6716ee51af93115a0bb0984464ef commit 99ba5822c84c6716ee51af93115a0bb0984464ef Author: Gustavo Sverzut Barbieri barbi...@profusion.mobi Date: Tue Dec 17 17:51:48 2013 -0200 getopt: fix line wrapping issues in help strings. --- src/lib/ecore/ecore_getopt.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c index 36baeb5..2a7850f 100644 --- a/src/lib/ecore/ecore_getopt.c +++ b/src/lib/ecore/ecore_getopt.c @@ -141,7 +141,11 @@ _ecore_getopt_help_line(FILE *fp, len -= i; used += i; - if (linebreak) + /* if we start the line (linebreak is true) with a space +* other than newline or tab, ignore it. +*/ + if ((linebreak) (i == 1) + (space[0] != '\n') (space[0] != '\t')) { linebreak = 0; continue; @@ -170,6 +174,14 @@ _ecore_getopt_help_line(FILE *fp, else if (used total) fputc(space[0], fp); } + else if ((!linebreak) (todo len)) +{ + /* if not start of line and not last line, wrap line +* and try again. This avoids spliting words unless they +* are bigger than the available line width. +*/ + break; +} else { i = fwrite(text, 1, i, fp); --
[EGIT] [core/efl] master 01/01: add great ecore_getopt example.
barbieri pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=1c1f9ea0e1a2c4014d5cb5ca0f749164dcd384e5 commit 1c1f9ea0e1a2c4014d5cb5ca0f749164dcd384e5 Author: Gustavo Sverzut Barbieri barbi...@profusion.mobi Date: Tue Dec 17 18:08:27 2013 -0200 add great ecore_getopt example. should cover and explain getopt usage and serve as base for applications that want to use it (all efl should!) --- src/examples/ecore/.gitignore | 1 + src/examples/ecore/Makefile.am| 9 +- src/examples/ecore/Makefile.examples | 3 +- src/examples/ecore/ecore_getopt_example.c | 339 ++ 4 files changed, 349 insertions(+), 3 deletions(-) diff --git a/src/examples/ecore/.gitignore b/src/examples/ecore/.gitignore index a04eae9..d77145e 100644 --- a/src/examples/ecore/.gitignore +++ b/src/examples/ecore/.gitignore @@ -37,3 +37,4 @@ /ecore_file_download_example /ecore_imf_example /ecore_pipe_gstreamer_example +/ecore_getopt_example diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am index 129601e..9edeb1f 100644 --- a/src/examples/ecore/Makefile.am +++ b/src/examples/ecore/Makefile.am @@ -64,7 +64,8 @@ ecore_poller_example \ ecore_server_bench \ ecore_thread_example \ ecore_time_functions_example \ -ecore_timer_example +ecore_timer_example \ +ecore_getopt_example ECORE_COMMON_LDADD = \ $(top_builddir)/src/lib/ecore/libecore.la \ @@ -223,6 +224,9 @@ ecore_time_functions_example_LDADD = $(ECORE_COMMON_LDADD) ecore_timer_example_SOURCES = ecore_timer_example.c ecore_timer_example_LDADD = $(ECORE_COMMON_LDADD) +ecore_getopt_example_SOURCES = ecore_getopt_example.c +ecore_getopt_example_LDADD = $(ECORE_COMMON_LDADD) + SRCS = \ ecore_animator_example.c \ ecore_audio_custom.c \ @@ -263,7 +267,8 @@ ecore_poller_example.c \ ecore_server_bench.c \ ecore_thread_example.c \ ecore_time_functions_example.c \ -ecore_timer_example.c +ecore_timer_example.c \ +ecore_getopt_example.c DATA_FILES = red.png Makefile.examples diff --git a/src/examples/ecore/Makefile.examples b/src/examples/ecore/Makefile.examples index 30a9521..f8ac82d 100644 --- a/src/examples/ecore/Makefile.examples +++ b/src/examples/ecore/Makefile.examples @@ -39,7 +39,8 @@ EXAMPLES= ecore_animator_example \ ecore_server_bench \ ecore_thread_example \ ecore_time_functions_example \ - ecore_timer_example + ecore_timer_example \ + ecore_getopt_example all: examples examples: $(EXAMPLES) diff --git a/src/examples/ecore/ecore_getopt_example.c b/src/examples/ecore/ecore_getopt_example.c new file mode 100644 index 000..dc91f0c --- /dev/null +++ b/src/examples/ecore/ecore_getopt_example.c @@ -0,0 +1,339 @@ +//Compile with: +// gcc -o ecore_getopt_example ecore_getopt_example.c `pkg-config --libs --cflags ecore eina` + +#include Ecore.h +#include Ecore_Getopt.h +#include assert.h + +static const char * available_choices[] = { + banana, + apple, + orange, + NULL /* must be null terminated! */ +}; + +static const Ecore_Getopt options = { + /* program name, usually a macro PACKAGE_NAME */ + ecore_getopt_example, + /* usage line */ + %prog [options], + /* program version, usually a macro PACKAGE_VERSION */ + 0.1, + /* copyright string */ + (C) 2013 Enlightenment Project, + /* license string */ + BSD 2-Clause, + /* long description, may be multiline and contain \n */ + Example of Ecore_Getopt usage.\n + \n + This usage may span over multiple lines of text, with automatic line + break based on $COLUMNS environment variable that is usually defined by + your shell.\n + You can have %%prog (expands to \%prog\) or %%version (expands to \ + %version\) in the description to get the program name + or version. Use double %% to get the percentage symbol.\n + OneCanHaveVeryLongWorksInDescriptionLinesSuchAsThisOneAndItWillBeBrokenWhenTheyGoPast${COLUMNS}Characters.\n + \tTab (\\t) is supported, like in the beginning of this line. They + will work as tabulation to columns multiple of 8 spaces, so you can do + tables such as:\n + 1\tsomething\tsome description\n + 23\totherthing\tsome description\n + 456\tyetanother\tsome description\n + 12345678\tthis is off\tthis is off\n, + /* we want strict parsing (any error aborts) */ + EINA_TRUE, + /* an array of argument descriptions (must terminate with sentinel) */ + { + +/* block of options that store a single value in a variable of type */ +ECORE_GETOPT_STORE_STR(0, string, Store a single string.), +ECORE_GETOPT_STORE_BOOL(0, bool, Store a single boolean.), +ECORE_GETOPT_STORE_SHORT(0, short, Store a single short.), +ECORE_GETOPT_STORE_INT(0, int, Store a single integer.), +ECORE_GETOPT_STORE_LONG(0, long, Store a single long integer.), +ECORE_GETOPT_STORE_USHORT(0, unsigned-short, + Store a single unsigned short integer.), +
[EGIT] [misc/entrance] master 02/02: entrance: reset session to use if unknow which one to use
yoz pushed a commit to branch master. http://git.enlightenment.org/misc/entrance.git/commit/?id=6de070c696bc470c230bef499f5a2e5fe7b4bf86 commit 6de070c696bc470c230bef499f5a2e5fe7b4bf86 Author: Michael Bouchaud y...@efl.so Date: Tue Dec 17 23:13:43 2013 +0100 entrance: reset session to use if unknow which one to use --- src/bin/entrance_login.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/entrance_login.c b/src/bin/entrance_login.c index 4ed1053..66c50bb 100644 --- a/src/bin/entrance_login.c +++ b/src/bin/entrance_login.c @@ -274,6 +274,7 @@ _login_password_focused_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event break; } } + if (!l) _entrance_login_session_set(data, NULL); _login_password_catch(data, EINA_TRUE); } @@ -382,6 +383,8 @@ _entrance_login_session_set(Evas_Object *widget, const char *name) } if (l) login-session = sess; + else + login-session = eina_list_data_get(entrance_gui_xsessions_get()); _login_xsession_update(widget); } --
[EGIT] [misc/entrance] master 01/02: entrance: load history of user in every case
yoz pushed a commit to branch master. http://git.enlightenment.org/misc/entrance.git/commit/?id=f65d38be0f84574f32a88340e1c64b9ec0cc71ce commit f65d38be0f84574f32a88340e1c64b9ec0cc71ce Author: Michael Bouchaud y...@efl.so Date: Tue Dec 17 23:08:19 2013 +0100 entrance: load history of user in every case --- src/bin/entrance_gui.c | 1 - src/bin/entrance_login.c | 65 +++- src/bin/entrance_login.h | 1 - 3 files changed, 42 insertions(+), 25 deletions(-) diff --git a/src/bin/entrance_gui.c b/src/bin/entrance_gui.c index 2b5daef..b64acbf 100644 --- a/src/bin/entrance_gui.c +++ b/src/bin/entrance_gui.c @@ -760,7 +760,6 @@ _entrance_gui_user_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_ Entrance_Login *eu; eu = elm_object_item_data_get(event_info); entrance_login_login_set(data, eu-login); - entrance_login_session_set(data, eu-lsess); } static char * diff --git a/src/bin/entrance_login.c b/src/bin/entrance_login.c index 0fc9940..4ed1053 100644 --- a/src/bin/entrance_login.c +++ b/src/bin/entrance_login.c @@ -20,6 +20,7 @@ static void _login_password_unfocused_cb(void *data, Evas_Object *obj, void *eve static void _login_login_activated_cb(void *data, Evas_Object *obj, void *event); static char *_login_xsession_text_get(void *data, Evas_Object *obj, const char *part); static void _login_auth_cb(void *data, const char *user, Eina_Bool granted); +static void _entrance_login_session_set(Evas_Object *widget, const char *name); static Entrance_Fill *_login_fill; @@ -256,6 +257,23 @@ _login_input_event_cb(void *data, Evas_Object *obj EINA_UNUSED, Evas_Object *src static void _login_password_focused_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED) { + const Eina_List *users, *l; + Evas_Object *o; + const char *hostname; + Entrance_Login *eu; + LOGIN_GET(data); + + users = entrance_gui_users_get(); + o = elm_object_part_content_get(data, entrance.login); + hostname = elm_entry_markup_to_utf8(elm_object_text_get(o)); + EINA_LIST_FOREACH(users, l, eu) + { +if (!strcmp(eu-login, hostname)) + { + _entrance_login_session_set(data, eu-lsess); + break; + } + } _login_password_catch(data, EINA_TRUE); } @@ -345,6 +363,29 @@ _login_auth_cb(void *data, const char *user, Eina_Bool granted) } } +static void +_entrance_login_session_set(Evas_Object *widget, const char *name) +{ + Entrance_Xsession *sess; + const Eina_List *l = NULL; + LOGIN_GET(widget); + if (name) + { +EINA_LIST_FOREACH(entrance_gui_xsessions_get(), l, sess) + { + if ((sess-name) + (!strcmp(sess-name, name))) + { + break; + } + } + } + if (l) + login-session = sess; + _login_xsession_update(widget); +} + + @@ -352,7 +393,7 @@ void entrance_login_init(void) { _login_fill = entrance_fill_new(NULL, _login_xsession_text_get, - NULL, NULL, NULL); + NULL, NULL, NULL); } void @@ -438,28 +479,6 @@ entrance_login_login_set(Evas_Object *widget, const char *user) } void -entrance_login_session_set(Evas_Object *widget, const char *name) -{ - Entrance_Xsession *sess; - const Eina_List *l = NULL; - LOGIN_GET(widget); - if (name) - { -EINA_LIST_FOREACH(entrance_gui_xsessions_get(), l, sess) - { - if ((sess-name) - (!strcmp(sess-name, name))) - { - break; - } - } - } - if (l) - login-session = sess; - _login_xsession_update(widget); -} - -void entrance_login_open_session_set(Evas_Object *widget, Eina_Bool open_session) { Evas_Object *o; diff --git a/src/bin/entrance_login.h b/src/bin/entrance_login.h index ea9932d..032f8f0 100644 --- a/src/bin/entrance_login.h +++ b/src/bin/entrance_login.h @@ -8,7 +8,6 @@ void entrance_login_shutdown(void); Evas_Object *entrance_login_add(Evas_Object *win, Entrance_Login_Cb login_cb, void *data); void entrance_login_xsessions_populate(Evas_Object *widget, Eina_List *xsessions); void entrance_login_login_set(Evas_Object *widget, const char *user); -void entrance_login_session_set(Evas_Object *widget, const char *user); void entrance_login_open_session_set(Evas_Object *obj, Eina_Bool open_session); void entrance_login_callback_set(Entrance_Login_Cb greater_cb, void *data); --
[EGIT] [misc/entrance] master 01/01: entrance: clean++
yoz pushed a commit to branch master. http://git.enlightenment.org/misc/entrance.git/commit/?id=00754fb57cfcd1d601b62936d6a42a7ecacae0db commit 00754fb57cfcd1d601b62936d6a42a7ecacae0db Author: Michael Bouchaud y...@efl.so Date: Tue Dec 17 23:24:43 2013 +0100 entrance: clean++ --- src/bin/entrance_gui.c | 277 - 1 file changed, 277 deletions(-) diff --git a/src/bin/entrance_gui.c b/src/bin/entrance_gui.c index b64acbf..d3d7cd2 100644 --- a/src/bin/entrance_gui.c +++ b/src/bin/entrance_gui.c @@ -17,17 +17,6 @@ static void _entrance_gui_update(void); static void _entrance_gui_auth_cb(void *data, const char *user, Eina_Bool granted); -/* -static void _entrance_gui_session_update(Entrance_Xsession *xsession); -static void _entrance_gui_login_activated_cb(void *data, Evas_Object *obj, void *event_info); -static void _entrance_gui_password_activated_cb(void *data, Evas_Object *obj, void *event_info); -static void _entrance_gui_shutdown(void *data, Evas_Object *obj, void *event_info); -static void _entrance_gui_focus(void *data, Evas_Object *obj, void *event_info); -static void _entrance_gui_session_update(Entrance_Xsession *xsession); -static Eina_Bool _entrance_gui_auth_enable(void *data); -static void _entrance_gui_action_clicked_cb(void *data, Evas_Object *obj, void *event_info); -static Ecore_Timer *_gui_login_timeout; -*/ static Entrance_Gui *_gui; enum { @@ -389,273 +378,7 @@ entrance_gui_vkbd_enabled_get(void) { return _gui-vkbd_enabled; } -/* -static void -_entrance_gui_login_activated_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) -{ - char *txt; - Eina_List *l, *ll; - Entrance_Xsession *xsess; - Entrance_Login *eu = NULL; - Entrance_Screen *screen; - - PT(login activated\n); - txt = elm_entry_markup_to_utf8(elm_entry_entry_get(obj)); - if (!txt || !strcmp(txt, )) - { -free(txt); -return; - } - EINA_LIST_FOREACH(_gui-users, ll, eu) - if (!strcmp(txt, eu-login)) break; - free(txt); - - if (eu eu-lsess) - { -EINA_LIST_FOREACH(_gui-xsessions, l, xsess) - { - if (!strcmp(xsess-name, eu-lsess)) - { - _entrance_gui_session_update(xsess); - break; - } - } - } - else if (_gui-xsessions) - _entrance_gui_session_update(_gui-xsessions-data); - elm_object_focus_set(data, EINA_TRUE); - EINA_LIST_FOREACH(_gui-screens, l, screen) - edje_object_signal_emit(elm_layout_edje_get(screen-edj), - entrance,auth,enable, ); -} - -static void -_entrance_gui_shutdown(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) -{ - elm_exit(); - PT(shutdown cb\n); -} - - -static void -_entrance_gui_focus(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) -{ - Eina_List *l; - Entrance_Screen *screen; - - EINA_LIST_FOREACH(_gui-screens, l, screen) - elm_object_focus_set(ENTRANCE_GUI_GET(screen-edj, entrance.login), - EINA_TRUE); -} - -static void -_entrance_gui_login_cancel_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *sig EINA_UNUSED, const char *src EINA_UNUSED) -{ - Evas_Object *o; - Entrance_Screen *screen; - Eina_List *l; - - EINA_LIST_FOREACH(_gui-screens, l, screen) - { -o = ENTRANCE_GUI_GET(screen-edj, entrance.login); -elm_entry_entry_set(o, ); -elm_object_focus_set(o, EINA_TRUE); -o = ENTRANCE_GUI_GET(screen-edj, entrance.password); -elm_entry_entry_set(o, ); -edje_object_signal_emit(elm_layout_edje_get(screen-edj), -entrance,auth,disable, ); - } -} - -static Eina_Bool -_entrance_gui_login_timeout(void *data EINA_UNUSED) -{ - Evas_Object *popup, *o, *bx; - Entrance_Screen *screen; - Eina_List *l; - - EINA_LIST_FOREACH(_gui-screens, l, screen) - { -popup = elm_popup_add(screen-win); -evas_object_size_hint_weight_set(popup, - EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); -elm_object_text_set(popup, Something wrong happened ... -No window manager detected after a lapse of time. -See your debug below.); - -bx = elm_box_add(popup); -elm_object_content_set(popup, bx); -evas_object_show(bx); - -o = elm_entry_add(popup); -elm_entry_scrollable_set(o, EINA_TRUE); -elm_object_text_set(o, Test !); -elm_box_pack_end(bx, o); -evas_object_show(o); - -o = evas_object_rectangle_add(evas_object_evas_get(popup)); -evas_object_size_hint_min_set(o, 0, 260); -elm_box_pack_end(bx, o); - - -o = elm_button_add(popup); -elm_object_text_set(o, Close); -elm_object_part_content_set(popup,
[EGIT] [misc/entrance] master 01/01: entrance: clean configure (Big Thx to vtorri !)
yoz pushed a commit to branch master. http://git.enlightenment.org/misc/entrance.git/commit/?id=44c5b19ce5d42bd817e07bdd8c81d4f18c1c52dc commit 44c5b19ce5d42bd817e07bdd8c81d4f18c1c52dc Author: Michael Bouchaud y...@efl.so Date: Wed Dec 18 00:07:23 2013 +0100 entrance: clean configure (Big Thx to vtorri !) --- configure.ac | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 95353eb..64160cd 100644 --- a/configure.ac +++ b/configure.ac @@ -3,8 +3,6 @@ AC_PREREQ([2.59]) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_MACRO_DIR([m4]) -AC_CANONICAL_HOST - AM_INIT_AUTOMAKE([1.6 dist-bzip2]) AC_CONFIG_HEADERS([config.h]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) @@ -97,18 +95,15 @@ AC_ARG_WITH([edje-cc], edje_cc=$v echo Enlightenment edje_cc explicitly set to $edje_cc; ], - [edje_cc=$(pkg-config --variable=prefix edje)/bin/edje_cc]) + [edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc]) AC_SUBST(edje_cc) ### Checks for programs AC_PROG_CC +PKG_PROG_PKG_CONFIG ### Checks for compiler characteristics AC_USE_SYSTEM_EXTENSIONS -AC_ISC_POSIX -AC_PROG_CC_STDC -AC_HEADER_STDC -AC_C_CONST AC_C___ATTRIBUTE__ ### Checks for libraries --
[EGIT] [core/efl] master 01/01: getopt: add positional argument handling.
barbieri pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0b86e5119f328b6fa979bcbff6391a6458c6efe8 commit 0b86e5119f328b6fa979bcbff6391a6458c6efe8 Author: Gustavo Sverzut Barbieri barbi...@profusion.mobi Date: Tue Dec 17 21:06:53 2013 -0200 getopt: add positional argument handling. positional arguments must appear at the end of the description array (after the last option) and should have a metavar set and not have shortname or longname. Simple, elegant and fit :-) There is a new function to parse the positional arguments, ecore_getopt_parse_positional() because we may want to not try to parse them in the case of a quit-option such as --help, --license, --copyright, --version or some user-defined action. This avoids us producing errors of missing positional arguments when printing help and adds some flexibility as well. This should make Tasn happy :-) --- src/examples/ecore/ecore_getopt_example.c | 84 - src/lib/ecore/Ecore_Getopt.h | 3 + src/lib/ecore/ecore_getopt.c | 299 +- 3 files changed, 376 insertions(+), 10 deletions(-) diff --git a/src/examples/ecore/ecore_getopt_example.c b/src/examples/ecore/ecore_getopt_example.c index dc91f0c..f299266 100644 --- a/src/examples/ecore/ecore_getopt_example.c +++ b/src/examples/ecore/ecore_getopt_example.c @@ -5,6 +5,17 @@ #include Ecore_Getopt.h #include assert.h +/* if defined will end the positional arguments with the special + * action ECORE_GETOPT_ACTION_APPEND that will require at least one + * trailing argument and will also consume the remaining arguments + * until the end. + * + * if not defined unhandled positional arguments start at the index + * returned by ecore_getopt_parse_positional(), that will be less or + * equal to argc. + */ +#define END_WITH_POS_APPEND 1 + static const char * available_choices[] = { banana, apple, @@ -15,8 +26,8 @@ static const char * available_choices[] = { static const Ecore_Getopt options = { /* program name, usually a macro PACKAGE_NAME */ ecore_getopt_example, - /* usage line */ - %prog [options], + /* usage line, leave empty to generate one with positional arguments */ + NULL, /* program version, usually a macro PACKAGE_VERSION */ 0.1, /* copyright string */ @@ -136,6 +147,25 @@ static const Ecore_Getopt options = { ECORE_GETOPT_LICENSE('L', license), ECORE_GETOPT_HELP('h', help), +/* positional arguments can be handled as well, add their + * description after the last option was specified. They should + * have empty short and long options, but have the metavar + * defined. + */ +ECORE_GETOPT_STORE_METAVAR_STR(0, NULL, Positional string., STRING), +ECORE_GETOPT_STORE_METAVAR_INT(0, NULL, Positional integer., INT), +ECORE_GETOPT_CHOICE_METAVAR(0, NULL, Positional choice., CHOICE, +available_choices), + +#ifdef END_WITH_POS_APPEND +/* this will consume until the end of the command line, forcing + * ecore_getopt_parse() to return args == argc on succes. + * It will require at least one argument in the end of the command line. + */ +ECORE_GETOPT_APPEND_METAVAR(0, NULL, Extra options., ARG, +ECORE_GETOPT_TYPE_STR), +#endif + /* the sentinel is required to notify end of descriptions */ ECORE_GETOPT_SENTINEL } @@ -172,6 +202,12 @@ main(int argc, char **argv) Eina_List *lst_ints = NULL; Eina_Bool break_given = EINA_FALSE; Eina_Bool quit_option = EINA_FALSE; + char *pos_str = NULL; + int pos_int = 0; + char *pos_choice = NULL; +#ifdef END_WITH_POS_APPEND + Eina_List *pos_args = NULL; +#endif Ecore_Getopt_Value values[] = { /* block of options that store a single value in a variable of type */ ECORE_GETOPT_VALUE_STR(str_value), @@ -218,6 +254,15 @@ main(int argc, char **argv) ECORE_GETOPT_VALUE_BOOL(quit_option), /* -L/--license quits */ ECORE_GETOPT_VALUE_BOOL(quit_option), /* -h/--help quits */ + /* example of positiona argument */ + ECORE_GETOPT_VALUE_STR(pos_str), + ECORE_GETOPT_VALUE_INT(pos_int), + ECORE_GETOPT_VALUE_STR(pos_choice), + +#ifdef END_WITH_POS_APPEND + ECORE_GETOPT_VALUE_LIST(pos_args), +#endif + ECORE_GETOPT_VALUE_NONE /* sentinel */ }; int args, retval = EXIT_SUCCESS; @@ -240,6 +285,14 @@ main(int argc, char **argv) /* options that set 'quit_option' to true requires us to exit. */ if (quit_option) goto end; + args = ecore_getopt_parse_positional(options, values, argc, argv, args); + if (args 0) + { +fputs(ERROR: Could not parse positional arguments.\n, stderr); +retval = EXIT_FAILURE; +goto end; + } + printf(given values:\n string = %s\n bool = %s\n @@ -269,6 +322,10 @@ main(int argc, char **argv) choice =
[EGIT] [misc/entrance] master 01/01: entrance: fix my mistake
yoz pushed a commit to branch master. http://git.enlightenment.org/misc/entrance.git/commit/?id=7af6c315346e6a5bd62fa08b616f146168f95780 commit 7af6c315346e6a5bd62fa08b616f146168f95780 Author: Michael Bouchaud y...@efl.so Date: Wed Dec 18 00:37:06 2013 +0100 entrance: fix my mistake --- configure.ac | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 64160cd..7073529 100644 --- a/configure.ac +++ b/configure.ac @@ -87,6 +87,10 @@ AC_MSG_CHECKING([whether to support consolekit login]) AC_MSG_RESULT([${enable_consolekit}]) +### Checks for programs +AC_PROG_CC +PKG_PROG_PKG_CONFIG + # Set edje_cc path AC_ARG_WITH([edje-cc], [AC_HELP_STRING([--with-edje-cc=PATH], [specify a specific path to edje_cc])], @@ -98,10 +102,6 @@ AC_ARG_WITH([edje-cc], [edje_cc=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc]) AC_SUBST(edje_cc) -### Checks for programs -AC_PROG_CC -PKG_PROG_PKG_CONFIG - ### Checks for compiler characteristics AC_USE_SYSTEM_EXTENSIONS AC_C___ATTRIBUTE__ --
[E-devel] evas_scale_smooth with BUILD_NEON broken?
Cross compiling for an ARM platform, I ran into compile issues with src/lib/evas/common/evas_scale_smooth.c. The existing BUILD_NEON code doesn't follow the same idiom as MMX, for instance, with naming of the function created in evas_scale_smooth_scaler.c with a leading underscore, and creating an EAPI function in evas_scale_smooth.h to adapt parameters to the generated function. Best I can tell there is no way the BUILD_NEON code could compile for anyone. It's a straightforward fix to get it to compile. Am I off base here? Should I submit a patch? Nick Reed -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] evas_scale_smooth with BUILD_NEON broken?
On Tue, 17 Dec 2013 17:22:52 -0600 Nick Reed n...@fuel7.com said: Cross compiling for an ARM platform, I ran into compile issues with src/lib/evas/common/evas_scale_smooth.c. The existing BUILD_NEON code doesn't follow the same idiom as MMX, for instance, with naming of the function created in evas_scale_smooth_scaler.c with a leading underscore, and creating an EAPI function in evas_scale_smooth.h to adapt parameters to the generated function. Best I can tell there is no way the BUILD_NEON code could compile for anyone. It's a straightforward fix to get it to compile. Am I off base here? Should I submit a patch? it builds perfectly for me. i actually build it a few times per week on my nexus7... :) -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[EGIT] [core/elementary] master 01/01: clock: Add elm_clock_pause_set and elm_clock_pause_get functions for elm_clock widget
seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=c53be13f51ea47b26d430c25ef9b1e5c8f658a67 commit c53be13f51ea47b26d430c25ef9b1e5c8f658a67 Author: Michal Jagiello m.jagie...@samsung.com Date: Wed Dec 18 10:14:20 2013 +0900 clock: Add elm_clock_pause_set and elm_clock_pause_get functions for elm_clock widget Summary: This patch add two functions for elm_clock widget - elm_clock_pause_set and elm_clock_pause_get. I've prepared it because I want to do a stopwatch using this widget, but now it is impossible to pause the clock without set an editable mode. Reviewers: seoz, cedric, stanluk, z.kosinski Reviewed By: seoz Differential Revision: https://phab.enlightenment.org/D374 --- src/bin/test.c | 2 ++ src/bin/test_clock.c | 43 ++ src/lib/elm_clock.c| 47 ++ src/lib/elm_clock_eo.h | 32 ++- src/lib/elm_clock_legacy.h | 30 + src/lib/elm_widget_clock.h | 1 + 6 files changed, 154 insertions(+), 1 deletion(-) diff --git a/src/bin/test.c b/src/bin/test.c index 3c4db35..bb32748 100644 --- a/src/bin/test.c +++ b/src/bin/test.c @@ -39,6 +39,7 @@ void test_fileselector_entry(void *data, Evas_Object *obj, void *event_info); void test_clock(void *data, Evas_Object *obj, void *event_info); void test_clock2(void *data, Evas_Object *obj, void *event_info); void test_clock3(void *data, Evas_Object *obj, void *event_info); +void test_clock4(void *data, Evas_Object *obj, void *event_info); void test_check(void *data, Evas_Object *obj, void *event_info); void test_check_toggle(void *data, Evas_Object *obj, void *event_info); void test_radio(void *data, Evas_Object *obj, void *event_info); @@ -740,6 +741,7 @@ add_tests: ADD_TEST(NULL, Times Dates, Clock, test_clock); ADD_TEST(NULL, Times Dates, Clock 2, test_clock2); ADD_TEST(NULL, Times Dates, Clock 3, test_clock3); + ADD_TEST(NULL, Times Dates, Clock 4, test_clock4); ADD_TEST(NULL, Times Dates, Datetime, test_datetime); //--// diff --git a/src/bin/test_clock.c b/src/bin/test_clock.c index 51c661f..d661650 100644 --- a/src/bin/test_clock.c +++ b/src/bin/test_clock.c @@ -215,6 +215,21 @@ _hmode_bt_clicked(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) elm_clock_show_am_pm_set(ck, EINA_FALSE); } +static void +_pause_resume_bt_clicked(void *data, Evas_Object *obj, void *event_info EINA_UNUSED) +{ + Evas_Object *ck = data; + + if (!elm_clock_pause_get(ck)) + { +elm_object_text_set(obj, Resume); +elm_clock_pause_set(ck, EINA_TRUE); +return; + } + elm_object_text_set(obj, Pause); + elm_clock_pause_set(ck, EINA_FALSE); +} + void test_clock2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { @@ -318,3 +333,31 @@ test_clock3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in evas_object_show(win); } + +void +test_clock4(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) +{ + Evas_Object *win, *bx, *ck, *bt; + + win = elm_win_util_standard_add(clock4, Clock4); + elm_win_autodel_set(win, EINA_TRUE); + + bx = elm_box_add(win); + evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_win_resize_object_add(win, bx); + evas_object_show(bx); + + ck = elm_clock_add(win); + elm_clock_show_seconds_set(ck, EINA_TRUE); + elm_clock_time_set(ck, 0, 0, 0); + elm_box_pack_end(bx, ck); + evas_object_show(ck); + + bt = elm_button_add(win); + elm_object_text_set(bt, Pause); + evas_object_smart_callback_add(bt, clicked, _pause_resume_bt_clicked, ck); + elm_box_pack_end(bx, bt); + evas_object_show(bt); + + evas_object_show(win); +} diff --git a/src/lib/elm_clock.c b/src/lib/elm_clock.c index 0dca6f1..d377d76 100644 --- a/src/lib/elm_clock.c +++ b/src/lib/elm_clock.c @@ -1078,6 +1078,49 @@ _first_interval_get(Eo *obj EINA_UNUSED, void *_pd, va_list *list) *ret = sd-first_interval; } +EAPI void +elm_clock_pause_set(Evas_Object *obj, Eina_Bool pause) +{ + ELM_CLOCK_CHECK(obj); + eo_do(obj, elm_obj_clock_pause_set(pause)); +} + +static void +_pause_set(Eo *obj EINA_UNUSED, void *_pd, va_list *list) +{ + Eina_Bool pause = va_arg(*list, int); + Elm_Clock_Smart_Data *sd = _pd; + pause = !!pause; + if (sd-paused == pause) + return; + sd-paused = pause; + if (pause) + ecore_timer_freeze(sd-ticker); + else + { +_timediff_set(sd); +ecore_timer_thaw(sd-ticker); + } +} + +EAPI Eina_Bool +elm_clock_pause_get(const Evas_Object *obj) +{ + ELM_CLOCK_CHECK(obj) EINA_FALSE; + Eina_Bool ret = EINA_FALSE; + eo_do(obj, elm_obj_clock_pause_get(ret)); + return ret; +} + +static void +_pause_get(Eo *obj EINA_UNUSED,
Re: [E-devel] (no subject)
Hello, On Tue, Dec 17, 2013 at 9:54 PM, dumblob dumb...@gmail.com wrote: In the end, what raster said is true, out of all the EFL C API, only some is thread safe. The EFL design does include mechanisms for marshalling unsafe calls to the main thread. So it doesn't matter which scripting language is used to wrap it, somewhere along the line this call marshalling will have to be taken care of. Nice, this is what I wanted to know. Now it's apparent it's (and will be) possible to use pure pthreads from C without EFL thread-wrappers under the condition the programmer passes explicitly serialized messages (using thread-safe serializing C functions) to those thread-unsafe C functions. I would still recommend you to use at minima Eina_Thread infrastructure so you get portability out of the box. Also Ecore_Thread provide all the infrastructure needed to synchronize with the main loop with the minimum possible cost (limit the number of wake up in the main loop and the amount of data marshaled to fd to the bare minimum). Current limitation that I do think is annoying is the lack of mechanism to transmit data between thread. That would be an improvement for future, that would make those thread close to some mini main loop. -- Cedric BAIL -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [E-b0rk] Build failed in Jenkins: nightly_efl_gcc_x86_64 #333
D'ar merc'her 18 a viz Kerzu 2013 e 00 eur 31, « no-re...@enlightenment.org » he deus skrivet : See https://build.enlightenment.org/job/nightly_efl_gcc_x86_64/333/changes Changes: [cedric.bail] Ecore_Avahi: initial commit. [snip] configure: Start Ecore_Avahi checks configure: error: pkg-config missing avahi-client avahi 0.6.31 is now installed on slaves (not mingw for the moment). Thanks for having spotting this Cédric ! -- Beber -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[EGIT] [core/elementary] master 01/01: clock test: modified clock test name, window title, and button name more descriptive.
seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=bb33c8feda6ba6d4f33ecc6db2b5faf1690e296e commit bb33c8feda6ba6d4f33ecc6db2b5faf1690e296e Author: Daniel Juyung Seo juyung@samsung.com Date: Wed Dec 18 10:42:17 2013 +0900 clock test: modified clock test name, window title, and button name more descriptive. --- src/bin/test.c | 12 ++-- src/bin/test_clock.c | 10 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/bin/test.c b/src/bin/test.c index bb32748..0a84659 100644 --- a/src/bin/test.c +++ b/src/bin/test.c @@ -37,9 +37,9 @@ void test_transit9(void *data, Evas_Object *obj, void *event_info); void test_fileselector_button(void *data, Evas_Object *obj, void *event_info); void test_fileselector_entry(void *data, Evas_Object *obj, void *event_info); void test_clock(void *data, Evas_Object *obj, void *event_info); -void test_clock2(void *data, Evas_Object *obj, void *event_info); -void test_clock3(void *data, Evas_Object *obj, void *event_info); -void test_clock4(void *data, Evas_Object *obj, void *event_info); +void test_clock_edit(void *data, Evas_Object *obj, void *event_info); +void test_clock_edit2(void *data, Evas_Object *obj, void *event_info); +void test_clock_pause(void *data, Evas_Object *obj, void *event_info); void test_check(void *data, Evas_Object *obj, void *event_info); void test_check_toggle(void *data, Evas_Object *obj, void *event_info); void test_radio(void *data, Evas_Object *obj, void *event_info); @@ -739,9 +739,9 @@ add_tests: ADD_TEST(NULL, Times Dates, Calendar 2, test_calendar2); ADD_TEST(NULL, Times Dates, Calendar 3, test_calendar3); ADD_TEST(NULL, Times Dates, Clock, test_clock); - ADD_TEST(NULL, Times Dates, Clock 2, test_clock2); - ADD_TEST(NULL, Times Dates, Clock 3, test_clock3); - ADD_TEST(NULL, Times Dates, Clock 4, test_clock4); + ADD_TEST(NULL, Times Dates, Clock Edit, test_clock_edit); + ADD_TEST(NULL, Times Dates, Clock Edit 2, test_clock_edit2); + ADD_TEST(NULL, Times Dates, Clock Pause, test_clock_pause); ADD_TEST(NULL, Times Dates, Datetime, test_datetime); //--// diff --git a/src/bin/test_clock.c b/src/bin/test_clock.c index d661650..fdb096f 100644 --- a/src/bin/test_clock.c +++ b/src/bin/test_clock.c @@ -231,12 +231,12 @@ _pause_resume_bt_clicked(void *data, Evas_Object *obj, void *event_info EINA_UNU } void -test_clock2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) +test_clock_edit(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *win, *bx, *hbx, *ck, *bt, *bxx; api_data *api = calloc(1, sizeof(api_data)); - win = elm_win_util_standard_add(clock2, Clock 2); + win = elm_win_util_standard_add(clock-edit, Clock Edit); elm_win_autodel_set(win, EINA_TRUE); evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, api); @@ -289,11 +289,11 @@ test_clock2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in } void -test_clock3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) +test_clock_edit2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *win, *bx, *ck, *lb; - win = elm_win_util_standard_add(clock3, Clock 3); + win = elm_win_util_standard_add(clock-edit2, Clock Edit 2); elm_win_autodel_set(win, EINA_TRUE); bx = elm_box_add(win); @@ -335,7 +335,7 @@ test_clock3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in } void -test_clock4(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) +test_clock_pause(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { Evas_Object *win, *bx, *ck, *bt; --
Re: [E-devel] (no subject)
On 12/18/2013 11:53 AM, Cedric BAIL wrote: Hello, On Tue, Dec 17, 2013 at 9:54 PM, dumblob dumb...@gmail.com wrote: In the end, what raster said is true, out of all the EFL C API, only some is thread safe. The EFL design does include mechanisms for marshalling unsafe calls to the main thread. So it doesn't matter which scripting language is used to wrap it, somewhere along the line this call marshalling will have to be taken care of. Nice, this is what I wanted to know. Now it's apparent it's (and will be) possible to use pure pthreads from C without EFL thread-wrappers under the condition the programmer passes explicitly serialized messages (using thread-safe serializing C functions) to those thread-unsafe C functions. I would still recommend you to use at minima Eina_Thread infrastructure so you get portability out of the box. Also Ecore_Thread provide all the infrastructure needed to synchronize with the main loop with the minimum possible cost (limit the number of wake up in the main loop and the amount of data marshaled to fd to the bare minimum). Current limitation that I do think is annoying is the lack of mechanism to transmit data between thread. That would be an improvement for future, that would make those thread close to some mini main loop. That would be cool, Qt can do that with a combination of its threads and signal, slot mechanism. If you have a signal connected to a slot in a different thread, when the signal is triggered the slot is called the next time it's thread runs through the event loop. Stuff like that makes writing threaded code quite sane and relatively easy. -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [E-b0rk] Build failed in Jenkins: nightly_efl_gcc_x86_64 #333
On Wed, Dec 18, 2013 at 10:37 AM, Bertrand Jacquin be...@meleeweb.net wrote: D'ar merc'her 18 a viz Kerzu 2013 e 00 eur 31, « no-re...@enlightenment.org » he deus skrivet : See https://build.enlightenment.org/job/nightly_efl_gcc_x86_64/333/changes Changes: [cedric.bail] Ecore_Avahi: initial commit. [snip] configure: Start Ecore_Avahi checks configure: error: pkg-config missing avahi-client avahi 0.6.31 is now installed on slaves (not mingw for the moment). Thanks for having spotting this Cédric ! Thanks for quickly fixing it :-) -- Cedric BAIL -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] evas_scale_smooth with BUILD_NEON broken?
On Dec 17, 2013, at 7:00 PM, Carsten Haitzler (The Rasterman) ras...@rasterman.com wrote: On Tue, 17 Dec 2013 17:22:52 -0600 Nick Reed n...@fuel7.com said: Cross compiling for an ARM platform, I ran into compile issues with src/lib/evas/common/evas_scale_smooth.c. The existing BUILD_NEON code doesn't follow the same idiom as MMX, for instance, with naming of the function created in evas_scale_smooth_scaler.c with a leading underscore, and creating an EAPI function in evas_scale_smooth.h to adapt parameters to the generated function. Best I can tell there is no way the BUILD_NEON code could compile for anyone. It's a straightforward fix to get it to compile. Am I off base here? Should I submit a patch? it builds perfectly for me. i actually build it a few times per week on my nexus7... :) -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com I don't think I have any odd configure options, it doesn't look like any of that conditionally compiles, and I and my compiler seem to agree on a problem. I apologize if I'm being obtuse. evas_common_scale_rgba_in_to_out_clip_smooth_mmx and evas_common_scale_rgba_in_to_out_clip_smooth_c match signatures with Evas_Command_Scale_In_To_Out_Clip_Cb: 11 parameters. evas_common_scale_rgba_in_to_out_clip_smooth_neon gets called as if it were, and assigned to a variable of type Evas_Command_Scale_In_To_Out_Clip_Cb. The only definition of evas_common_scale_rgba_in_to_out_clip_smooth_neon is here: #ifdef BUILD_NEON # undef SCALE_FUNC # undef SCALE_USING_NEON # define SCALE_USING_NEON # define SCALE_FUNC evas_common_scale_rgba_in_to_out_clip_smooth_neon # include evas_scale_smooth_scaler.c # undef SCALE_USING_NEON #endif And evas_scale_smooth_scaler.c defines a function named SCALE_FUNC taking 16 params. Every non-neon instance declares SCALE_FUNC with a leading underscore, and wraps the call in a function that adapts the 11 param call to 16. -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[EGIT] [core/efl] master 01/01: pkgbuild: avahi is now a dependency of EFL.
cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=1df60be1de0b15dea13ce0d6a7232ded26fbc83e commit 1df60be1de0b15dea13ce0d6a7232ded26fbc83e Author: Cedric BAIL cedric.b...@samsung.com Date: Wed Dec 18 11:20:31 2013 +0900 pkgbuild: avahi is now a dependency of EFL. --- pkgbuild/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD index 6f383f2..f5769bc 100644 --- a/pkgbuild/PKGBUILD +++ b/pkgbuild/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Enlightenment Developers enlightenment-de...@enlightenment.org pkgname=('efl-git' 'efl_doc-git') _pkgname=${pkgname%-*} -pkgver=1.8.99.23938.7299d55 +pkgver=1.8.99.24004.0b86e51 pkgrel=1 pkgdesc=Enlightenment Foundation Libraries - GIT development snapshot (Ecore, Eldbus, Edje, Eet, Eeze, Efreet, Eina, Eio, Embryo, Emotion, Eo, Ephysics, Ethumb, Evas) arch=('i686' 'x86_64' 'arm') @@ -17,7 +17,7 @@ depends=('bullet' 'libpng' 'libjpeg-turbo' 'gstreamer0.10' 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxinerama' 'libxi' 'libxrandr' 'libxrender' 'libxss' 'libxtst' 'libxcursor' 'libxp' 'libgl' 'giflib' 'libwebp' 'harfbuzz' -'wayland' 'sdl') +'wayland' 'sdl' 'avahi') [[ ! $(pacman -T openjpeg) ]] depends+=('openjpeg') #jpeg2k loader is autodetected at build time makedepends=('git') provides=(ecore=$pkgver eldbus=$pkgver edje=$pkgver --
Re: [E-devel] [E-b0rk] Build failed in Jenkins: nightly_efl_gcc_x86_64 #333
Hello. On Wed, 2013-12-18 at 02:37, Bertrand Jacquin wrote: D'ar merc'her 18 a viz Kerzu 2013 e 00 eur 31, « no-re...@enlightenment.org » he deus skrivet : See https://build.enlightenment.org/job/nightly_efl_gcc_x86_64/333/changes Changes: [cedric.bail] Ecore_Avahi: initial commit. [snip] configure: Start Ecore_Avahi checks configure: error: pkg-config missing avahi-client avahi 0.6.31 is now installed on slaves (not mingw for the moment). Thanks for having spotting this Cédric ! I disabled avahi on the mingw build for now. We can enable it again when we have it installed and working. regards Stefan Schmidt -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel