Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: ewl_test.c ewl_theme_test.c ewl_tooltip_test.c Log Message: - getting rid of ewl_tooltip and making tooltips an attachment to widgets. this can also be used in the future to handle cursors for widgets. - this is API breakage. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_test.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_test.c 10 Jul 2005 12:39:00 -0000 1.15 +++ ewl_test.c 25 Sep 2005 05:02:19 -0000 1.16 @@ -54,7 +54,6 @@ Ewl_Widget *main_tree; Ewl_Widget *main_area; /* Ewl_Widget *separator; */ - Ewl_Widget *tooltip; Ewl_Widget *prow; static test_set tests[] = { { @@ -363,14 +362,8 @@ tests[i].filename); /* Add the tooltips */ - if (tests[i].tip) { - tooltip = ewl_tooltip_new (prow); - ewl_tooltip_delay_set (EWL_TOOLTIP (tooltip), 1.5); - ewl_container_child_append (EWL_CONTAINER (main_win), - tooltip); - ewl_tooltip_text_set (EWL_TOOLTIP (tooltip), - tests[i].tip); - } + if (tests[i].tip) + ewl_attach_tooltip_text_set(prow, tests[i].tip); i++; } =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_theme_test.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ewl_theme_test.c 28 May 2005 20:32:50 -0000 1.4 +++ ewl_theme_test.c 25 Sep 2005 05:02:19 -0000 1.5 @@ -285,10 +285,6 @@ ewl_container_child_append (EWL_CONTAINER (vbox), misc); ewl_widget_show (misc); - misc = ewl_tooltip_new (misc); - ewl_tooltip_delay_set (EWL_TOOLTIP (misc), 1.5); - ewl_container_child_append (EWL_CONTAINER (vbox), misc); - ewl_notebook_page_append (EWL_NOTEBOOK(notebook), tab, vbox); } =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_tooltip_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_tooltip_test.c 28 May 2005 20:32:50 -0000 1.2 +++ ewl_tooltip_test.c 25 Sep 2005 05:02:19 -0000 1.3 @@ -18,7 +18,6 @@ Ewl_Widget *tooltip_win; Ewl_Widget *tooltip_vbox; Ewl_Widget *button; - Ewl_Widget *tooltip; tooltip_button = w; @@ -46,10 +45,7 @@ button = ewl_button_new ("Hoover on this button"); ewl_container_child_append(EWL_CONTAINER (tooltip_vbox), button); ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK); + ewl_attach_tooltip_text_set(button, "and see."); ewl_widget_show (button); - - tooltip = ewl_tooltip_new (button); - ewl_tooltip_delay_set (EWL_TOOLTIP (tooltip), 2.5); - ewl_container_child_append(EWL_CONTAINER (tooltip_win), tooltip); } ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs