Enlightenment CVS committal Author : fletch3k Project : misc Module : enotes
Dir : misc/enotes/src Modified Files: main.h notecmds.c notenum.c Log Message: RbdPngn Suggested that using . as the fontdir might be silly. So i changed it. Thanks RbdPngn. =================================================================== RCS file: /cvsroot/enlightenment/misc/enotes/src/main.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- main.h 10 Feb 2003 18:19:33 -0000 1.8 +++ main.h 10 Feb 2003 19:14:50 -0000 1.9 @@ -162,7 +162,7 @@ void count (void); void notengui (void); -void getncmd (Ewl_Widget *ewlentry); +void getncmd (Ewl_Entry *ewlentry); void setconfig (void); =================================================================== RCS file: /cvsroot/enlightenment/misc/enotes/src/notecmds.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- notecmds.c 10 Feb 2003 18:19:34 -0000 1.5 +++ notecmds.c 10 Feb 2003 19:14:51 -0000 1.6 @@ -97,7 +97,7 @@ ewl_container_append_child(EWL_CONTAINER(ewlbox), ewlentry); ewl_container_append_child(EWL_CONTAINER(ewlbox), ewlbtn); - ewl_callback_append(ewlbtn, EWL_CALLBACK_CLICKED, getncmd, (Ewl_Widget*)ewlentry); + ewl_callback_append(ewlbtn, EWL_CALLBACK_CLICKED, getncmd, +(Ewl_Entry*)ewlentry); ewl_widget_show(ewlentry); ewl_widget_show(ewlbtn); @@ -106,12 +106,16 @@ } void -getncmd (Ewl_Widget *ewlentry) +getncmd (Ewl_Entry *ewlentry) { char *gnctmp=malloc(20); char *cmdstr=malloc(60); char *number=malloc(20); - number=ewl_entry_get_text(ewlentry); + if(ewlentry==NULL) { + printf("WHAT?!?! The EWL Entry is NULL!"); + return; + } + number=ewl_entry_get_text(EWL_ENTRY(ewlentry)); if(number==NULL) { printf("Why is <number> NULL ?\n"); return; =================================================================== RCS file: /cvsroot/enlightenment/misc/enotes/src/notenum.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- notenum.c 10 Feb 2003 18:19:34 -0000 1.8 +++ notenum.c 10 Feb 2003 19:14:51 -0000 1.9 @@ -103,7 +103,6 @@ strncpy(str, tmp, (int)strlen(tmp)-1); title=evas_object_text_add (root->evas); - evas_font_path_append (root->evas, "."); evas_object_text_font_set (title, font, 16); evas_object_text_text_set (title, str); evas_object_color_set (title, r, g, b, 255); @@ -122,7 +121,6 @@ strcpy(str, tmp); str[strlen(str)-1]='\0'; txt[loop]=evas_object_text_add (root->evas); - evas_font_path_append (root->evas, "."); evas_object_text_font_set (txt[loop], font, 12); evas_object_text_text_set (txt[loop], str); evas_object_color_set (txt[loop], r, g, b, 255); ------------------------------------------------------- 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