Enlightenment CVS committal
Author : fletch3k
Project : misc
Module : enotes
Dir : misc/enotes/src
Modified Files:
main.c main.h newentry.c notecmds.c notenum.c
Log Message:
Various Changes and Bug Fixes.
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/main.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- main.c 10 Feb 2003 18:19:32 -0000 1.9
+++ main.c 11 Feb 2003 16:39:40 -0000 1.10
@@ -11,8 +11,6 @@
| The GNU General Public License (GPL) |
| |
| Owner: Thomas Fletcher |
-| |
-| This Software is part of the Enlightenment Project. |
|_________________________________________________________|
*/
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/main.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- main.h 10 Feb 2003 19:14:50 -0000 1.9
+++ main.h 11 Feb 2003 16:39:41 -0000 1.10
@@ -11,8 +11,6 @@
| The GNU General Public License (GPL) |
| |
| Owner: Thomas Fletcher |
-| |
-| This Software is part of the Enlightenment Project. |
|_________________________________________________________|
*/
@@ -162,11 +160,12 @@
void count (void);
void notengui (void);
-void getncmd (Ewl_Entry *ewlentry);
+
+void getncmd (Ewl_Widget *w, void *ev_data, void *user_data);
void setconfig (void);
-void kill_main_window (Ewl_Widget * main_win, void *ev_data, void *user_data);
+void kill_main_window (Ewl_Widget *main_win, void *ev_data, void *user_data);
void fadein (int fadeloop, char *tmpstr);
void fadeout (int fadeloop);
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/newentry.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- newentry.c 10 Feb 2003 18:19:33 -0000 1.3
+++ newentry.c 11 Feb 2003 16:39:41 -0000 1.4
@@ -11,8 +11,6 @@
| The GNU General Public License (GPL) |
| |
| Owner: Thomas Fletcher |
-| |
-| This Software is part of the Enlightenment Project. |
|_________________________________________________________|
*/
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/notecmds.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- notecmds.c 10 Feb 2003 19:14:51 -0000 1.6
+++ notecmds.c 11 Feb 2003 16:39:42 -0000 1.7
@@ -11,13 +11,17 @@
| The GNU General Public License (GPL) |
| |
| Owner: Thomas Fletcher |
-| |
-| This Software is part of the Enlightenment Project. |
|_________________________________________________________|
*/
#include "main.h"
+Ewl_Widget *ewlwin;
+Ewl_Widget *ewlbox;
+Ewl_Widget *ewlentry;
+Ewl_Widget *ewlbtn;
+
+
void
fileopen (char *mode)
{
@@ -74,11 +78,6 @@
void
notengui ()
{
- Ewl_Widget *ewlwin;
- Ewl_Widget *ewlbox;
- Ewl_Widget *ewlentry;
- Ewl_Widget *ewlbtn;
-
ewl_init(1, "enotes");
ewlwin=ewl_window_new();
@@ -106,9 +105,8 @@
}
void
-getncmd (Ewl_Entry *ewlentry)
+getncmd (Ewl_Widget *w, void *ev_data, void *user_data)
{
- char *gnctmp=malloc(20);
char *cmdstr=malloc(60);
char *number=malloc(20);
if(ewlentry==NULL) {
@@ -120,11 +118,19 @@
printf("Why is <number> NULL ?\n");
return;
}
- printf("<%s>\n\n", number);
- strncpy(gnctmp, number, strlen(number)-1);
- sprintf(cmdstr, "enotes -n %s&", gnctmp);
+
+ strncpy(number, number, strlen(number)-1);
+ strcpy(cmdstr, "enotes -n ");
+ strcat(cmdstr, number);
+ strcat(cmdstr, "&");
+
system(cmdstr);
+
free(cmdstr);
- free(gnctmp);
free(number);
+ ev_data=NULL;
+ user_data=NULL;
+ w=NULL;
+
+ exit(-1);
}
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/notenum.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- notenum.c 10 Feb 2003 19:14:51 -0000 1.9
+++ notenum.c 11 Feb 2003 16:39:42 -0000 1.10
@@ -11,8 +11,6 @@
| The GNU General Public License (GPL) |
| |
| Owner: Thomas Fletcher |
-| |
-| This Software is part of the Enlightenment Project. |
|_________________________________________________________|
*/
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs