Enlightenment CVS committal Author : davemds Project : e17 Module : libs/etk
Dir : e17/libs/etk/src/bin Modified Files: etk_button_test.c etk_test.c Log Message: * enable tooltips in etk_test (in the button test) =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_button_test.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- etk_button_test.c 28 Sep 2007 19:52:48 -0000 1.20 +++ etk_button_test.c 5 Aug 2008 21:47:32 -0000 1.21 @@ -41,17 +41,21 @@ etk_container_add(ETK_CONTAINER(frame), vbox); button = etk_button_new_with_label("Normal button"); + etk_tooltips_tip_set(button, "A normal button"); etk_box_append(ETK_BOX(vbox), button, ETK_BOX_START, ETK_BOX_NONE, 0); button = etk_button_new_with_label("Button with an image"); + etk_tooltips_tip_set(button, "A button with an image inside"); image = etk_image_new_from_file(PACKAGE_DATA_DIR "/images/right_arrow.png", NULL); etk_button_image_set(ETK_BUTTON(button), ETK_IMAGE(image)); etk_box_append(ETK_BOX(vbox), button, ETK_BOX_START, ETK_BOX_NONE, 0); button = etk_button_new(); + etk_tooltips_tip_set(button, "A mute button"); etk_box_append(ETK_BOX(vbox), button, ETK_BOX_START, ETK_BOX_NONE, 0); button = etk_button_new_with_label("Disabled button"); + etk_tooltips_tip_set(button, "A disabled button"); etk_widget_disabled_set(button, ETK_TRUE); etk_box_append(ETK_BOX(vbox), button, ETK_BOX_START, ETK_BOX_NONE, 0); @@ -65,9 +69,11 @@ etk_container_add(ETK_CONTAINER(frame), vbox); button = etk_toggle_button_new_with_label("Toggle button"); + etk_tooltips_tip_set(button, "An on/off button"); etk_box_append(ETK_BOX(vbox), button, ETK_BOX_START, ETK_BOX_NONE, 0); button = etk_toggle_button_new(); + etk_tooltips_tip_set(button, "A mute toggle"); etk_box_append(ETK_BOX(vbox), button, ETK_BOX_START, ETK_BOX_NONE, 0); button = etk_toggle_button_new_with_label("Disabled toggle button 1"); @@ -89,6 +95,7 @@ etk_container_add(ETK_CONTAINER(frame), vbox); button = etk_check_button_new_with_label("Check button"); + etk_tooltips_tip_set(button, "A Checkbox button"); etk_toggle_button_active_set(ETK_TOGGLE_BUTTON(button), ETK_TRUE); etk_box_append(ETK_BOX(vbox), button, ETK_BOX_START, ETK_BOX_NONE, 0); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_test.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -3 -r1.41 -r1.42 --- etk_test.c 17 Apr 2008 03:27:34 -0000 1.41 +++ etk_test.c 5 Aug 2008 21:47:32 -0000 1.42 @@ -161,6 +161,7 @@ fprintf(stderr, "Could not init Etk. Exiting...\n"); return 1; }; + etk_tooltips_enable(); _main_window_create(); etk_main(); etk_shutdown(); ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs