Enlightenment CVS committal
Author : fletch3k
Project : misc
Module : enotes
Dir : misc/enotes/src
Modified Files:
ipc.c ipc.h main.c note.c usage.c
Log Message:
IPC Close Support
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/ipc.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ipc.c 6 Feb 2004 07:36:30 -0000 1.2
+++ ipc.c 7 Feb 2004 22:01:56 -0000 1.3
@@ -89,6 +89,8 @@
note->title, content);
free(content);
free_note_stor(note);
+ } else if (p->cmd == CLOSE) {
+ ecore_main_loop_quit();
}
}
}
@@ -125,6 +127,8 @@
if (!strcmp(one, "NOTE")) {
p->cmd = NOTE;
+ } else if (!strcmp(one, "CLOSE")) {
+ p->cmd = CLOSE;
} else {
free(one);
free(p);
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/ipc.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ipc.h 6 Feb 2004 07:36:30 -0000 1.2
+++ ipc.h 7 Feb 2004 22:01:56 -0000 1.3
@@ -29,7 +29,8 @@
#define IPC_PORT 2323
typedef enum { /* More to come. :-) */
- NOTE
+ NOTE,
+ CLOSE
} MessageType;
typedef struct {
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/main.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- main.c 6 Feb 2004 07:36:30 -0000 1.2
+++ main.c 7 Feb 2004 22:01:56 -0000 1.3
@@ -19,6 +19,10 @@
{
char *spec_conf;
+ /* IPC Check */
+ ecore_ipc_init();
+ dml("IPC Initiated Successfully", 1);
+
/* Read the Usage and Configurations */
main_config = mainconfig_new();
spec_conf = read_usage_for_configuration_fn(argc, argv);
@@ -39,9 +43,6 @@
dml("Successfully Read Configurations and Usage", 1);
- /* IPC Check */
- ecore_ipc_init();
- dml("IPC Initiated Successfully", 1);
if (find_server() == 0) {
dml("Server wasn't found.. Creating one", 1);
/* Setup Server */
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- note.c 7 Feb 2004 21:54:28 -0000 1.5
+++ note.c 7 Feb 2004 22:01:56 -0000 1.6
@@ -185,7 +185,8 @@
ecore_evas_geometry_get(ee, &x, &y, &w, &h);
evas_object_resize(evas_object_name_find
(ecore_evas_get(ee), "edje"), w, h);
- evas_object_resize (evas_object_name_find (ecore_evas_get (ee), "dragger"), w,
h);
+ evas_object_resize(evas_object_name_find(ecore_evas_get(ee), "dragger"),
+ w, h);
return;
}
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/usage.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- usage.c 6 Feb 2004 07:36:31 -0000 1.2
+++ usage.c 7 Feb 2004 22:01:56 -0000 1.3
@@ -53,6 +53,7 @@
if (find_server() == 1) {
send_to_server(optarg);
}
+ dispusage = 1;
break;
case 'r':
if (main_config->render_method != NULL)
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs