aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Caseiro <puppetmaster.e17@gmail.com>2006-02-06 20:33:15 +0100
committerPuppet_Master <puppetmaster.e17@gmail.com>2006-02-06 20:33:15 +0100
commit3badef3f3917c74642af4e3132bcf1c36601fe54 (patch)
tree703d48117db2f5cde4a93a2b5d07a38296d9861c
parentSEGV solved ... (diff)
downloadensorcel-3badef3f3917c74642af4e3132bcf1c36601fe54.tar.gz
continue working on tool box
-rw-r--r--src/Makefile.am1
-rw-r--r--src/ensorcel.h13
-rw-r--r--src/ensorcel_sourcemage_tools.c10
3 files changed, 21 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ecbef07..09dd711 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,6 +26,7 @@ ensorcel_SOURCES = \
ensorcel_launch.c \
ensorcel_sorcery_actions.c \
ensorcel_error.c \
+ ensorcel_gaze.c \
ensorcel_sourcemage_tools.c
$(ENSORCELHEADERS)
diff --git a/src/ensorcel.h b/src/ensorcel.h
index 19f6a20..da12ba2 100644
--- a/src/ensorcel.h
+++ b/src/ensorcel.h
@@ -20,6 +20,14 @@
#define ECRITURE 1
/* ENSORCEL STRUCTURES AND TYPE DEFINITIONS */
+typedef struct _Ensorcel_Tools_Objects Ensorcel_Tools_Objects;
+struct _Ensorcel_Tools_Objects
+{
+ char *cmd;
+ Etk_Widget *entry;
+ Etk_Widget *label;
+};
+
typedef struct _Ensorcel_Exe_Strings Ensorcel_Exe_Strings;
struct _Ensorcel_Exe_Strings
@@ -196,6 +204,11 @@ void ensorcel_cmd_run (const char *exe_cmd, Etk_Label * label
void ensorcel_cast (void *data);
void ensorcel_dispel (void *data);
+/*
+ * ENSORCEL TOOL BOX FUNCS
+ */
+Etk_Widget *ensorcel_gaze_note_book_table_put ();
+
/* DEAD FUNCS
Etk_Widget *ensorcel_button_vbox_create(int num_bt, Ensorcel_Button_Set bt_tab[],Etk_Widget *win, int indice);
*/
diff --git a/src/ensorcel_sourcemage_tools.c b/src/ensorcel_sourcemage_tools.c
index 00df2d2..9f3f894 100644
--- a/src/ensorcel_sourcemage_tools.c
+++ b/src/ensorcel_sourcemage_tools.c
@@ -11,7 +11,7 @@ static Etk_Bool _ensorcel_sorcery_tools_window_deleted_cb (void *data)
void ensorcel_sorcery_tools_window_create (void *data _UNUSED_)
{
static Etk_Widget *win = NULL;
- Etk_Widget *lb_gaze;
+ Etk_Widget *page_gaze;
Etk_Widget *lb_netconf;
Etk_Widget *vbox;
Etk_Widget *hbox;
@@ -32,7 +32,7 @@ void ensorcel_sorcery_tools_window_create (void *data _UNUSED_)
/* LABELS CREATION */
- lb_gaze = etk_label_new ("<h1>GAZE</h1>" "<br>Searching Tool");
+ //lb_gaze = etk_label_new ("<h1>GAZE</h1>" "<br>Searching Tool");
lb_netconf = etk_label_new ("<h1>NETCONF</h1>" "<br>NetWork Configuration Tool");
/* NOTE BOOK CREATION */
@@ -40,7 +40,11 @@ void ensorcel_sorcery_tools_window_create (void *data _UNUSED_)
etk_widget_size_request_set (ETK_WIDGET (note_book), 800, 600);
/* NOTE BOOK PAGES ADD */
- etk_notebook_page_append (ETK_NOTEBOOK (note_book), "Gaze", lb_gaze);
+ printf("ici\n");
+ page_gaze = ensorcel_gaze_note_book_table_put();
+ printf("LA\n");
+ etk_notebook_page_append (ETK_NOTEBOOK (note_book), "Gaze", page_gaze);
+
etk_notebook_page_append (ETK_NOTEBOOK (note_book), "NetConf", lb_netconf);
/* QUIT BUTTON CREATION */