[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[E-devel] Re: E CVS: proto titan



You should really be using ewl_widget_disable(Ewl_Widget *w) and ewl_widget_enable(Ewl_Widget *w) for this kind of thing.

dan




Enlightenment CVS wrote:
Enlightenment CVS committal

Author  : titan
Project : e17
Module  : proto

Dir     : e17/proto/ephoto/src


Modified Files:
ephoto.c ephoto_browsing.c ephoto_misc.c

Log Message:

Conform to ewl_widget_state_set api changes.

===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/ephoto.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -3 -r1.54 -r1.55
--- ephoto.c	25 May 2006 00:29:36 -0000	1.54
+++ ephoto.c	26 May 2006 04:22:35 -0000	1.55
@@ -554,7 +554,8 @@
ewl_callback_append(m->vbutton, EWL_CALLBACK_CLICKED, images_cb, NULL);
 		ewl_widget_disable(m->vbutton);
-		ewl_widget_state_set(m->vbutton, "disabled");
+ ewl_widget_state_set(m->vbutton, "disabled", + EWL_STATE_PERSISTENT);
 		ewl_widget_show(m->vbutton);
ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(m->notebook), ===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_browsing.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- ephoto_browsing.c	24 May 2006 21:11:07 -0000	1.35
+++ ephoto_browsing.c	26 May 2006 04:22:35 -0000	1.36
@@ -334,8 +334,10 @@
 			if ( ecore_dlist_is_empty(m->imagelist) ) {
 				ewl_widget_disable(m->slideshow);
 				ewl_widget_disable(m->presentation);
-				ewl_widget_state_set(m->slideshow, "disabled");
-				ewl_widget_state_set(m->presentation, "disabled");
+ ewl_widget_state_set(m->slideshow, "disabled", + EWL_STATE_PERSISTENT); + ewl_widget_state_set(m->presentation, + "disabled", EWL_STATE_PERSISTENT);
 			}
 		}
 		else {
@@ -423,22 +425,23 @@
ewl_callback_append(m->vbutton, EWL_CALLBACK_CLICKED, images_cb, NULL);
                 ewl_widget_disable(m->vbutton);
-                ewl_widget_state_set(m->vbutton, "disabled");
+ ewl_widget_state_set(m->vbutton, "disabled", + EWL_STATE_PERSISTENT);
                 ewl_widget_show(m->vbutton);
-
 		ewl_image_file_set(EWL_IMAGE(m->vimage), pathi, NULL);
 		ewl_widget_enable(m->vbutton);
-		ewl_widget_state_set(m->vbutton, "enabled");
+ ewl_widget_state_set(m->vbutton, "enabled", + EWL_STATE_PERSISTENT);
 	}
 	/**********************************************************/
/****Enable the slideshow and presentation buttons so we can get to work****/
 	ewl_widget_enable(m->slideshow);
-	ewl_widget_state_set(m->slideshow, "enabled");
+	ewl_widget_state_set(m->slideshow, "enabled", EWL_STATE_PERSISTENT);
 	ewl_widget_enable(m->presentation);
-	ewl_widget_state_set(m->presentation, "enabled");
+	ewl_widget_state_set(m->presentation, "enabled", EWL_STATE_PERSISTENT);
 	/***************************************************/
 	return;
 	w = NULL;
@@ -463,7 +466,8 @@
 	if ( ewl_media_is_available() ) {
 		if (audio != 0) {
 			ewl_widget_enable(m->audiolen);
-			ewl_widget_state_set(m->audiolen, "enabled");
+ ewl_widget_state_set(m->audiolen, "enabled", + EWL_STATE_PERSISTENT);
 		}
 	}
 	return;
===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_misc.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ephoto_misc.c	23 May 2006 01:07:26 -0000	1.22
+++ ephoto_misc.c	26 May 2006 04:22:35 -0000	1.23
@@ -440,9 +440,11 @@
                 	slidenum++;
ewl_widget_enable(m->slideshow);
-			ewl_widget_state_set(m->slideshow, "enabled");
+ ewl_widget_state_set(m->slideshow, "enabled", + EWL_STATE_PERSISTENT);
 			ewl_widget_enable(m->presentation);
-			ewl_widget_state_set(m->presentation, "enabled");
+ ewl_widget_state_set(m->presentation, "enabled", + EWL_STATE_PERSISTENT);
 		}
 		
 		fclose(file_ptr);
@@ -498,8 +500,8 @@
         ewl_widget_show(m->ib);
 	ewl_widget_disable(m->slideshow);
 	ewl_widget_disable(m->presentation);
-	ewl_widget_state_set(m->slideshow, "disabled");
-	ewl_widget_state_set(m->presentation, "disabled");
+	ewl_widget_state_set(m->slideshow, "disabled", EWL_STATE_PERSISTENT);
+	ewl_widget_state_set(m->presentation, "disabled", EWL_STATE_PERSISTENT);
 	return;
 	w = NULL;
 	event = NULL;
@@ -577,8 +579,10 @@
 		}
 		ewl_widget_enable(m->slideshow);
 		ewl_widget_enable(m->presentation);
-		ewl_widget_state_set(m->slideshow, "enabled");
-		ewl_widget_state_set(m->presentation, "enabled");
+ ewl_widget_state_set(m->slideshow, "enabled", + EWL_STATE_PERSISTENT); + ewl_widget_state_set(m->presentation, "enabled", + EWL_STATE_PERSISTENT);
 	}
 	return;
 	w = NULL;
@@ -627,7 +631,8 @@
 		ewl_image_file_set(EWL_IMAGE(m->vimage),
 					argimage, NULL);
 		ewl_widget_enable(m->vbutton);
-                ewl_widget_state_set(m->vbutton, "enabled");
+ ewl_widget_state_set(m->vbutton, "enabled", + EWL_STATE_PERSISTENT);
 	}
 	return;
 	w = NULL;




-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs