Commit Graph

3330 Commits

Author SHA1 Message Date
Christopher Michael 0dc787ee6b elementary_test: Fix warning about truncated string
gcc reports output between 7 and 17 bytes into a dest of size 16 so
increase destination size slightly

@fix
2022-05-18 08:27:59 -04:00
Carsten Haitzler 8d4a2a70cf elm cnp - add uri list so you can sensibly do dnd for a filemanager 2022-04-03 21:11:59 +01:00
Carsten Haitzler ec80ef2ce4 efreetd - use putenv for better porting to weird os's 2022-01-09 21:14:23 +00:00
Vincent Torri 711638c7d2 Elm_tests: resize windows according to elm scale
Summary: On laptop with 4K display, windows are too small, so resize windows according to elm scale

Test Plan: elm_tests

Reviewers: raster

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12307
2021-12-04 09:18:47 +00:00
Carsten Haitzler cf0df4872d edje + elm - add new explicit tracking of all cc's used in edj themes
edje_cc now lists all cc's used in an edj file. edje provides an api
to list this. elm now uses this api to expose a list of all cc's used
acorss all the theme(s) selected by the user. this will then be used
by paledit to produce a nicer gui with a list of available cc's to add
etc. and split between basic and extended.

@feat
2021-10-31 11:44:57 +00:00
Christopher Michael 57a5655f88 exactness: Fix compiler warning of uninitialized variable
Compiler is warning us here that ex_img has not been initialized after
being malloc'd, so let's initialize it
2021-10-05 10:27:45 -04:00
Carsten Haitzler aa96bf5987 elm - map widget - empty out and clean out code and tests - broken
elm map has been broken for a long time now sue to upstream web api
changes/breaks made by openstreetmaps. this isn't sustainable to have
code do this. since it's broken there is little point keeping code for
something that is totally non-functional, so reduce code, document it
as broken and remove tests. at least symbols remain so no missing
symbols and code using it will end up with an empty non-functional
widget (much like they would without these changes anyway).

@feat
2021-09-05 11:47:22 +01:00
Ali Alzyod 5f419d5b5f fix if state formatting 2021-08-30 21:19:14 +03:00
Ali Alzyod 3a5d04b125 Content Fit Enhancment
Summary:
Allow user to get currently used font size when Text Fitting is enabled.

previously, the user can not know what is current font size, he only specifies font size ranges, and the algorithm internally decides suitable font size.
with this change, the user has the ability to know the font size, that the fitting algorithm has picked

Reviewers: raster

Subscribers: raster, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12288
2021-08-30 21:13:38 +03:00
Carsten Haitzler ef6dc3c2ba elm theme - more cc 2021-08-29 12:00:50 +01:00
Marcel Hollerbach 34e4e110a2 eldbus: fix to dbus_name_to_c method
"-" in names should be converted to _
2021-07-14 15:28:59 +02:00
Marcel Hollerbach bad5440b2b Revert "eldbus: do not generate method names with - in name"
This reverts commit 364cc9dcba.

Not for master yet
2021-07-14 15:12:11 +02:00
Marcel Hollerbach 364cc9dcba eldbus: do not generate method names with - in name 2021-07-14 15:03:57 +02:00
Christopher Michael 868a5c28ff exactness: Make sure image valid before usage....
dh
2021-06-28 00:14:49 -04:00
josef radinger 6b38c62314 fix typo
Summary: just a small typo

Test Plan: -

Reviewers: raster

Reviewed By: raster

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12281
2021-05-30 20:43:41 +01:00
Carsten Haitzler 26ea0eaac2 embryo - embryo_cc - one more warning bites the dust 2021-05-26 13:50:07 +01:00
Carsten Haitzler 0dab01b44d embryo - embryo_cc - silence some new gcc warnings - try 2
all warnings bar 1 fixed. my manual strncpy seems ot have an issue -
commented out.
2021-05-26 04:42:22 +01:00
Carsten Haitzler e9fcaa7339 Revert "embryo - embryo_cc - silence some new gcc warnings"
This reverts commit f4ff12406c.

hmm - it seems this warning silencing didn't work. revisit...
2021-05-26 04:40:09 +01:00
Carsten Haitzler f4ff12406c embryo - embryo_cc - silence some new gcc warnings
lets us focus on real errors in warnings if we have silence
2021-05-26 04:33:54 +01:00
Carsten Haitzler 3f08cd7156 exactness - fix warnings for casts from 32bit ptr to larger long long 2021-05-12 19:54:55 +01:00
Carsten Haitzler cabf08e6de elm config - add palette config and adjust icons in toolbar 2021-05-11 12:20:23 +01:00
Carsten Haitzler 954c1ea387 exactness player edj - tag for right efl version 2021-05-07 00:02:05 +01:00
Vincent Torri de296b13c8 Eina: use eina_fnmatch() instead of fnmatch()
Reviewers: raster

Reviewed By: raster

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12262
2021-05-03 18:48:24 +01:00
Carsten Haitzler 54c120db7a elm test - add cbs to other border style 2021-04-18 20:38:30 +01:00
Carsten Haitzler 301bd78a19 elm theme - emit right signal for frame close 2021-04-18 20:20:36 +01:00
Carsten Haitzler 7c16765e1b elm frame - add more styles (icon, border and overlay variants)
this shoulpd have been day 0, but now add new styles that add an
elm.swallow.icon spot for an icon in the frame and a style that looks
like a border (also with icon as borders have them) and a close button
too. overlay variants are for overlaying so might be semi-transparent
2021-04-18 00:59:09 +01:00
Carsten Haitzler 5b17444313 edje - edje_cc - add no warning for unused images and use it
a test edje has lots of unused images - it's not important so silence
warnings.
2021-04-16 04:09:06 +01:00
Carsten Haitzler aef36c6e5b edje_cc - dont try strip images that are unused at all
my previous disable didnt disable all the unused image stripping. this
now does. this code is buggy especially with image sets, to remove it
and let the warnings to the job for those compiling themes.
2021-04-16 03:54:53 +01:00
Carsten Haitzler b90a8a1819 elm theme - add overlay and blank styles for buttons
useful for things like entice
2021-03-31 11:29:33 +01:00
Carsten Haitzler 5687e0e928 exactness - fix build due to removal of files from default theme 2021-03-27 19:21:46 +00:00
Carsten Haitzler 6899bd034c elm conffig - display icons if using elm icon theme
also use different sample icons i think work better
2021-03-04 13:44:30 +00:00
Carsten Haitzler e1226ecfff elm - test - genlist - add more callback event printfs for testing 2021-01-27 11:56:42 +00:00
Carsten Haitzler c40e80dd48 elm - fix elm_config args parsing/collecting
@fix
2021-01-21 19:41:19 +00:00
Felipe Magno de Almeida 8d18009419 eolian: Add -e parameter to pass export symbol to eolian generator
Summary:
Eolian generator must have a parameter so it can generate the correct
symbol export/import macro for the API generated.

This makes it possible to define the symbols as being local to a
single DSO without the need to guard the generated headers or
generated source files with #define and #undef preprocessor
statements.

=  The Rationale =

This patch is from a series of patches to rename EAPI symbols to
specific library DSOs.

EAPI was designed to be able to pass
`__attribute__ ((visibility ("default")))` for symbols with
GCC, which would mean that even if -fvisibility=hidden was used
when compiling the library, the needed symbols would get exported.

MSVC __almost__ works like GCC (or mingw) in which you can
declare everything as export and it will just work (slower, but
it will work). But there's a caveat: global variables will not
work the same way for MSVC, but works for mingw and GCC.

For global variables (as opposed to functions), MSVC requires
correct DSO visibility for MSVC: instead of declaring a symbol as
export for everything, you need to declare it as import when
importing from another DSO and export when defining it locally.

With current EAPI definitions, we get the following example
working in mingw and MSVC (observe it doesn't define any global
variables as exported symbols).

Example 1:
dll1:
```
EAPI void foo(void);

EAPI void bar()
{
  foo();
}
```
dll2:
```
EAPI void foo()
{
  printf ("foo\n");
}
```

This works fine with API defined as __declspec(dllexport) in both
cases and for gcc defining as
`__atttribute__((visibility("default")))`.

However, the following:
Example 2:

dll1:

```
EAPI extern int foo;
EAPI void foobar(void);

EAPI void bar()
{
  foo = 5;
  foobar();
}
```

dll2:

```
EAPI int foo = 0;
EAPI void foobar()
{
  printf ("foo %d\n", foo);
}
```

This will work on mingw but will not work for MSVC. And that's why
LIBAPI is the only solution that works for MSVC.

Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com>
Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev>

Reviewers: q66, vtorri, woohyun, jptiz, lucas

Reviewed By: vtorri, lucas

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12197
2020-12-04 10:35:35 -03:00
Carsten Haitzler 42c123d1d7 singularize srand in eina_init - only once in one place
simplify down to having a single srand() in eina_init and use urandom
if it works and is there - if not, time(NULL) will do. it's the best
we can...
2020-10-03 20:46:50 +01:00
Vincent Torri e4866ae3ff fix order and simplify a bit order of _init|_shutdown functions
Summary:
in bin/
ecore_evas.c : remove useless ecore_init
eetpack.c : remove use eina_init and evas_init
eet_main.c : reorder eet_init
efl_debug.c : remove useless eina_init
efl_debugd : reorder log domain
ethumbd.c : remove eina_init
ethumbd_client.c : remove ecore_init (which was anyway misplaced)

Test Plan: compilation

Reviewers: raster

Reviewed By: raster

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12162
2020-09-25 10:30:20 +01:00
Vincent Torri 9bfba0867d edje_external_inspector: re-order _init a bit: log after eina, remove ecore_init/shutdown as it is already managed by edje_init/shutdown
Reviewers: raster

Reviewed By: raster

Subscribers: raster, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12160
2020-09-25 10:29:54 +01:00
Stefan Schmidt 080dbdee51 edje: efl: add new EFL_VERSION_1_26 define for new dev cycle
Thios allows to mark edje file supported for specific versions.
2020-09-22 20:27:18 +02:00
Carsten Haitzler ec4076b895 ethumb - fix idx range check
fix CID 1402612
2020-09-19 23:15:44 +01:00
Carsten Haitzler d64d4568bd ethumb - fix index range check
fix CID 1402628
2020-09-19 23:13:08 +01:00
Carsten Haitzler fd93bed3d1 ethumb - fix index range check
fix CID 1402631
2020-09-19 23:11:53 +01:00
Carsten Haitzler fa2f0b67b9 ethumb - check size read
fix CID 1402633
2020-09-19 23:09:05 +01:00
Carsten Haitzler 99636bdd5f ethumb - check inoput index from stdin
fix CID 1402646
2020-09-19 23:03:20 +01:00
Marcel Hollerbach e2a1cdfda7 build: only find env once
this was a bit messy, and we might have caused a bug on the ML with
that.
2020-09-02 09:25:51 +02:00
Woochanlee 8198345e1f edje_cc: Fix uninitialized scalar variable
Summary:
mo_path can using for fprintf in using_file function without initialize.
fix coverity.

Reviewers: Hermet, raster

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12120
2020-09-01 21:02:57 +09:00
Vincent Torri ba3b082d06 eeze_mount binary: more secure check extension ('.iso' and not 'iso')
Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D12123
2020-09-01 09:35:49 +02:00
Carsten Haitzler b3c5008284 exactness - injecotr - alloc correct buffer size
didn't account for null bytes... fix.
2020-08-25 13:21:25 +01:00
Carsten Haitzler e9adfbae00 exactness - cast enum assign - it is valid due to values. warn fix 2020-08-25 13:21:25 +01:00
Shinwoo Kim bab3f870b8 embryo_cc: ++safty code
Summary:
This patch is increasing safty code by handling following case.

sc_compile > OH!! there is uninitialized loacal variable "outfname"!! >
setopt > about > longjmp > setjmp returns 3 > goto cleanup >

then uninitialized data is read from local variable "outfname".

Reviewers: raster, Hermet, jsuya, herb

Reviewed By: jsuya

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12074
2020-08-05 14:53:35 +09:00
Youngbok Shin 5af8301bad embryo: fix a integer(cell) overflow problem
Summary:
The most of functions for embryo based on cell(int) types.
addvariable(), defsymbol(), modstk() and etc.
Because of this, if embryo script has a really big(INT_MAX / 4) stack variable,
integer overflow problem has been happened.
@fix

Test Plan:
Put a script in your EDC like the following code.
Build it and try to access the variable.
Or check the writen HEX value by embryo_cc.

script {
   // It's size is 1,000,000,000.
   // Remember, INT_MAX is 2,147,483,647.
   new my_big_variable[1000000000];
   ...
}

Reviewers: cedric, woohyun, raster, eunue, SanghyeonLee

Reviewed By: eunue, SanghyeonLee

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12081
2020-08-04 14:48:02 +09:00