diff --git a/meson.build b/meson.build index 3061bde2..53a3ea7f 100644 --- a/meson.build +++ b/meson.build @@ -93,18 +93,18 @@ if cc.has_function('strchrnul') config_data.set('HAVE_STRCHRNUL', 1) endif -url_head_code = '''#include -int main(void) { ecore_con_url_head(NULL); return 0; } +sel_format_urilist_code = '''#include +int main(void) { return ELM_SEL_FORMAT_URILIST; } ''' found = 'Not found' -if cc.links(url_head_code, dependencies: terminology_dependencies) - config_data.set('HAVE_ECORE_CON_URL_HEAD', 1) +if cc.links(sel_format_urilist_code, dependencies: terminology_dependencies) + config_data.set('HAVE_ELM_SEL_FORMAT_URILIST', 1) found = 'Found' endif -message('Checking for ecore_con_url_head: ' + found) +message('Checking for ELM_SEL_FORMAT_URILIST: ' + found) eet_bin = get_option('eet') if eet_bin == '' diff --git a/src/bin/termio.c b/src/bin/termio.c index 20c45977..c6c16293 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -1208,6 +1208,9 @@ _getsel_cb(void *data, case ELM_SEL_FORMAT_IMAGE: fmt = "IMAGE"; break; case ELM_SEL_FORMAT_VCARD: fmt = "VCARD"; break; case ELM_SEL_FORMAT_HTML: fmt = "HTML"; break; +#ifdef HAVE_ELM_SEL_FORMAT_URILIST + case ELM_SEL_FORMAT_URILIST: fmt = "URILIST"; break; +#endif } WRN(_("unsupported selection format '%s'"), fmt); }