Enlightenment CVS committal

Author  : titansoccer15
Project : e17
Module  : proto

Dir     : e17/proto/ephoto/src


Modified Files:
        ephoto.c 


Log Message:

more command line work - see ephoto --help.

===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/ephoto/src/ephoto.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ephoto.c    21 Mar 2006 02:36:53 -0000      1.15
+++ ephoto.c    21 Mar 2006 02:44:11 -0000      1.16
@@ -319,6 +319,9 @@
        
                m->audiolen = ewl_checkbutton_new();
                ewl_button_label_set(EWL_BUTTON(m->audiolen), "Fit to Audio");
+               if ( argfit == 1 ) {
+                       
ewl_checkbutton_checked_set(EWL_CHECKBUTTON(m->audiolen), TRUE);
+               }
                ewl_container_child_append(EWL_CONTAINER(m->hboxv), 
m->audiolen);
                ewl_object_maximum_size_set(EWL_OBJECT(m->audiolen), 150, 50);
                ewl_object_size_request(EWL_OBJECT(m->audiolen), 150, 50);
@@ -355,6 +358,10 @@
                
                m->fullrad = ewl_radiobutton_new();
                ewl_button_label_set(EWL_BUTTON(m->fullrad), "Fullscreen");
+               if ( argfullscreen == 1 ) {
+                       
ewl_checkbutton_checked_set(EWL_CHECKBUTTON(m->fullrad), TRUE);
+                       ewl_checkbutton_checked_set(EWL_CHECKBUTTON(m->rad4), 
FALSE);
+               }
                ewl_container_child_append(EWL_CONTAINER(m->hboxv), m->fullrad);
                ewl_object_maximum_size_set(EWL_OBJECT(m->fullrad), 130, 50);
                ewl_object_size_request(EWL_OBJECT(m->fullrad), 130, 50);
@@ -381,7 +388,12 @@
                
                m->wsize = ewl_entry_new();
                ewl_entry_editable_set(EWL_ENTRY(m->wsize), 0);
-               ewl_text_text_set(EWL_TEXT(m->wsize), "640");
+               if ( argwidth == NULL ) {
+                       ewl_text_text_set(EWL_TEXT(m->wsize), "640");
+               }
+               if ( argwidth != NULL ) {
+                       ewl_text_text_set(EWL_TEXT(m->wsize), argwidth);
+               }
                ewl_object_maximum_size_set(EWL_OBJECT(m->wsize), 50, 10);
                ewl_object_alignment_set(EWL_OBJECT(m->wsize), 
EWL_FLAG_ALIGN_CENTER);
                ewl_container_child_append(EWL_CONTAINER(m->hboxv), m->wsize);
@@ -397,7 +409,12 @@
                
                m->hsize = ewl_entry_new();
                ewl_entry_editable_set(EWL_ENTRY(m->hsize), 0);
-               ewl_text_text_set(EWL_TEXT(m->hsize), "480");
+               if ( argheight == NULL ) {
+                       ewl_text_text_set(EWL_TEXT(m->hsize), "480");
+               }
+               if ( argheight != NULL ) {
+                       ewl_text_text_set(EWL_TEXT(m->hsize), argheight);
+               }
                ewl_object_maximum_size_set(EWL_OBJECT(m->hsize), 50, 10);
                ewl_object_alignment_set(EWL_OBJECT(m->hsize), 
EWL_FLAG_ALIGN_CENTER);
                ewl_container_child_append(EWL_CONTAINER(m->hboxv), m->hsize);




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to