aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libraries
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-05 05:42:54 +1000
committerDavid Walter Seikel2014-05-05 05:42:54 +1000
commit579b3b0afdff09433a2153a254b1d66abdb906ee (patch)
treefdfbee6eec1defe0f0ff5e8089552d317ee58fd7 /src/libraries
parentMerge inline and external window creation. (diff)
downloadSledjHamr-579b3b0afdff09433a2153a254b1d66abdb906ee.zip
SledjHamr-579b3b0afdff09433a2153a254b1d66abdb906ee.tar.gz
SledjHamr-579b3b0afdff09433a2153a254b1d66abdb906ee.tar.bz2
SledjHamr-579b3b0afdff09433a2153a254b1d66abdb906ee.tar.xz
Move winFang to libraries, and convert GuiLua to use it.
Diffstat (limited to '')
-rwxr-xr-xsrc/libraries/build.lua5
-rw-r--r--src/libraries/winFang.c (renamed from src/extantz/winFang.c)9
-rw-r--r--src/libraries/winFang.h (renamed from src/extantz/winFang.h)10
3 files changed, 20 insertions, 4 deletions
diff --git a/src/libraries/build.lua b/src/libraries/build.lua
index 6566e66..4e277e1 100755
--- a/src/libraries/build.lua
+++ b/src/libraries/build.lua
@@ -15,7 +15,7 @@ end
15 15
16LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS 16LDFLAGS = '-L ' .. dir .. ' ' .. LDFLAGS
17 17
18removeFiles(dir, {'LumbrJack.o', lib_d .. '/libLumbrJack.so', 'Runnr.o', lib_d .. '/libRunnr.so', 'SledjHamr.o', lib_d .. '/libSledjHamr.so'}) 18removeFiles(dir, {'LumbrJack.o', lib_d .. '/libLumbrJack.so', 'Runnr.o', lib_d .. '/libRunnr.so', 'SledjHamr.o', lib_d .. '/libSledjHamr.so', 'winFang.o', lib_d .. '/libwinFang.so'})
19 19
20runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c LumbrJack.c') 20runCommand('C libraries', dir, 'gcc ' .. CFLAGS .. ' -fPIC -c LumbrJack.c')
21runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libLumbrJack.so -o ' .. lib_d .. '/libLumbrJack.so LumbrJack.o') 21runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libLumbrJack.so -o ' .. lib_d .. '/libLumbrJack.so LumbrJack.o')
@@ -31,3 +31,6 @@ CFLAGS = CFLAGS .. ' -DPACKAGE_LOCALE_DIR=\\"' .. locale_d .. '\\"'
31 31
32runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c SledjHamr.c') 32runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c SledjHamr.c')
33runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libSledjHamr.so -o ' .. lib_d .. '/libSledjHamr.so SledjHamr.o') 33runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libSledjHamr.so -o ' .. lib_d .. '/libSledjHamr.so SledjHamr.o')
34
35runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -fPIC -c winFang.c')
36runCommand(nil, dir, 'gcc ' .. CFLAGS .. ' -shared -Wl,-soname,libwinFang.so -o ' .. lib_d .. '/libwinFang.so winFang.o')
diff --git a/src/extantz/winFang.c b/src/libraries/winFang.c
index a38845a..4d54627 100644
--- a/src/extantz/winFang.c
+++ b/src/libraries/winFang.c
@@ -1,4 +1,4 @@
1#include "extantz.h" 1#include "winFang.h"
2 2
3 3
4// Elm inlined image windows needs this to change focus on mouse click. 4// Elm inlined image windows needs this to change focus on mouse click.
@@ -144,7 +144,6 @@ winFang *winFangAdd(Evas_Object *parent, int x, int y, int w, int h, char *title
144 } 144 }
145 else 145 else
146 { 146 {
147 elm_config_preferred_engine_set("opengl_x11");
148 result->win = elm_win_add(parent, name, ELM_WIN_BASIC); 147 result->win = elm_win_add(parent, name, ELM_WIN_BASIC);
149 evas_object_move(result->win, result->x, result->y); 148 evas_object_move(result->win, result->x, result->y);
150 evas_object_smart_callback_add(result->win, "delete,request", _on_done, NULL); 149 evas_object_smart_callback_add(result->win, "delete,request", _on_done, NULL);
@@ -198,7 +197,11 @@ Widget *widgetAdd(winFang *win, const Eo_Class *klass, Evas_Object *parent, char
198 evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL), 197 evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL),
199 evas_obj_visibility_set(EINA_TRUE) 198 evas_obj_visibility_set(EINA_TRUE)
200 ); 199 );
201 if (title) elm_object_text_set(result->obj, title); 200 if (title)
201 {
202 result->label = strdup(title);
203 elm_object_text_set(result->obj, result->label);
204 }
202 } 205 }
203 206
204 return result; 207 return result;
diff --git a/src/extantz/winFang.h b/src/libraries/winFang.h
index 6ae26e4..219dcf0 100644
--- a/src/extantz/winFang.h
+++ b/src/libraries/winFang.h
@@ -1,3 +1,13 @@
1#define EFL_API_OVERRIDE 1
2/* Enable access to unstable EFL API that are still in beta */
3#define EFL_BETA_API_SUPPORT 1
4/* Enable access to unstable EFL EO API. */
5#define EFL_EO_API_SUPPORT 1
6
7
8#include <Eo.h>
9#include <Eina.h>
10#include <Evas.h>
1#include <Elementary.h> 11#include <Elementary.h>
2 12
3 13