Enlightenment CVS committal
Author : davemds
Project : e17
Module : proto/edje_editor
Dir : e17/proto/edje_editor/src/bin
Modified Files:
callbacks.c
Log Message:
* Check that a group is selected before testing it
===================================================================
RCS file: /cvs/e/e17/proto/edje_editor/src/bin/callbacks.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- callbacks.c 26 Nov 2007 03:36:07 -0000 1.32
+++ callbacks.c 26 Nov 2007 03:48:07 -0000 1.33
@@ -107,17 +107,15 @@
break;
case TOOLBAR_PLAY:
printf("Clicked signal on Toolbar Button 'Play' EMITTED\n");
- if (Cur.open_file_name)
+ if (!Cur.eg)
+ ShowAlert("You must select a group to test.");
+ else if (!Cur.open_file_name)
+ ShowAlert("You need to save the file before testing it.");
+ else
{
snprintf(cmd,1024,"edje_editor -t \"%s\" \"%s\"
&",Cur.open_file_name,Cur.eg->name);
printf("TESTING EDJE. cmd: %s\n",cmd);
system(cmd);
- //if (!system("type edje_viewer"))
- // system(cmd);
- //else
- // ShowAlert("<b>Could not find 'edje_viewer'.</b><br>Check that
the executable is in your path.");
- }else{
- ShowAlert("You need to save the file before testing it.");
}
break;
case TOOLBAR_DEBUG:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs