Enlightenment CVS committal
Author : titan
Project : e17
Module : proto
Dir : e17/proto/ephoto/src/bin
Modified Files:
ephoto.c ephoto.h ephoto_gui.c
Log Message:
Some more behind the scenes work
===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/bin/ephoto.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ephoto.c 30 Nov 2006 00:03:14 -0000 1.1
+++ ephoto.c 2 Dec 2006 18:39:57 -0000 1.2
@@ -5,10 +5,10 @@
if (!ewl_init(&argc, argv))
{
printf("Ewl is not usable, please check your installation!\n");
- return;
+ return 1;
}
- create_boot();
+ init_gui();
return 0;
}
===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/bin/ephoto.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ephoto.h 30 Nov 2006 00:03:14 -0000 1.1
+++ ephoto.h 2 Dec 2006 18:39:57 -0000 1.2
@@ -7,7 +7,7 @@
#include <stdlib.h>
/* Main gui callbacks */
-void create_boot(void);
+void init_gui(void);
/* NLS */
#ifdef ENABLE_NLS
===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/bin/ephoto_gui.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ephoto_gui.c 30 Nov 2006 00:03:14 -0000 1.1
+++ ephoto_gui.c 2 Dec 2006 18:39:57 -0000 1.2
@@ -1,11 +1,12 @@
#include "ephoto.h"
static void destroy(Ewl_Widget *w, void *event, void *data);
-static Ewl_Widget *add_menu(Ewl_Widget *c, char *txt);
static void add_menu_item(Ewl_Widget *c, char *txt, char *img, void *cb);
static void add_button(Ewl_Widget *c, char *txt, char *img, void *cb);
-static Ewl_Widget *add_tree(Ewl_Widget *c);
static void create_main_gui(void);
+static int destroy_boot(void *data);
+static Ewl_Widget *add_menu(Ewl_Widget *c, char *txt);
+static Ewl_Widget *add_tree(Ewl_Widget *c);
static Ewl_Widget *progress;
static Ecore_Timer *timer;
@@ -28,14 +29,16 @@
}
}
-void create_boot(void)
+void init_gui(void)
{
Ewl_Widget *win, *vbox, *image, *text;
win = ewl_window_new();
ewl_window_title_set(EWL_WINDOW(win), "Ephoto!");
ewl_window_name_set(EWL_WINDOW(win), "Ephoto!");
- ewl_object_size_request(EWL_OBJECT(win), 600, 400);
+ ewl_window_borderless_set(EWL_WINDOW(win));
+ ewl_widget_state_set(win, "splash", EWL_STATE_PERSISTENT);
+ ewl_object_size_request(EWL_OBJECT(win), 600, 400);
ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW, destroy, NULL);
ewl_widget_show(win);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs