Re: [E-devel] [patch] elm_cnp_helper - add type checking for non-elm cnp datas
Oops i omitted file attaching. sorry. On Fri, Dec 16, 2011 at 5:09 PM, Hyoyoung Chang hyoyo...@gmail.com wrote: Dear developers elm_cnp_helper supports rich types for copying pasting. but it doesn't extend like x11 way. this patch introduces to reduce mismatch for checking selection type format. now elm can live in harmony with non-elm cnp datas Thanks Index: elementary/src/lib/elm_widget.h === --- elementary/src/lib/elm_widget.h (리비전 66266) +++ elementary/src/lib/elm_widget.h (작업 사본) @@ -727,16 +727,20 @@ typedef enum _Elm_Sel_Format { + /** Targets: for matching every atom requesting */ + ELM_SEL_TARGETS = -1, + /** they come from outside of elm */ + ELM_SEL_FORMAT_NONE = 0x0, /** Plain unformated text: Used for things that don't want rich markup */ ELM_SEL_FORMAT_TEXT = 0x01, /** Edje textblock markup, including inline images */ ELM_SEL_FORMAT_MARKUP = 0x02, /** Images */ - ELM_SEL_FORMAT_IMAGE = 0x04, + ELM_SEL_FORMAT_IMAGE = 0x04, /** Vcards */ - ELM_SEL_FORMAT_VCARD = 0x08, + ELM_SEL_FORMAT_VCARD = 0x08, /** Raw HTMLish things for widgets that want that stuff (hello webkit!) */ - ELM_SEL_FORMAT_HTML = 0x10, + ELM_SEL_FORMAT_HTML = 0x10, } Elm_Sel_Format; struct _Elm_Selection_Data Index: elementary/src/lib/elm_cnp_helper.c === --- elementary/src/lib/elm_cnp_helper.c (리비전 66266) +++ elementary/src/lib/elm_cnp_helper.c (작업 사본) @@ -168,15 +168,15 @@ static Cnp_Atom atoms[CNP_N_ATOMS] = { [CNP_ATOM_TARGETS] = { TARGETS, - (Elm_Sel_Format) -1, // everything + ELM_SEL_TARGETS, targets_converter, response_handler_targets, notify_handler_targets, 0 }, [CNP_ATOM_ATOM] = { - ATOM, - (Elm_Sel_Format) -1, // everything + ATOM, // for opera browser + ELM_SEL_TARGETS, targets_converter, response_handler_targets, notify_handler_targets, @@ -425,7 +425,7 @@ sel = selections + selection; - sel-active = 1; + sel-active = EINA_TRUE; sel-widget = widget; sel-set(xwin, selection, sizeof(Elm_Sel_Type)); @@ -452,7 +452,7 @@ /* No longer this selection: Consider it gone! */ if ((!sel-active) || (sel-widget != widget)) return EINA_TRUE; - sel-active = 0; + sel-active = EINA_FALSE; sel-widget = NULL; sel-clear(); @@ -587,8 +587,19 @@ return ECORE_CALLBACK_PASS_ON; } +static Elm_Sel_Format +_get_selection_type(void *data, int size) +{ + if (size == sizeof(Elm_Sel_Type)) + { +Cnp_Selection *sel; +sel = selections + *((int *)data); +if (sel-active) + return sel-format; + } + return ELM_SEL_FORMAT_NONE; +} - static Eina_Bool targets_converter(char *target __UNUSED__, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype, int *typesize) { @@ -598,7 +609,7 @@ if (!data_ret) return EINA_FALSE; - if (size != sizeof(int)) + if (_get_selection_type(data, size) == ELM_SEL_FORMAT_NONE) { if (data_ret) { @@ -987,7 +998,7 @@ Cnp_Selection *sel; cnp_debug(text converter\n); - if (size != sizeof(int)) + if (_get_selection_type(data, size) == ELM_SEL_FORMAT_NONE) { if (data_ret) { @@ -1026,16 +1037,8 @@ static Eina_Bool general_converter(char *target __UNUSED__, void *data, int size, void **data_ret, int *size_ret, Ecore_X_Atom *ttype __UNUSED__, int *typesize __UNUSED__) { - if (size == sizeof(int)) + if (_get_selection_type(data, size) == ELM_SEL_FORMAT_NONE) { -Cnp_Selection *sel; - -sel = selections + *((int *)data); -if (data_ret) *data_ret = strdup(sel-selbuf); -if (size_ret) *size_ret = strlen(sel-selbuf); - } - else if (size) - { if (data_ret) { *data_ret = malloc(size * sizeof(char) + 1); @@ -1044,6 +1047,14 @@ } if (size_ret) *size_ret = size; } + else + { +Cnp_Selection *sel; + +sel = selections + *((int *)data); +if (data_ret) *data_ret = strdup(sel-selbuf); +if (size_ret) *size_ret = strlen(sel-selbuf); + } return EINA_TRUE; } -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net
[E-devel] [Patch][ecore_con_url] Add proxy timeout set API
Dear all, There existed two problems when using ecore_con_url. We cannot set proxy and set timeout. So, I added two APIs for solving these problems. Proxy can be set by setting libcurl option. Timeout also can be set but It need to add handler for Linux alarm signal. (Please refer: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTTIMEOUT) So I implemented it by using ecore timer. Please review this patch. -- BRs, Kim. Index: src/lib/ecore_con/ecore_con_url.c === --- src/lib/ecore_con/ecore_con_url.c (리비전 66269) +++ src/lib/ecore_con/ecore_con_url.c (작업 사본) @@ -57,6 +57,7 @@ static void _ecore_con_event_url_fr void *ev); static Eina_Bool _ecore_con_url_idler_handler(void *data); static Eina_Bool _ecore_con_url_fd_handler(void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __UNUSED__); +static Eina_Bool _ecore_con_url_timeout_cb(void *data); static Eina_List *_url_con_list = NULL; static Eina_List *_fd_hd_list = NULL; @@ -294,12 +295,13 @@ ecore_con_url_free(Ecore_Con_Url *url_co { ret = curl_multi_remove_handle(_curlm, url_con-curl_easy); if (ret != CURLM_OK) ERR(curl_multi_remove_handle failed: %s, curl_multi_strerror(ret)); + _url_con_list = eina_list_remove(_url_con_list, url_con); } curl_easy_cleanup(url_con-curl_easy); } + if (url_con-timer) ecore_timer_del(url_con-timer); - _url_con_list = eina_list_remove(_url_con_list, url_con); curl_slist_free_all(url_con-headers); EINA_LIST_FREE(url_con-additional_headers, s) free(s); @@ -1067,12 +1069,85 @@ ecore_con_url_ssl_ca_set(Ecore_Con_Url * return res; } +EAPI int +ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy) +{ +#ifdef HAVE_CURL + int res = -1; + if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL)) + { +ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, ecore_con_url_proxy_set); +return -1; + } + + if (eina_list_data_find(_url_con_list, url_con)) return -1; + if (!url_con-url) return -1; + if (proxy == NULL) res = curl_easy_setopt(url_con-curl_easy, CURLOPT_PROXY, ); + else res = curl_easy_setopt(url_con-curl_easy, CURLOPT_PROXY, proxy); +#else + return -1; + (void)url_con; + (void)proxy; +#endif + return res; +} + +EAPI void +ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout) +{ +#ifdef HAVE_CURL + if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL)) + { +ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, ecore_con_url_timeout_set); +return; + } + + if (eina_list_data_find(_url_con_list, url_con)) return; + if (!url_con-url || timeout 0) return; + if (url_con-timer) ecore_timer_del(url_con-timer); +url_con-timer = ecore_timer_add(timeout, _ecore_con_url_timeout_cb, url_con); +#else + return; + (void)url_con; + (void)timeout; +#endif +} /** * @} */ #ifdef HAVE_CURL +static Eina_Bool +_ecore_con_url_timeout_cb(void *data) +{ + Ecore_Con_Url *url_con = data; + CURLMcode ret; + Ecore_Con_Event_Url_Complete *e; + + if (!url_con) return ECORE_CALLBACK_CANCEL; + if (!url_con-curl_easy) return ECORE_CALLBACK_CANCEL; + if (!eina_list_data_find(_url_con_list, url_con)) return ECORE_CALLBACK_CANCEL; + + ret = curl_multi_remove_handle(_curlm, url_con-curl_easy); + if (ret != CURLM_OK) ERR(curl_multi_remove_handle failed: %s, curl_multi_strerror(ret)); + _url_con_list = eina_list_remove(_url_con_list, url_con); + + curl_slist_free_all(url_con-headers); + url_con-headers = NULL; + + url_con-timer = NULL; + + e = calloc(1, sizeof(Ecore_Con_Event_Url_Complete)); + if (e) + { +e-url_con = url_con; +e-status = 0; +ecore_event_add(ECORE_CON_EVENT_URL_COMPLETE, e, _ecore_con_event_url_free, NULL); + } + return ECORE_CALLBACK_CANCEL; +} + static size_t _ecore_con_url_data_cb(void *buffer, size_t size, Index: src/lib/ecore_con/Ecore_Con.h === --- src/lib/ecore_con/Ecore_Con.h (리비전 66269) +++ src/lib/ecore_con/Ecore_Con.h (작업 사본) @@ -1845,6 +1845,38 @@ EAPI int ecore_con_url_ssl const char *ca_path); /** + * Set HTTP proxy to use. + * + * The parameter should be a char * to a zero terminated string holding + * the host name or dotted IP address. To specify port number in this string, + * append :[port] to the end of the host name. + * The proxy string may be prefixed with [protocol]:// since any such prefix + * will be ignored. + * The proxy's port number may optionally be specified with the separate option. + * If not specified, libcurl will default to using port 1080 for proxies. + * + * @param url_con Connection object that will use the proxy. + * @param proxy Porxy string or @c
Re: [E-devel] [Patch][ecore_con_url] Add proxy timeout set API
On Fri, 16 Dec 2011 17:48:42 +0900 Bluezery ohpo...@gmail.com said: Dear all, why do we need to set proxy - curl inherits $http_proxy and $https_proxy env vars so it will use the system proxy settings... ? There existed two problems when using ecore_con_url. We cannot set proxy and set timeout. So, I added two APIs for solving these problems. Proxy can be set by setting libcurl option. Timeout also can be set but It need to add handler for Linux alarm signal. (Please refer: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTTIMEOUT) So I implemented it by using ecore timer. Please review this patch. -- BRs, Kim. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] how about to move elm_selection_{set/get} to public header?
Dear all, Elementary has facility of copyingpasting. Its name is elm_cnp_helper. elm_cnp_helper supports all CP functionality. But sadly, elm_selection_{set/get} live in private header (elm_widget.h) So apps can't use elm selection api directly. Some application use ecore selection api. 1. I think elm_selection_{set/get} apis are mature for going public. What do you think about? 2. If it's moving to public header, its name is okay? discomfitor pointed out it can be confused with elm_entry_selection api. Also I think so. In X11 world, selection means including CP. But mostly ppl regard selection as just choose text for CP. How about renaming to elm_cnp_selection_{set/get}? Thanks. -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] scim-EFL immodule
Hi, EFL developers. I'd like to contribute EFL-scim immodule. It will be useful to users who wants to input Chinese, Japanese, Korean, and a variety of languages that SCIM provides. You can build this module according to the below steps: # sudo apt-get install scim-dev # tar xvfz escim_immodule.tar.gz # cd escim_immodule # ./autogen.sh # make # sudo make install When you run, you should set environment variable 'ECORE_IMF_MODULE' # export ECORE_IMF_MODULE=scim # elementary_test Would you please review this patch and please let me know if this module can be put in EFL. Thanks. escim_immodule.tar.gz Description: GNU Zip compressed data -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch][ecore_con_url] Add proxy timeout set API
2011/12/16 Carsten Haitzler ras...@rasterman.com: why do we need to set proxy - curl inherits $http_proxy and $https_proxy env vars so it will use the system proxy settings... ? Yes, environment value can do that in normal environment. But each application may want to use it's own proxy. For example, proxy bypass software. Also applications in mobile terminal want to change proxy dynamically depending on the circumstances (3G and Wifi, etc.). If no problem, I will add @since 1.2 in doc, ChangeLog entry and NEWS entry :D -- BRs, Kim. -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch][ecore_con_url] Add proxy timeout set API
On Fri, 16 Dec 2011 19:41:21 +0900 Bluezery ohpo...@gmail.com said: 2011/12/16 Carsten Haitzler ras...@rasterman.com: why do we need to set proxy - curl inherits $http_proxy and $https_proxy env vars so it will use the system proxy settings... ? Yes, environment value can do that in normal environment. But each application may want to use it's own proxy. For example, proxy bypass software. Also applications in mobile terminal want to change proxy dynamically depending on the circumstances (3G and Wifi, etc.). If no problem, I will add @since 1.2 in doc, ChangeLog entry and NEWS entry :D if they want to dynamically adjust the feature should be in ecore_con to track the changes and adjust automatically :) -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch][ecore_con_url] Add proxy timeout set API
I fixed doc ChangeLog News. 2011/12/16 Carsten Haitzler ras...@rasterman.com: if they want to dynamically adjust the feature should be in ecore_con to track the changes and adjust automatically :) -- BRs, Kim. Index: src/lib/ecore_con/ecore_con_url.c === --- src/lib/ecore_con/ecore_con_url.c (리비전 66269) +++ src/lib/ecore_con/ecore_con_url.c (작업 사본) @@ -57,6 +57,7 @@ static void _ecore_con_event_url_fr void *ev); static Eina_Bool _ecore_con_url_idler_handler(void *data); static Eina_Bool _ecore_con_url_fd_handler(void *data __UNUSED__, Ecore_Fd_Handler *fd_handler __UNUSED__); +static Eina_Bool _ecore_con_url_timeout_cb(void *data); static Eina_List *_url_con_list = NULL; static Eina_List *_fd_hd_list = NULL; @@ -294,12 +295,13 @@ ecore_con_url_free(Ecore_Con_Url *url_co { ret = curl_multi_remove_handle(_curlm, url_con-curl_easy); if (ret != CURLM_OK) ERR(curl_multi_remove_handle failed: %s, curl_multi_strerror(ret)); + _url_con_list = eina_list_remove(_url_con_list, url_con); } curl_easy_cleanup(url_con-curl_easy); } + if (url_con-timer) ecore_timer_del(url_con-timer); - _url_con_list = eina_list_remove(_url_con_list, url_con); curl_slist_free_all(url_con-headers); EINA_LIST_FREE(url_con-additional_headers, s) free(s); @@ -1067,12 +1069,85 @@ ecore_con_url_ssl_ca_set(Ecore_Con_Url * return res; } +EAPI int +ecore_con_url_proxy_set(Ecore_Con_Url *url_con, const char *proxy) +{ +#ifdef HAVE_CURL + int res = -1; + if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL)) + { +ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, ecore_con_url_proxy_set); +return -1; + } + + if (eina_list_data_find(_url_con_list, url_con)) return -1; + if (!url_con-url) return -1; + if (proxy == NULL) res = curl_easy_setopt(url_con-curl_easy, CURLOPT_PROXY, ); + else res = curl_easy_setopt(url_con-curl_easy, CURLOPT_PROXY, proxy); +#else + return -1; + (void)url_con; + (void)proxy; +#endif + return res; +} + +EAPI void +ecore_con_url_timeout_set(Ecore_Con_Url *url_con, double timeout) +{ +#ifdef HAVE_CURL + if (!ECORE_MAGIC_CHECK(url_con, ECORE_MAGIC_CON_URL)) + { +ECORE_MAGIC_FAIL(url_con, ECORE_MAGIC_CON_URL, ecore_con_url_timeout_set); +return; + } + + if (eina_list_data_find(_url_con_list, url_con)) return; + if (!url_con-url || timeout 0) return; + if (url_con-timer) ecore_timer_del(url_con-timer); +url_con-timer = ecore_timer_add(timeout, _ecore_con_url_timeout_cb, url_con); +#else + return; + (void)url_con; + (void)timeout; +#endif +} /** * @} */ #ifdef HAVE_CURL +static Eina_Bool +_ecore_con_url_timeout_cb(void *data) +{ + Ecore_Con_Url *url_con = data; + CURLMcode ret; + Ecore_Con_Event_Url_Complete *e; + + if (!url_con) return ECORE_CALLBACK_CANCEL; + if (!url_con-curl_easy) return ECORE_CALLBACK_CANCEL; + if (!eina_list_data_find(_url_con_list, url_con)) return ECORE_CALLBACK_CANCEL; + + ret = curl_multi_remove_handle(_curlm, url_con-curl_easy); + if (ret != CURLM_OK) ERR(curl_multi_remove_handle failed: %s, curl_multi_strerror(ret)); + _url_con_list = eina_list_remove(_url_con_list, url_con); + + curl_slist_free_all(url_con-headers); + url_con-headers = NULL; + + url_con-timer = NULL; + + e = calloc(1, sizeof(Ecore_Con_Event_Url_Complete)); + if (e) + { +e-url_con = url_con; +e-status = 0; +ecore_event_add(ECORE_CON_EVENT_URL_COMPLETE, e, _ecore_con_event_url_free, NULL); + } + return ECORE_CALLBACK_CANCEL; +} + static size_t _ecore_con_url_data_cb(void *buffer, size_t size, Index: src/lib/ecore_con/Ecore_Con.h === --- src/lib/ecore_con/Ecore_Con.h (리비전 66269) +++ src/lib/ecore_con/Ecore_Con.h (작업 사본) @@ -1845,6 +1845,40 @@ EAPI int ecore_con_url_ssl const char *ca_path); /** + * Set HTTP proxy to use. + * + * The parameter should be a char * to a zero terminated string holding + * the host name or dotted IP address. To specify port number in this string, + * append :[port] to the end of the host name. + * The proxy string may be prefixed with [protocol]:// since any such prefix + * will be ignored. + * The proxy's port number may optionally be specified with the separate option. + * If not specified, libcurl will default to using port 1080 for proxies. + * + * @param url_con Connection object that will use the proxy. + * @param proxy Porxy string or @c NULL to disable + * + * @return @c 0 on success. When cURL is used, non-zero return values + * are equal to cURL error codes. + * @since 1.2 + */ +EAPI int ecore_con_url_proxy_set(Ecore_Con_Url *url_con,
Re: [E-devel] [PATCH] scim-EFL immodule
2011/12/16 Jihoon Kim imfin...@gmail.com: Hi, EFL developers. I'd like to contribute EFL-scim immodule. It will be useful to users who wants to input Chinese, Japanese, Korean, and a variety of languages that SCIM provides. You can build this module according to the below steps: # sudo apt-get install scim-dev # tar xvfz escim_immodule.tar.gz # cd escim_immodule # ./autogen.sh # make # sudo make install When you run, you should set environment variable 'ECORE_IMF_MODULE' # export ECORE_IMF_MODULE=scim # elementary_test Would you please review this patch and please let me know if this module can be put in EFL. Didn't test it, but how does it differ from the current XIM module? Thanks. -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Little patch for E_Connman.h
Hello e people, There is two missing declarations in E_Connman.h : - e_connman_service_nameservers_configuration_get() - e_connman_service_nameservers_configuration_set() Without e_connman_service_nameservers_configuration_set() you cant specify any nameserver in “manual” method I attached a patch Index: src/lib/connman0_7x/E_Connman.h === --- src/lib/connman0_7x/E_Connman.h (révision 66284) +++ src/lib/connman0_7x/E_Connman.h (copie de travail) @@ -156,6 +156,8 @@ EAPI Eina_Bool e_connman_service_logi EAPI Eina_Bool e_connman_service_roaming_get(const E_Connman_Element *service, Eina_Bool *roaming) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT; EAPI Eina_Bool e_connman_service_nameservers_get(const E_Connman_Element *service, unsigned int *count, const char ***nameserver) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT; +EAPI Eina_Bool e_connman_service_nameservers_configuration_get(const E_Connman_Element *service, unsigned int *count, const char ***nameservers) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT; +EAPI Eina_Bool e_connman_service_nameservers_configuration_set(E_Connman_Element *service, unsigned int count, const char **nameservers, E_DBus_Method_Return_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3, 4, 5) EINA_WARN_UNUSED_RESULT; EAPI Eina_Bool e_connman_service_domains_get(const E_Connman_Element *service, unsigned int *count, const char ***domains) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT; EAPI Eina_Bool e_connman_service_ipv4_method_get(const E_Connman_Element *service, const char **method) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT; attachment: guillaume_friloux.vcf signature.asc Description: OpenPGP digital signature -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] scim-EFL immodule
According to scim official site ( http://www.scim-im.org/wiki/documentation/installation_and_configuration/all/system_configuration ), it describes the disadvantages of XIM like below : Because the XIM protocol has a lot of limitations (for example, it may freeze your entire X when something goes wrong with the input method server), this combination of settings is generally not recommended. Higher level input method protocol support Alternatively to the above method, you can ask your GTK/Qt applications to make use of the GTK/Qt im-module, which are specifically designed to meet modern input method requirements. ATM, the difference is that the scim immodule I've sent displays the candidate window in the appropriate position (the below line of cursor), but XIM doesn't. (In GTK application, XIM module of GTK doesn't display the candidate window in the normal position.) Thanks. On Fri, Dec 16, 2011 at 9:24 PM, Iván Briano (Sachiel) sachi...@gmail.comjavascript:_e({}, 'cvml', 'sachi...@gmail.com'); wrote: 2011/12/16 Jihoon Kim imfin...@gmail.com javascript:_e({}, 'cvml', 'imfin...@gmail.com');: Hi, EFL developers. I'd like to contribute EFL-scim immodule. It will be useful to users who wants to input Chinese, Japanese, Korean, and a variety of languages that SCIM provides. You can build this module according to the below steps: # sudo apt-get install scim-dev # tar xvfz escim_immodule.tar.gz # cd escim_immodule # ./autogen.sh # make # sudo make install When you run, you should set environment variable 'ECORE_IMF_MODULE' # export ECORE_IMF_MODULE=scim # elementary_test Would you please review this patch and please let me know if this module can be put in EFL. Didn't test it, but how does it differ from the current XIM module? Thanks. -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net javascript:_e({}, 'cvml', 'enlightenment-devel@lists.sourceforge.net'); https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net javascript:_e({}, 'cvml', 'enlightenment-devel@lists.sourceforge.net'); https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] scim-EFL immodule
2011/12/16 Jihoon Kim imfin...@gmail.com: According to scim official site ( http://www.scim-im.org/wiki/documentation/installation_and_configuration/all/system_configuration ), it describes the disadvantages of XIM like below : Because the XIM protocol has a lot of limitations (for example, it may freeze your entire X when something goes wrong with the input method server), this combination of settings is generally not recommended. Higher level input method protocol support Alternatively to the above method, you can ask your GTK/Qt applications to make use of the GTK/Qt im-module, which are specifically designed to meet modern input method requirements. ATM, the difference is that the scim immodule I've sent displays the candidate window in the appropriate position (the below line of cursor), but XIM doesn't. (In GTK application, XIM module of GTK doesn't display the candidate window in the normal position.) But this talks directly to SCIM? My question goes towards, do we need two or they could be merged and used whatever is appropriate depending on configuration? Thanks. On Fri, Dec 16, 2011 at 9:24 PM, Iván Briano (Sachiel) sachi...@gmail.comjavascript:_e({}, 'cvml', 'sachi...@gmail.com'); wrote: 2011/12/16 Jihoon Kim imfin...@gmail.com javascript:_e({}, 'cvml', 'imfin...@gmail.com');: Hi, EFL developers. I'd like to contribute EFL-scim immodule. It will be useful to users who wants to input Chinese, Japanese, Korean, and a variety of languages that SCIM provides. You can build this module according to the below steps: # sudo apt-get install scim-dev # tar xvfz escim_immodule.tar.gz # cd escim_immodule # ./autogen.sh # make # sudo make install When you run, you should set environment variable 'ECORE_IMF_MODULE' # export ECORE_IMF_MODULE=scim # elementary_test Would you please review this patch and please let me know if this module can be put in EFL. Didn't test it, but how does it differ from the current XIM module? Thanks. -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net javascript:_e({}, 'cvml', 'enlightenment-devel@lists.sourceforge.net'); https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net javascript:_e({}, 'cvml', 'enlightenment-devel@lists.sourceforge.net'); https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] scim-EFL immodule
yes, it connects with scim daemon through unix domain socket directly. 2011. 12. 16. 오후 10:21에 Iván Briano (Sachiel) sachi...@gmail.com님이 작성: 2011/12/16 Jihoon Kim imfin...@gmail.com: According to scim official site ( http://www.scim-im.org/wiki/documentation/installation_and_configuration/all/system_configuration ), it describes the disadvantages of XIM like below : Because the XIM protocol has a lot of limitations (for example, it may freeze your entire X when something goes wrong with the input method server), this combination of settings is generally not recommended. Higher level input method protocol support Alternatively to the above method, you can ask your GTK/Qt applications to make use of the GTK/Qt im-module, which are specifically designed to meet modern input method requirements. ATM, the difference is that the scim immodule I've sent displays the candidate window in the appropriate position (the below line of cursor), but XIM doesn't. (In GTK application, XIM module of GTK doesn't display the candidate window in the normal position.) But this talks directly to SCIM? My question goes towards, do we need two or they could be merged and used whatever is appropriate depending on configuration? Thanks. On Fri, Dec 16, 2011 at 9:24 PM, Iván Briano (Sachiel) sachi...@gmail.comjavascript:_e({}, 'cvml', 'sachi...@gmail.com'); wrote: 2011/12/16 Jihoon Kim imfin...@gmail.com javascript:_e({}, 'cvml', 'imfin...@gmail.com');: Hi, EFL developers. I'd like to contribute EFL-scim immodule. It will be useful to users who wants to input Chinese, Japanese, Korean, and a variety of languages that SCIM provides. You can build this module according to the below steps: # sudo apt-get install scim-dev # tar xvfz escim_immodule.tar.gz # cd escim_immodule # ./autogen.sh # make # sudo make install When you run, you should set environment variable 'ECORE_IMF_MODULE' # export ECORE_IMF_MODULE=scim # elementary_test Would you please review this patch and please let me know if this module can be put in EFL. Didn't test it, but how does it differ from the current XIM module? Thanks. -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net javascript:_e({}, 'cvml', 'enlightenment-devel@lists.sourceforge.net'); https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net javascript:_e({}, 'cvml', 'enlightenment-devel@lists.sourceforge.net'); https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a
Re: [E-devel] [PATCH] scim-EFL immodule
2011/12/16 Jihoon Kim imfin...@gmail.com: yes, it connects with scim daemon through unix domain socket directly. Ah, fine then. Changing subject, the candidate list is still done by SCIM or it's possible to fetch the candidate to show ourselves? -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] scim-EFL immodule
scim panel process shows the candidate list itself. These candidate data is provided by scim imengines. Those engine is running in scim-laucher process. In ecore_imf or gtk_imcotext, there is no API to fetch the cadidate. 2011. 12. 16. 오후 11:01에 Iván Briano (Sachiel) sachi...@gmail.com님이 작성: 2011/12/16 Jihoon Kim imfin...@gmail.com: yes, it connects with scim daemon through unix domain socket directly. Ah, fine then. Changing subject, the candidate list is still done by SCIM or it's possible to fetch the candidate to show ourselves? -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] scim-EFL immodule
2011/12/16 Jihoon Kim imfin...@gmail.com: scim panel process shows the candidate list itself. These candidate data is provided by scim imengines. Those engine is running in scim-laucher process. In ecore_imf or gtk_imcotext, there is no API to fetch the cadidate. Thought so, didn't see anything like it when I looked into it 1000 years ago. But well, someday we'll have our pretty Edje'd candidates. As for getting it into SVN, if it's just another module I don't see a reason why not to. My quick test shows it working and you know your stuff on this and already contributed your fair share of patches for Ecore_IMF and the Xim module. 2011. 12. 16. 오후 11:01에 Iván Briano (Sachiel) sachi...@gmail.com님이 작성: 2011/12/16 Jihoon Kim imfin...@gmail.com: yes, it connects with scim daemon through unix domain socket directly. Ah, fine then. Changing subject, the candidate list is still done by SCIM or it's possible to fetch the candidate to show ourselves? -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk/evas: . src/lib src/lib/canvas src/lib/include
no NEWS update ? (same for ecore_evas extn) Vincent On Fri, Dec 16, 2011 at 10:24 AM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Add new api to set and get default event flags. Author: raster Date: 2011-12-16 01:24:18 -0800 (Fri, 16 Dec 2011) New Revision: 66275 Trac: http://trac.enlightenment.org/e/changeset/66275 Modified: trunk/evas/ChangeLog trunk/evas/src/lib/Evas.h trunk/evas/src/lib/canvas/evas_events.c trunk/evas/src/lib/include/evas_private.h Modified: trunk/evas/ChangeLog === --- trunk/evas/ChangeLog 2011-12-16 09:07:41 UTC (rev 66274) +++ trunk/evas/ChangeLog 2011-12-16 09:24:18 UTC (rev 66275) @@ -567,3 +567,8 @@ * Textblock: Added b and i as default tags that can be overridden by style, and added the infra to support this. * Textblock: Added evas_textblock_text_utf8_to_markup + +2011-12-16 Carsten Haitzler (The Rasterman) + + * Add new api to set and get default event flags. + Modified: trunk/evas/src/lib/Evas.h === --- trunk/evas/src/lib/Evas.h 2011-12-16 09:07:41 UTC (rev 66274) +++ trunk/evas/src/lib/Evas.h 2011-12-16 09:24:18 UTC (rev 66275) @@ -2375,6 +2375,33 @@ */ /** + * Set the default set of flags an event begins with + * + * @param e The canvas to set the default event flags of + * @param flags The default flags to use + * + * Events in evas can have an event_flags member. This starts out with + * and initial value (no flags). this lets you set the default flags that + * an event begins with to be @p flags + * + * @since 1.2 + */ +EAPI void evas_event_default_flags_set (Evas *e, Evas_Event_Flags flags) EINA_ARG_NONNULL(1); + +/** + * Get the defaulty set of flags an event begins with + * + * @param e The canvas to get the default event flags from + * @return The default event flags for that canvas + * + * This gets the default event flags events are produced with when fed in. + * + * @see evas_event_default_flags_set() + * @since 1.2 + */ +EAPI Evas_Event_Flags evas_event_default_flags_get (const Evas *e) EINA_ARG_NONNULL(1); + +/** * Freeze all input events processing. * * @param e The canvas to freeze input events processing on. Modified: trunk/evas/src/lib/canvas/evas_events.c === --- trunk/evas/src/lib/canvas/evas_events.c 2011-12-16 09:07:41 UTC (rev 66274) +++ trunk/evas/src/lib/canvas/evas_events.c 2011-12-16 09:24:18 UTC (rev 66275) @@ -136,6 +136,24 @@ /* public functions */ EAPI void +evas_event_default_flags_set(Evas *e, Evas_Event_Flags flags) +{ + MAGIC_CHECK(e, Evas, MAGIC_EVAS); + return; + MAGIC_CHECK_END(); + e-default_event_flags = flags; +} + +EAPI Evas_Event_Flags +evas_event_default_flags_get(const Evas *e) +{ + MAGIC_CHECK(e, Evas, MAGIC_EVAS); + return EVAS_EVENT_FLAG_ON_HOLD; + MAGIC_CHECK_END(); + return e-default_event_flags; +} + +EAPI void evas_event_freeze(Evas *e) { MAGIC_CHECK(e, Evas, MAGIC_EVAS); @@ -225,7 +243,7 @@ ev.locks = (e-locks); ev.flags = flags; ev.timestamp = timestamp; - ev.event_flags = EVAS_EVENT_FLAG_NONE; + ev.event_flags = e-default_event_flags; _evas_walk(e); /* append new touch point to the touch point list */ @@ -295,7 +313,7 @@ ev.modifiers = (e-modifiers); ev.locks = (e-locks); ev.timestamp = timestamp; - ev.event_flags = EVAS_EVENT_FLAG_NONE; + ev.event_flags = e-default_event_flags; /* get new list of ins */ ins = evas_event_objects_event_list(e, NULL, e-pointer.x, e-pointer.y); @@ -339,7 +357,7 @@ ev_in.modifiers = (e-modifiers); ev_in.locks = (e-locks); ev_in.timestamp = timestamp; - ev_in.event_flags = EVAS_EVENT_FLAG_NONE; + ev_in.event_flags = e-default_event_flags; EINA_LIST_FOREACH(ins, l, obj_itr) { @@ -417,7 +435,7 @@ ev.locks = (e-locks); ev.flags = flags; ev.timestamp = timestamp; - ev.event_flags = EVAS_EVENT_FLAG_NONE; + ev.event_flags = e-default_event_flags; _evas_walk(e); /* update released touch point */ @@ -510,7 +528,7 @@ ev.modifiers = (e-modifiers); ev.locks = (e-locks); ev.timestamp = timestamp; - ev.event_flags = EVAS_EVENT_FLAG_NONE; + ev.event_flags = e-default_event_flags; _evas_walk(e); copy = evas_event_list_copy(e-pointer.object.in); @@ -587,7 +605,7 @@ ev.modifiers = (e-modifiers); ev.locks = (e-locks); ev.timestamp = timestamp; - ev.event_flags = EVAS_EVENT_FLAG_NONE; + ev.event_flags = e-default_event_flags; copy = evas_event_list_copy(e-pointer.object.in);