Compare commits

...

13 Commits

Author SHA1 Message Date
Dmitri Chudinov e371555774
Merge branch 'ecore-glib' 2023-12-13 20:47:45 +05:00
Dmitri Chudinov 7d74e3fad8
Merge branch 'devs/dimmus/elm_config_icons' 2023-12-13 20:46:49 +05:00
Dmitri Chudinov 32e5fb84b0
Merge branch 'devs/dimmus/elm_config_profile' 2023-12-13 20:46:33 +05:00
Dmitri Chudinov 72d191bde7
Merge branch 'devs/dimmus/ecore_evas_sdl_fix' 2023-12-13 20:45:19 +05:00
Dmitri Chudinov 5f2df980ac
Merge branch 'devs/dimmus/examples_ecore_audio_fix' 2023-12-13 20:45:00 +05:00
Dmitri Chudinov c67c6ccc01
Merge branch 'devs/dimmus/elua_fix_fix' 2023-12-13 20:44:29 +05:00
Dmitri Chudinov 67dde68af7
elua: move err label to ENABLE_LUA_OLD defined branch 2023-12-06 20:30:35 +05:00
Dmitri Chudinov 986c4f9214
elua: solve discarded 'const' qualifier warning 2023-12-06 20:28:06 +05:00
Dmitri Chudinov d87e2f54df
examples: solve EFL_BETA_API_SUPPORT redefinition warning 2023-12-06 20:20:40 +05:00
Dmitri Chudinov 20e4c949df
ecore_evas_sdl: add attribute to unused parameter
Test with -Dsdl=true
2023-12-06 20:03:11 +05:00
Dmitri Chudinov 45d7e64775
elm-config: correct wrong "if" statement
If nothing is selected then nothing to disable.
"If" statement did not work here until now.

Test:
1. Run elementary_config from terminal.
2. Select Profile menu item (make no clicks on any item).
4. Close the app.
3. Verify the error log messages before to and following the patch.

@fixed
2023-11-15 19:36:33 +05:00
Dmitri Chudinov 16decad1aa
elm-config: add icons to menu
Some menu items of elementary_config have no icons. So add some. Not the best design solution, but better than nothing.

Activated i-utilities icon. Only the icons that were already in efl were used.

@fixed
2023-11-15 19:18:05 +05:00
Dmitri Chudinov f5ce4f8290
ecore: solve error with gsource = null
Compiling using -Dglib=true and -Dg-mainloop=true causes glib errors every time when efreet_icon_cache_create is invoked (ex., run and stop elementary_config and observe the terminal output).

So, i added error message in place where ecore_glib_source may be undefined. The issue was with undefined ecore_glib_source variable in _ecore_main_loop_setup function. Here _ecore_main_fdh_poll_add was used before actual ecore_glib_source definition.

@fixed
2023-11-15 18:28:40 +05:00
6 changed files with 17 additions and 9 deletions

View File

@ -1,6 +1,8 @@
// Compile with:
// gcc -o ecore_audio_custom ecore_audio_custom.c `pkg-config --libs --cflags ecore ecore-audio`
#define EFL_BETA_API_SUPPORT
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#include <stdio.h>
#include <sys/types.h>

View File

@ -1,6 +1,8 @@
// Compile with:
// gcc -o ecore_audio_playback ecore_audio_playback.c `pkg-config --libs --cflags ecore eina ecore-audio`
#define EFL_BETA_API_SUPPORT
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#include <stdio.h>
#include <string.h>

View File

@ -1,6 +1,8 @@
// Compile with:
// gcc -o ecore_audio_to_ogg ecore_audio_to_ogg.c `pkg-config --libs --cflags ecore eina ecore-audio`
#define EFL_BETA_API_SUPPORT
#ifndef EFL_BETA_API_SUPPORT
# define EFL_BETA_API_SUPPORT
#endif
#include <stdio.h>
#include <libgen.h>

View File

@ -193,11 +193,13 @@ elua_state_new(const char *progname)
lua_setfield(L, LUA_REGISTRYINDEX, "elua_ptr1");
lua_setfield(L, LUA_REGISTRYINDEX, "elua_ptr2");
return ret;
#ifdef ENABLE_LUA_OLD
err:
lua_close(L);
eina_stringshare_del(ret->progname);
free(ret);
return NULL;
#endif
}
EAPI void

View File

@ -458,7 +458,7 @@ static Ecore_Evas_Engine_Func _ecore_sdl_engine_func =
};
static Ecore_Evas*
_ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fullscreen, int hwsurface, int noframe, int alpha)
_ecore_evas_internal_sdl_new(int rmethod, const char* name, int w, int h, int fullscreen, int hwsurface, int noframe EINA_UNUSED, int alpha)
{
Ecore_Evas_SDL_Switch_Data *swd;
Ecore_Evas *ee;

View File

@ -21,9 +21,9 @@ EFL_START_TEST(elua_api)
lua_State *lst;
FILE *f;
int fd;
char *cargv[2];
char arg1[] = "test";
char arg2[] = "test";
const char *cargv[2];
const char arg1[] = "test";
const char arg2[] = "test";
int quit = 0;
cargv[0] = arg1;
cargv[1] = arg2;
@ -106,14 +106,14 @@ EFL_START_TEST(elua_api)
fprintf(f, "return true");
fclose(f);
cargv[1] = tmpf;
fail_if(!elua_util_script_run(st, 2, cargv, 1, &quit));
fail_if(!elua_util_script_run(st, 2, (char **)cargv, 1, &quit));
fail_if(quit != 1);
f = fopen(tmpf, "wb");
fail_if(!f);
fprintf(f, "return false");
fclose(f);
fail_if(!elua_util_script_run(st, 2, cargv, 1, &quit));
fail_if(!elua_util_script_run(st, 2, (char **)cargv, 1, &quit));
fail_if(quit != 0);
fail_if(remove(tmpf));