aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libraries
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-16 19:00:15 +1000
committerDavid Walter Seikel2014-05-16 19:00:15 +1000
commit2073fbca6ae3fb1f202df32d4f14771f8866660d (patch)
tree68bfd83064ced600210ea52c39ecd2b00f7ec884 /src/libraries
parentStick the connection to the love server in the GuiLua structure, and related ... (diff)
downloadSledjHamr-2073fbca6ae3fb1f202df32d4f14771f8866660d.zip
SledjHamr-2073fbca6ae3fb1f202df32d4f14771f8866660d.tar.gz
SledjHamr-2073fbca6ae3fb1f202df32d4f14771f8866660d.tar.bz2
SledjHamr-2073fbca6ae3fb1f202df32d4f14771f8866660d.tar.xz
Put module name in winFang and winFang in Widget, plus related tweakage and use.
Diffstat (limited to 'src/libraries')
-rw-r--r--src/libraries/winFang.c1
-rw-r--r--src/libraries/winFang.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libraries/winFang.c b/src/libraries/winFang.c
index d7feb39..5662970 100644
--- a/src/libraries/winFang.c
+++ b/src/libraries/winFang.c
@@ -395,6 +395,7 @@ Widget *widgetAdd(winFang *win, char *type , char *title, int x, int y, int w, i
395 strcpy(result->magic, "Widget"); 395 strcpy(result->magic, "Widget");
396 strcpy(result->type, type); 396 strcpy(result->type, type);
397 eina_clist_add_head(&win->widgets, &result->node); 397 eina_clist_add_head(&win->widgets, &result->node);
398 result->win = win;
398 399
399 result->obj = eo_add(klass, win->win, 400 result->obj = eo_add(klass, win->win,
400 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 401 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
diff --git a/src/libraries/winFang.h b/src/libraries/winFang.h
index edec11b..3d721ef 100644
--- a/src/libraries/winFang.h
+++ b/src/libraries/winFang.h
@@ -61,6 +61,7 @@ typedef struct _winFang
61 EPhysics_Body *body; 61 EPhysics_Body *body;
62 Eina_Clist widgets; 62 Eina_Clist widgets;
63 Eina_Clist winFangs; 63 Eina_Clist winFangs;
64 char *module;
64 int x, y, w, h, mw, mh; 65 int x, y, w, h, mw, mh;
65 66
66 Evas_Object *hand[4]; 67 Evas_Object *hand[4];
@@ -75,6 +76,7 @@ typedef struct _Widget
75 char magic[8]; 76 char magic[8];
76 char type[16]; 77 char type[16];
77 Evas_Object *obj; 78 Evas_Object *obj;
79 winFang *win;
78 80
79 char *label, *look, *action, *help; 81 char *label, *look, *action, *help;
80 // foreground / background colour 82 // foreground / background colour