Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_container.c e_int_config_focus.c e_int_config_focus.h e_test.c Log Message: support REDRAW_DEBUG env var =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_container.c,v retrieving revision 1.92 retrieving revision 1.93 diff -u -3 -r1.92 -r1.93 --- e_container.c 20 Oct 2005 12:49:47 -0000 1.92 +++ e_container.c 1 Nov 2005 09:49:03 -0000 1.93 @@ -97,7 +97,10 @@ con->bg_evas = ecore_evas_get(con->bg_ecore_evas); ecore_evas_name_class_set(con->bg_ecore_evas, "E", "Background_Window"); ecore_evas_title_set(con->bg_ecore_evas, "Enlightenment Background"); - ecore_evas_avoid_damage_set(con->bg_ecore_evas, 1); + if (getenv("REDRAW_DEBUG")) + ecore_evas_avoid_damage_set(con->bg_ecore_evas, !atoi(getenv("REDRAW_DEBUG"))); + else + ecore_evas_avoid_damage_set(con->bg_ecore_evas, 1); ecore_x_window_lower(con->bg_win); o = evas_object_rectangle_add(con->bg_evas); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_focus.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- e_int_config_focus.c 16 Oct 2005 07:32:11 -0000 1.5 +++ e_int_config_focus.c 1 Nov 2005 09:49:03 -0000 1.6 @@ -27,7 +27,7 @@ }; /* a nice easy setup function that does the dirty work */ -void +E_Config_Dialog * e_int_config_focus(E_Container *con) { E_Config_Dialog *cfd; @@ -42,6 +42,7 @@ v.advanced.create_widgets = _advanced_create_widgets; /* create config diaolg for NULL object/data */ cfd = e_config_dialog_new(con, _("Focus Settings"), NULL, 0, &v, NULL); + return cfd; } /**--CREATE--**/ =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_int_config_focus.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- e_int_config_focus.h 13 Oct 2005 15:15:27 -0000 1.1 +++ e_int_config_focus.h 1 Nov 2005 09:49:03 -0000 1.2 @@ -6,7 +6,7 @@ #ifndef E_INT_CONFIG_FOCUS_H #define E_INT_CONFIG_FOCUS_H -EAPI void e_int_config_focus(E_Container *con); +EAPI E_Config_Dialog *e_int_config_focus(E_Container *con); #endif #endif =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_test.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- e_test.c 1 Nov 2005 02:41:58 -0000 1.31 +++ e_test.c 1 Nov 2005 09:49:03 -0000 1.32 @@ -356,36 +356,9 @@ static E_Dialog * _e_test_dia(E_Container *con) { - E_Dialog *dia; - Evas_Object *o, *o2, *o3; + E_Config_Dialog *dia; - dia = e_dialog_new(con); - e_dialog_title_set(dia, "A Test Dialog"); - - o = e_icon_add(dia->win->evas); -// e_icon_file_set(o, "/home/raster/t.png"); - evas_object_resize(o, 1024, 768); - evas_object_focus_set(o, 1); - evas_object_show(o); - - o2 = e_scrollframe_add(dia->win->evas); -// e_scrollframe_custom_theme_set(o2, "base/theme/widgets", "widgets/scrollframe"); - evas_object_resize(o2, 200, 300); - evas_object_show(o2); -#if 0 - o3 = e_pan_add(dia->win->evas); - e_pan_child_set(o3, o); - e_scrollframe_extern_pan_set(o2, o3, e_pan_set, e_pan_get, e_pan_max_get, e_pan_child_size_get); -#else - e_scrollframe_child_set(o2, o); -#endif - - e_dialog_content_set(dia, o2, 500, 300); - e_dialog_button_add(dia, "OK", NULL, NULL, NULL); - e_win_centered_set(dia->win, 1); - e_dialog_show(dia); - - evas_object_focus_set(o, 1); + dia = e_int_config_focus(con); return dia; } @@ -394,18 +367,18 @@ static int _e_test_timer(void *data) { - E_Dialog *dia; + E_Config_Dialog *dia; if (data == NULL) { dia = _e_test_dia(tcon); - ecore_timer_add(0.5, _e_test_timer, dia); + ecore_timer_add(0.2, _e_test_timer, dia); } else { dia = data; e_object_del(E_OBJECT(dia)); - ecore_timer_add(0.5, _e_test_timer, NULL); + ecore_timer_add(0.2, _e_test_timer, NULL); } return 0; } ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs