Enlightenment CVS committal Author : moom Project : e17 Module : libs/etk
Dir : e17/libs/etk/src/bin Modified Files: etk_button_test.c etk_canvas_test.c etk_colorpicker_test.c etk_combobox_test.c etk_dnd_test.c etk_entry_test.c etk_filechooser_test.c etk_iconbox_test.c etk_image_test.c etk_menu_test.c etk_notebook_test.c etk_paned_test.c etk_progress_bar_test.c etk_scrolled_view_test.c etk_shadow_test.c etk_slider_test.c etk_table_test.c etk_test.c etk_text_view_test.c etk_tree_test.c Log Message: * API Break: a lot of signals/properties have been renamed: signals now use -ed form ("focus"-->"focused") and names now use '-' instead of '_' ("row_clicked" --> "row-clicked"). All the existing apps are broken, sorry for that :/ =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_button_test.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- etk_button_test.c 18 Mar 2007 20:44:47 -0000 1.15 +++ etk_button_test.c 22 Mar 2007 19:36:50 -0000 1.16 @@ -26,7 +26,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Button Test"); etk_container_border_width_set(ETK_CONTAINER(win), 5); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); table = etk_table_new(2, 2, ETK_FALSE); etk_container_add(ETK_CONTAINER(win), table); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_canvas_test.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- etk_canvas_test.c 6 Oct 2006 17:04:13 -0000 1.12 +++ etk_canvas_test.c 22 Mar 2007 19:36:50 -0000 1.13 @@ -22,7 +22,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Canvas Test"); etk_container_border_width_set(ETK_CONTAINER(win), 5); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_FALSE, 5); etk_container_add(ETK_CONTAINER(win), vbox); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_colorpicker_test.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- etk_colorpicker_test.c 28 Jan 2007 17:46:04 -0000 1.7 +++ etk_colorpicker_test.c 22 Mar 2007 19:36:50 -0000 1.8 @@ -13,7 +13,7 @@ } win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Color Picker Test"); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); cp = etk_colorpicker_new(); etk_colorpicker_use_alpha_set(ETK_COLORPICKER(cp), ETK_TRUE); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_combobox_test.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- etk_combobox_test.c 18 Mar 2007 20:44:47 -0000 1.13 +++ etk_combobox_test.c 22 Mar 2007 19:36:50 -0000 1.14 @@ -34,7 +34,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Combobox Test"); etk_container_border_width_set(ETK_CONTAINER(win), 5); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_FALSE, 3); etk_container_add(ETK_CONTAINER(win), vbox); @@ -88,7 +88,7 @@ etk_combobox_column_add(ETK_COMBOBOX(combobox), ETK_COMBOBOX_OTHER, 24, ETK_COMBOBOX_NONE, 1.0); etk_combobox_build(ETK_COMBOBOX(combobox)); etk_box_append(ETK_BOX(vbox), combobox, ETK_BOX_START, ETK_BOX_NONE, 0); - etk_signal_connect("active_item_changed", ETK_OBJECT(combobox), ETK_CALLBACK(_active_item_changed_cb), image); + etk_signal_connect("active-item-changed", ETK_OBJECT(combobox), ETK_CALLBACK(_active_item_changed_cb), image); /* We fill the combobox with some stock-ids */ for (i = STARTING_STOCK_ID; i <= ENDING_STOCK_ID; i++) =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_dnd_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- etk_dnd_test.c 29 Dec 2006 22:10:12 -0000 1.2 +++ etk_dnd_test.c 22 Mar 2007 19:36:50 -0000 1.3 @@ -34,7 +34,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Drag and Drop Test"); etk_container_border_width_set(ETK_CONTAINER(win), 5); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); /* create main box */ vbox = etk_vbox_new(ETK_FALSE, 3); @@ -54,9 +54,9 @@ button = etk_button_new_with_label("Drop a file here (text/uri-list)"); etk_widget_dnd_dest_set(button, ETK_TRUE); etk_widget_dnd_types_set(button, dnd_types, dnd_types_num); - etk_signal_connect("drag_drop", ETK_OBJECT(button), ETK_CALLBACK(_etk_test_dnd_drag_drop_cb), label); - etk_signal_connect("drag_motion", ETK_OBJECT(button), ETK_CALLBACK(_etk_test_dnd_drag_motion_cb), NULL); - etk_signal_connect("drag_leave", ETK_OBJECT(button), ETK_CALLBACK(_etk_test_dnd_drag_leave_cb), NULL); + etk_signal_connect("drag-drop", ETK_OBJECT(button), ETK_CALLBACK(_etk_test_dnd_drag_drop_cb), label); + etk_signal_connect("drag-motion", ETK_OBJECT(button), ETK_CALLBACK(_etk_test_dnd_drag_motion_cb), NULL); + etk_signal_connect("drag-leave", ETK_OBJECT(button), ETK_CALLBACK(_etk_test_dnd_drag_leave_cb), NULL); etk_box_append(ETK_BOX(vbox2), button, ETK_BOX_START, ETK_BOX_NONE, 0); etk_box_append(ETK_BOX(vbox2), label, ETK_BOX_START, ETK_BOX_NONE, 0); @@ -70,7 +70,7 @@ dnd_types = calloc(dnd_types_num, sizeof(char*)); dnd_types[0] = strdup("text/uri-list"); etk_widget_dnd_types_set(button, dnd_types, dnd_types_num); - etk_signal_connect("drag_drop", ETK_OBJECT(button), ETK_CALLBACK(_etk_test_dnd_drag_drop_cb2), image); + etk_signal_connect("drag-drop", ETK_OBJECT(button), ETK_CALLBACK(_etk_test_dnd_drag_drop_cb2), image); etk_box_append(ETK_BOX(vbox2), button, ETK_BOX_START, ETK_BOX_NONE, 0); etk_box_append(ETK_BOX(vbox2), image, ETK_BOX_START, ETK_BOX_NONE, 0); @@ -84,7 +84,7 @@ dnd_types[0] = strdup("text/plain"); etk_widget_dnd_types_set(entry, dnd_types, dnd_types_num); etk_widget_dnd_dest_set(entry, ETK_TRUE); - etk_signal_connect("drag_drop", ETK_OBJECT(entry), ETK_CALLBACK(_etk_test_dnd_drag_drop_cb3), NULL); + etk_signal_connect("drag-drop", ETK_OBJECT(entry), ETK_CALLBACK(_etk_test_dnd_drag_drop_cb3), NULL); etk_box_append(ETK_BOX(vbox2), label, ETK_BOX_START, ETK_BOX_NONE, 0); etk_box_append(ETK_BOX(vbox2), entry, ETK_BOX_START, ETK_BOX_NONE, 0); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_entry_test.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- etk_entry_test.c 18 Mar 2007 20:44:47 -0000 1.14 +++ etk_entry_test.c 22 Mar 2007 19:36:50 -0000 1.15 @@ -32,7 +32,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Entry Test"); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_FALSE, 0); etk_container_add(ETK_CONTAINER(win), vbox); @@ -53,7 +53,7 @@ image = etk_image_new_from_stock(ETK_STOCK_DOCUMENT_PRINT, ETK_STOCK_SMALL); etk_entry_image_set(ETK_ENTRY(_entry_normal), ETK_ENTRY_IMAGE_PRIMARY, ETK_IMAGE(image)); - etk_signal_connect("mouse_click", ETK_OBJECT(image), ETK_CALLBACK(_normal_print_cb), NULL); + etk_signal_connect("mouse-click", ETK_OBJECT(image), ETK_CALLBACK(_normal_print_cb), NULL); etk_entry_clear_button_add(ETK_ENTRY(_entry_normal)); _label_normal = etk_label_new(NULL); @@ -99,13 +99,13 @@ etk_widget_show_all(win); } -/* Prints the text of the normal entry in the label */ +/* Prints the text of the normal entry in the label when the "print" icon is clicked */ static void _normal_print_cb(Etk_Object *object, void *data) { etk_label_set(ETK_LABEL(_label_normal), etk_entry_text_get(ETK_ENTRY(_entry_normal))); } -/* Toggles the password mode of the password entry */ +/* Toggles the password mode of the password entry when the "Password Visible" checkbox is toggled */ static void _password_show_cb(Etk_Object *object, void *data) { etk_entry_password_mode_set(ETK_ENTRY(data), !etk_toggle_button_active_get(ETK_TOGGLE_BUTTON(object))); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_filechooser_test.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- etk_filechooser_test.c 10 Mar 2007 03:23:42 -0000 1.6 +++ etk_filechooser_test.c 22 Mar 2007 19:36:50 -0000 1.7 @@ -14,7 +14,7 @@ dialog = etk_dialog_new(); etk_window_title_set(ETK_WINDOW(dialog), "Etk Filechooser Test"); - etk_signal_connect("delete_event", ETK_OBJECT(dialog), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(dialog), ETK_CALLBACK(etk_window_hide_on_delete), NULL); filechooser = etk_filechooser_widget_new(); etk_dialog_pack_in_main_area(ETK_DIALOG(dialog), filechooser, ETK_BOX_START, ETK_BOX_EXPAND_FILL, 0); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_iconbox_test.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- etk_iconbox_test.c 21 Mar 2007 18:15:26 -0000 1.11 +++ etk_iconbox_test.c 22 Mar 2007 19:36:50 -0000 1.12 @@ -52,11 +52,11 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Iconbox Test"); etk_window_resize(ETK_WINDOW(win), 600, 330); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); iconbox = etk_iconbox_new(); etk_container_add(ETK_CONTAINER(win), iconbox); - etk_signal_connect("mouse_down", ETK_OBJECT(iconbox), ETK_CALLBACK(_etk_test_iconbox_mouse_down_cb), NULL); + etk_signal_connect("mouse-down", ETK_OBJECT(iconbox), ETK_CALLBACK(_etk_test_iconbox_mouse_down_cb), NULL); _etk_test_iconbox_folder_set(ETK_ICONBOX(iconbox), NULL); etk_widget_show_all(win); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_image_test.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- etk_image_test.c 29 Dec 2006 22:10:12 -0000 1.8 +++ etk_image_test.c 22 Mar 2007 19:36:50 -0000 1.9 @@ -17,8 +17,8 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Image Test"); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); - + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + images[0] = etk_image_new_from_file(PACKAGE_DATA_DIR "/images/test.png", NULL); etk_image_keep_aspect_set(ETK_IMAGE(images[0]), ETK_TRUE); images[1] = etk_image_new_from_file(PACKAGE_DATA_DIR "/images/test.png", NULL); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_menu_test.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- etk_menu_test.c 6 Oct 2006 17:04:13 -0000 1.18 +++ etk_menu_test.c 22 Mar 2007 19:36:50 -0000 1.19 @@ -8,7 +8,7 @@ static Etk_Widget *_etk_test_menu_radio_item_new(const char *label, Etk_Menu_Item_Radio *group_item, Etk_Menu_Shell *menu_shell); static Etk_Widget *_etk_test_menu_separator_new(Etk_Menu_Shell *menu_shell); static void _etk_test_menu_item_selected_cb(Etk_Object *object, void *data); -static void _etk_test_menu_item_deselected_cb(Etk_Object *object, void *data); +static void _etk_test_menu_item_unselected_cb(Etk_Object *object, void *data); static Etk_Widget *_etk_test_menu_statusbar; @@ -34,7 +34,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Menu Test"); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); etk_widget_size_request_set(win, 325, 240); /**************** @@ -115,7 +115,7 @@ ****************/ /* Main menu */ menu = etk_menu_new(); - etk_signal_connect("mouse_down", ETK_OBJECT(win), ETK_CALLBACK(_etk_test_menu_window_down_cb), menu); + etk_signal_connect("mouse-down", ETK_OBJECT(win), ETK_CALLBACK(_etk_test_menu_window_down_cb), menu); _etk_test_menu_stock_item_new("Open", ETK_STOCK_DOCUMENT_OPEN, ETK_MENU_SHELL(menu)); _etk_test_menu_stock_item_new("Save", ETK_STOCK_DOCUMENT_SAVE, ETK_MENU_SHELL(menu)); _etk_test_menu_separator_new(ETK_MENU_SHELL(menu)); @@ -164,7 +164,7 @@ etk_menu_shell_append(menu_shell, ETK_MENU_ITEM(menu_item)); etk_signal_connect("selected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_selected_cb), NULL); - etk_signal_connect("deselected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_deselected_cb), NULL); + etk_signal_connect("unselected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_unselected_cb), NULL); return menu_item; } @@ -184,7 +184,7 @@ etk_menu_shell_append(menu_shell, ETK_MENU_ITEM(menu_item)); etk_signal_connect("selected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_selected_cb), NULL); - etk_signal_connect("deselected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_deselected_cb), NULL); + etk_signal_connect("unselected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_unselected_cb), NULL); return menu_item; } @@ -202,7 +202,7 @@ etk_menu_shell_append(menu_shell, ETK_MENU_ITEM(menu_item)); etk_signal_connect("selected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_selected_cb), NULL); - etk_signal_connect("deselected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_deselected_cb), NULL); + etk_signal_connect("unselected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_unselected_cb), NULL); return menu_item; } @@ -219,7 +219,7 @@ etk_menu_shell_append(menu_shell, ETK_MENU_ITEM(menu_item)); etk_signal_connect("selected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_selected_cb), NULL); - etk_signal_connect("deselected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_deselected_cb), NULL); + etk_signal_connect("unselected", ETK_OBJECT(menu_item), ETK_CALLBACK(_etk_test_menu_item_unselected_cb), NULL); return menu_item; } @@ -245,8 +245,8 @@ etk_statusbar_message_push(ETK_STATUSBAR(_etk_test_menu_statusbar), etk_menu_item_label_get(item), 0); } -/* Called when a menu item is deselected */ -static void _etk_test_menu_item_deselected_cb(Etk_Object *object, void *data) +/* Called when a menu item is unselected */ +static void _etk_test_menu_item_unselected_cb(Etk_Object *object, void *data) { etk_statusbar_message_pop(ETK_STATUSBAR(_etk_test_menu_statusbar), 0); } =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_notebook_test.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- etk_notebook_test.c 29 Dec 2006 22:10:12 -0000 1.12 +++ etk_notebook_test.c 22 Mar 2007 19:36:50 -0000 1.13 @@ -24,7 +24,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Notebook Test"); etk_container_border_width_set(ETK_CONTAINER(win), 5); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_FALSE, 0); etk_container_add(ETK_CONTAINER(win), vbox); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_paned_test.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- etk_paned_test.c 20 Oct 2006 17:51:44 -0000 1.8 +++ etk_paned_test.c 22 Mar 2007 19:36:50 -0000 1.9 @@ -23,7 +23,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Paned Test"); etk_widget_size_request_set(win, 300, 300); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_FALSE, 0); etk_container_add(ETK_CONTAINER(win), vbox); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_progress_bar_test.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- etk_progress_bar_test.c 15 Aug 2006 15:59:01 -0000 1.7 +++ etk_progress_bar_test.c 22 Mar 2007 19:36:50 -0000 1.8 @@ -24,7 +24,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Progress Bar Test"); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_TRUE, 5); etk_container_add(ETK_CONTAINER(win), vbox); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_scrolled_view_test.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- etk_scrolled_view_test.c 9 Dec 2006 09:56:32 -0000 1.5 +++ etk_scrolled_view_test.c 22 Mar 2007 19:36:50 -0000 1.6 @@ -23,7 +23,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Scrolled View Test"); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); etk_widget_size_request_set(win, 180, 180); scrolled_view = etk_scrolled_view_new(); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_shadow_test.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- etk_shadow_test.c 22 Feb 2007 04:36:25 -0000 1.3 +++ etk_shadow_test.c 22 Mar 2007 19:36:50 -0000 1.4 @@ -37,7 +37,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Shadow Test"); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vpaned = etk_vpaned_new(); etk_container_add(ETK_CONTAINER(win), vpaned); @@ -108,13 +108,13 @@ etk_table_attach(ETK_TABLE(table), label, 0, 0, 0, 0, 0, 0, ETK_TABLE_HFILL); slider = etk_hslider_new(-15.0, 15.0, 3.0, 1.0, 5.0); etk_table_attach(ETK_TABLE(table), slider, 1, 1, 0, 0, 0, 0, ETK_TABLE_HFILL | ETK_TABLE_HEXPAND); - etk_signal_connect("value_changed", ETK_OBJECT(slider), _etk_test_shadow_offset_x_changed_cb, NULL); + etk_signal_connect("value-changed", ETK_OBJECT(slider), _etk_test_shadow_offset_x_changed_cb, NULL); label = etk_label_new("Y"); etk_table_attach(ETK_TABLE(table), label, 0, 0, 1, 1, 0, 0, ETK_TABLE_HFILL); slider = etk_hslider_new(-15.0, 15.0, 3.0, 1.0, 5.0); etk_table_attach(ETK_TABLE(table), slider, 1, 1, 1, 1, 0, 0, ETK_TABLE_HFILL | ETK_TABLE_HEXPAND); - etk_signal_connect("value_changed", ETK_OBJECT(slider), _etk_test_shadow_offset_y_changed_cb, NULL); + etk_signal_connect("value-changed", ETK_OBJECT(slider), _etk_test_shadow_offset_y_changed_cb, NULL); etk_box_append(ETK_BOX(hbox), etk_vseparator_new(), ETK_BOX_START, ETK_BOX_NONE, 3); @@ -125,7 +125,7 @@ etk_box_append(ETK_BOX(vbox), frame, ETK_BOX_START, ETK_BOX_EXPAND_FILL, 0); slider = etk_hslider_new(0.0, 100.0, 15.0, 1.0, 10.0); etk_container_add(ETK_CONTAINER(frame), slider); - etk_signal_connect("value_changed", ETK_OBJECT(slider), _etk_test_shadow_radius_changed_cb, NULL); + etk_signal_connect("value-changed", ETK_OBJECT(slider), _etk_test_shadow_radius_changed_cb, NULL); check = etk_check_button_new_with_label("Show the border"); etk_toggle_button_active_set(ETK_TOGGLE_BUTTON(check), ETK_TRUE); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_slider_test.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- etk_slider_test.c 18 Mar 2007 20:44:47 -0000 1.14 +++ etk_slider_test.c 22 Mar 2007 19:36:50 -0000 1.15 @@ -42,7 +42,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Slider Test"); etk_container_border_width_set(ETK_CONTAINER(win), 5); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); table = etk_table_new(2, 3, ETK_FALSE); etk_container_add(ETK_CONTAINER(win), table); @@ -59,13 +59,13 @@ _hslider = etk_hslider_new(0.0, 255.0, 128.0, 1.0, 10.0); etk_slider_label_set(ETK_SLIDER(_hslider), "%.0f"); etk_table_attach(ETK_TABLE(table2), _hslider, 0, 0, 1, 1, 0, 0, ETK_TABLE_HEXPAND | ETK_TABLE_HFILL); - etk_signal_connect("value_changed", ETK_OBJECT(_hslider), ETK_CALLBACK(_slider_value_changed_cb), NULL); + etk_signal_connect("value-changed", ETK_OBJECT(_hslider), ETK_CALLBACK(_slider_value_changed_cb), NULL); /* Create the vertical slider */ _vslider = etk_vslider_new(0.0, 255.0, 128.0, 1.0, 10.0); etk_slider_label_set(ETK_SLIDER(_vslider), "%.0f"); etk_table_attach(ETK_TABLE(table2), _vslider, 1, 1, 0, 0, 0, 0, ETK_TABLE_VEXPAND | ETK_TABLE_VFILL); - etk_signal_connect("value_changed", ETK_OBJECT(_vslider), ETK_CALLBACK(_slider_value_changed_cb), NULL); + etk_signal_connect("value-changed", ETK_OBJECT(_vslider), ETK_CALLBACK(_slider_value_changed_cb), NULL); separator = etk_hseparator_new(); etk_table_attach(ETK_TABLE(table), separator, 0, 1, 1, 1, 0, 0, ETK_TABLE_HFILL); @@ -101,7 +101,7 @@ etk_box_append(ETK_BOX(hbox), label, ETK_BOX_START, ETK_BOX_NONE, 0); _hspinner = etk_spinner_new(10.0, 1000.0, 255.0, 1.0, 10.0); etk_box_append(ETK_BOX(hbox), _hspinner, ETK_BOX_START, ETK_BOX_NONE, 0); - etk_signal_connect("value_changed", ETK_OBJECT(_hspinner), ETK_CALLBACK(_maximum_changed_cb), _hslider); + etk_signal_connect("value-changed", ETK_OBJECT(_hspinner), ETK_CALLBACK(_maximum_changed_cb), _hslider); /* Create the settings frame for the vertical slider */ @@ -134,7 +134,7 @@ etk_box_append(ETK_BOX(hbox), label, ETK_BOX_START, ETK_BOX_NONE, 0); _vspinner = etk_spinner_new(10.0, 1000.0, 255.0, 1.0, 10.0); etk_box_append(ETK_BOX(hbox), _vspinner, ETK_BOX_START, ETK_BOX_NONE, 0); - etk_signal_connect("value_changed", ETK_OBJECT(_vspinner), ETK_CALLBACK(_maximum_changed_cb), _vslider); + etk_signal_connect("value-changed", ETK_OBJECT(_vspinner), ETK_CALLBACK(_maximum_changed_cb), _vslider); etk_widget_show_all(win); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_table_test.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- etk_table_test.c 29 Dec 2006 22:10:12 -0000 1.12 +++ etk_table_test.c 22 Mar 2007 19:36:50 -0000 1.13 @@ -22,7 +22,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Table Test"); etk_container_border_width_set(ETK_CONTAINER(win), 5); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); image = etk_image_new_from_file(PACKAGE_DATA_DIR "/images/test.png", NULL); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_test.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -3 -r1.33 -r1.34 --- etk_test.c 16 Jan 2007 23:49:26 -0000 1.33 +++ etk_test.c 22 Mar 2007 19:36:51 -0000 1.34 @@ -134,10 +134,9 @@ { if (!etk_init(&argc, &argv)) { - fprintf(stderr, "Could not init etk. Exiting...\n"); + fprintf(stderr, "Could not init Etk. Exiting...\n"); return 1; }; - etk_tooltips_enable(); _etk_test_main_window(); etk_main(); etk_shutdown(); @@ -159,7 +158,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Test Application"); etk_container_border_width_set(ETK_CONTAINER(win), 5); - etk_signal_connect("destroyed", ETK_OBJECT(win), ETK_CALLBACK(_etk_test_main_quit_cb), NULL); + etk_signal_connect_swapped("destroyed", ETK_OBJECT(win), ETK_CALLBACK(_etk_test_main_quit_cb), NULL); vbox = etk_vbox_new(ETK_FALSE, 0); etk_container_add(ETK_CONTAINER(win), vbox); =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_text_view_test.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- etk_text_view_test.c 19 Feb 2007 20:54:55 -0000 1.17 +++ etk_text_view_test.c 22 Mar 2007 19:36:51 -0000 1.18 @@ -44,7 +44,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Text View Test"); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_TRUE, 0); etk_container_add(ETK_CONTAINER(win), vbox); @@ -84,7 +84,7 @@ etk_window_title_set(ETK_WINDOW(win), "Etk Text View Test"); etk_widget_size_request_set(win, 150, 150); etk_window_resize(ETK_WINDOW(win), 400, 300); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_FALSE, 0); etk_container_add(ETK_CONTAINER(win), vbox); @@ -172,7 +172,7 @@ etk_window_title_set(ETK_WINDOW(win), "Etk Text View Test: Instant Messenger"); etk_window_resize(ETK_WINDOW(win), 300, 300); etk_container_border_width_set(ETK_CONTAINER(win), 3); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vpaned = etk_vpaned_new(); etk_container_add(ETK_CONTAINER(win), vpaned); @@ -204,7 +204,7 @@ editor_view = etk_text_view_new(); etk_widget_size_request_set(editor_view, 200, 80); etk_box_append(ETK_BOX(vbox), editor_view, ETK_BOX_START, ETK_BOX_EXPAND_FILL, 0); - etk_signal_connect("key_down", ETK_OBJECT(editor_view), ETK_CALLBACK(_etk_test_im_editor_key_down_cb), message_view); + etk_signal_connect("key-down", ETK_OBJECT(editor_view), ETK_CALLBACK(_etk_test_im_editor_key_down_cb), message_view); etk_widget_show_all(win); } =================================================================== RCS file: /cvs/e/e17/libs/etk/src/bin/etk_tree_test.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -3 -r1.41 -r1.42 --- etk_tree_test.c 21 Mar 2007 18:15:26 -0000 1.41 +++ etk_tree_test.c 22 Mar 2007 19:36:51 -0000 1.42 @@ -31,7 +31,7 @@ win = etk_window_new(); etk_window_title_set(ETK_WINDOW(win), "Etk Tree Test"); etk_window_resize(ETK_WINDOW(win), 440, 500); - etk_signal_connect("delete_event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); + etk_signal_connect("delete-event", ETK_OBJECT(win), ETK_CALLBACK(etk_window_hide_on_delete), NULL); vbox = etk_vbox_new(ETK_FALSE, 0); etk_container_add(ETK_CONTAINER(win), vbox); @@ -106,11 +106,11 @@ statusbar = etk_statusbar_new(); etk_box_append(ETK_BOX(vbox), statusbar, ETK_BOX_START, ETK_BOX_FILL, 0); - etk_signal_connect("key_down", ETK_OBJECT(tree), + etk_signal_connect("key-down", ETK_OBJECT(tree), ETK_CALLBACK(_etk_test_tree_key_down_cb), NULL); - etk_signal_connect("row_clicked", ETK_OBJECT(tree), + etk_signal_connect("row-clicked", ETK_OBJECT(tree), ETK_CALLBACK(_etk_test_tree_row_clicked_cb), statusbar); - etk_signal_connect("cell_value_changed", ETK_OBJECT(col5), + etk_signal_connect("cell-value-changed", ETK_OBJECT(col5), ETK_CALLBACK(_etk_test_tree_checkbox_toggled_cb), statusbar); etk_widget_show_all(win); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs