Enlightenment CVS committal
Author : barbieri
Project : e17
Module : libs/emotion
Dir : e17/libs/emotion/src/bin
Modified Files:
emotion_test_main.c
Log Message:
Minor cleanups.
* bitfield must be unsigned;
* static to most globals;
* call shutdown on exit.
===================================================================
RCS file: /cvs/e/e17/libs/emotion/src/bin/emotion_test_main.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- emotion_test_main.c 31 Oct 2007 19:34:39 -0000 1.16
+++ emotion_test_main.c 28 Feb 2008 20:35:16 -0000 1.17
@@ -21,8 +21,8 @@
struct _Frame_Data
{
- char moving : 1;
- char resizing : 1;
+ unsigned char moving : 1;
+ unsigned char resizing : 1;
int button;
Evas_Coord x, y;
};
@@ -33,19 +33,19 @@
static int main_signal_exit(void *data, int ev_type, void *ev);
static void main_delete_request(Ecore_Evas *ee);
-void bg_setup(void);
-void bg_resize(Evas_Coord w, Evas_Coord h);
+static void bg_setup(void);
+static void bg_resize(Evas_Coord w, Evas_Coord h);
static void bg_key_down(void *data, Evas * e, Evas_Object * obj, void
*event_info);
static Evas_Object *o_bg = NULL;
-double start_time = 0.0;
-Ecore_Evas *ecore_evas = NULL;
-Evas *evas = NULL;
-int startw = 800;
-int starth = 600;
+static double start_time = 0.0;
+static Ecore_Evas *ecore_evas = NULL;
+static Evas *evas = NULL;
+static int startw = 800;
+static int starth = 600;
-Evas_List *video_objs = NULL;
+static Evas_List *video_objs = NULL;
static int
main_start(int argc, char **argv)
@@ -133,6 +133,8 @@
static void
main_stop(void)
{
+ main_signal_exit(NULL, 0, NULL);
+ edje_shutdown();
ecore_evas_shutdown();
ecore_shutdown();
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs