Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/bin
Modified Files:
ewl_border_test.c ewl_box_test.c ewl_button_test.c
ewl_dialog_test.c ewl_embed_test.c ewl_entry_test.c
ewl_floater_test.c ewl_iconbox_test.c ewl_image_test.c
ewl_media_test.c ewl_notebook_test.c ewl_paned_test.c
ewl_password_test.c ewl_progressbar_test.c
ewl_selectionbar_test.c ewl_selectionbook_test.c
ewl_simple_test.c ewl_spinner_test.c ewl_statusbar_test.c
ewl_table_test.c ewl_test.c ewl_text_test.c ewl_theme_test.c
ewl_tooltip_test.c ewl_tree_test.c
Log Message:
API Breakage:
Changing constructor conventions, they do not require extra params.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_border_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_border_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_border_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -98,17 +98,20 @@
ewl_container_child_append(EWL_CONTAINER(border_box), avbox);
ewl_widget_show(avbox);
- alabel = ewl_text_new("Tabs Alignment");
+ alabel = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(alabel), "Tabs Alignment");
ewl_container_child_append(EWL_CONTAINER(avbox), alabel);
ewl_widget_show(alabel);
- button_atop = ewl_radiobutton_new("Top");
+ button_atop = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_atop), "Top");
ewl_container_child_append(EWL_CONTAINER(avbox), button_atop);
ewl_callback_append(button_atop, EWL_CALLBACK_VALUE_CHANGED,
__border_change_alignment, border_box);
ewl_widget_show(button_atop);
- button_aleft = ewl_radiobutton_new("Left");
+ button_aleft = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_aleft), "Left");
ewl_radiobutton_checked_set(button_aleft, 1);
ewl_container_child_append(EWL_CONTAINER(avbox), button_aleft);
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_aleft),
@@ -117,7 +120,8 @@
__border_change_alignment, border_box);
ewl_widget_show(button_aleft);
- button_acenter = ewl_radiobutton_new("Center");
+ button_acenter = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_acenter), "Center");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_acenter),
EWL_RADIOBUTTON(button_aleft));
ewl_radiobutton_checked_set(button_acenter, 1);
@@ -126,7 +130,8 @@
__border_change_alignment, border_box);
ewl_widget_show(button_acenter);
- button_aright = ewl_radiobutton_new("Right");
+ button_aright = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_aright), "Right");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_aright),
EWL_RADIOBUTTON(button_acenter));
ewl_container_child_append(EWL_CONTAINER(avbox), button_aright);
@@ -134,7 +139,8 @@
__border_change_alignment, border_box);
ewl_widget_show(button_aright);
- button_abottom = ewl_radiobutton_new("Bottom");
+ button_abottom = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_abottom), "Bottom");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_abottom),
EWL_RADIOBUTTON(button_aright));
ewl_container_child_append(EWL_CONTAINER(avbox), button_abottom);
@@ -147,17 +153,20 @@
ewl_container_child_append(EWL_CONTAINER(border_box), pvbox);
ewl_widget_show(pvbox);
- plabel = ewl_text_new("Tabs Position");
+ plabel = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(plabel), "Tabs Position");
ewl_container_child_append(EWL_CONTAINER(pvbox), plabel);
ewl_widget_show(plabel);
- button_pleft = ewl_radiobutton_new("Left");
+ button_pleft = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_pleft), "Left");
ewl_container_child_append(EWL_CONTAINER(pvbox), button_pleft);
ewl_callback_append(button_pleft, EWL_CALLBACK_VALUE_CHANGED,
__border_change_position, border_box);
ewl_widget_show(button_pleft);
- button_pright = ewl_radiobutton_new("Right");
+ button_pright = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_pright), "Right");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_pright),
EWL_RADIOBUTTON(button_pleft));
ewl_container_child_append(EWL_CONTAINER(pvbox), button_pright);
@@ -165,7 +174,8 @@
__border_change_position, border_box);
ewl_widget_show(button_pright);
- button_ptop = ewl_radiobutton_new("Top");
+ button_ptop = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_ptop), "Top");
ewl_radiobutton_checked_set(button_ptop, 1);
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_ptop),
EWL_RADIOBUTTON(button_pright));
@@ -174,7 +184,8 @@
__border_change_position, border_box);
ewl_widget_show(button_ptop);
- button_pbottom = ewl_radiobutton_new("Bottom");
+ button_pbottom = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_pbottom), "Bottom");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_pbottom),
EWL_RADIOBUTTON(button_ptop));
ewl_container_child_append(EWL_CONTAINER(pvbox), button_pbottom);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_box_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_box_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_box_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -150,7 +150,8 @@
/*
* Create and setup the button that starts in the left position.
*/
- vbox_button[0][0] = ewl_button_new("Left");
+ vbox_button[0][0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(vbox_button[0][0]), "Left");
ewl_container_child_append(EWL_CONTAINER(vbox[0]), vbox_button[0][0]);
ewl_object_fill_policy_set(EWL_OBJECT(vbox_button[0][0]),
EWL_FLAG_FILL_NONE);
@@ -163,7 +164,8 @@
/*
* Create and setup the button that starts in the center position.
*/
- vbox_button[0][1] = ewl_button_new("Center");
+ vbox_button[0][1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(vbox_button[0][1]), "Center");
ewl_container_child_append(EWL_CONTAINER(vbox[0]), vbox_button[0][1]);
ewl_object_fill_policy_set(EWL_OBJECT(vbox_button[0][1]),
EWL_FLAG_FILL_NONE);
@@ -176,7 +178,8 @@
/*
* Create and setup the button that starts in the right position.
*/
- vbox_button[0][2] = ewl_button_new("Right");
+ vbox_button[0][2] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(vbox_button[0][2]), "Right");
ewl_container_child_append(EWL_CONTAINER(vbox[0]), vbox_button[0][2]);
ewl_object_fill_policy_set(EWL_OBJECT(vbox_button[0][2]),
EWL_FLAG_FILL_NONE);
@@ -196,7 +199,8 @@
/*
* Create and setup a button with no filling by default.
*/
- vbox_button[1][0] = ewl_button_new("None");
+ vbox_button[1][0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(vbox_button[1][0]), "None");
ewl_container_child_append(EWL_CONTAINER(vbox[1]), vbox_button[1][0]);
ewl_object_fill_policy_set(EWL_OBJECT(vbox_button[1][0]),
EWL_FLAG_FILL_NONE);
@@ -211,7 +215,8 @@
/*
* Create and setup a button with filling by default.
*/
- vbox_button[1][1] = ewl_button_new("Fill");
+ vbox_button[1][1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(vbox_button[1][1]), "Fill");
ewl_container_child_append(EWL_CONTAINER(vbox[1]), vbox_button[1][1]);
ewl_box_orientation_set(EWL_BOX(vbox_button[1][1]),
EWL_ORIENTATION_VERTICAL);
@@ -226,7 +231,8 @@
/*
* Create and setup a button with no filling by default.
*/
- vbox_button[1][2] = ewl_button_new("None");
+ vbox_button[1][2] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(vbox_button[1][2]), "None");
ewl_container_child_append(EWL_CONTAINER(vbox[1]), vbox_button[1][2]);
ewl_box_orientation_set(EWL_BOX(vbox_button[1][2]),
EWL_ORIENTATION_VERTICAL);
@@ -248,7 +254,8 @@
/*
* Create and setup a button with top alignment by default.
*/
- hbox_button[0][0] = ewl_button_new("Top");
+ hbox_button[0][0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(hbox_button[0][0]), "Top");
ewl_container_child_append(EWL_CONTAINER(hbox[1]), hbox_button[0][0]);
ewl_object_fill_policy_set(EWL_OBJECT(hbox_button[0][0]),
EWL_FLAG_FILL_NONE);
@@ -261,7 +268,8 @@
/*
* Create and setup a button with center alignment by default.
*/
- hbox_button[0][1] = ewl_button_new("Center");
+ hbox_button[0][1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(hbox_button[0][1]), "Center");
ewl_container_child_append(EWL_CONTAINER(hbox[1]), hbox_button[0][1]);
ewl_object_fill_policy_set(EWL_OBJECT(hbox_button[0][1]),
EWL_FLAG_FILL_NONE);
@@ -274,7 +282,8 @@
/*
* Create and setup a button with bottom alignment by default.
*/
- hbox_button[0][2] = ewl_button_new("Bottom");
+ hbox_button[0][2] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(hbox_button[0][2]), "Bottom");
ewl_container_child_append(EWL_CONTAINER(hbox[1]), hbox_button[0][2]);
ewl_object_fill_policy_set(EWL_OBJECT(hbox_button[0][2]),
EWL_FLAG_FILL_NONE);
@@ -295,8 +304,9 @@
/*
* Create and setup a button with no filling by default.
*/
- hbox_button[1][0] =
- ewl_button_new("Shrink This Box To Fit It's Parent");
+ hbox_button[1][0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(hbox_button[1][0]),
+ "Shrink This Box To Fit It's Parent");
ewl_object_fill_policy_set(EWL_OBJECT(hbox_button[1][0]),
EWL_FLAG_FILL_HSHRINK);
ewl_container_child_append(EWL_CONTAINER(hbox[2]), hbox_button[1][0]);
@@ -307,8 +317,9 @@
/*
* Create and setup a button with shrinking by default.
*/
- hbox_button[1][1] =
- ewl_button_new("Shrink This Box To Fit It's Parent");
+ hbox_button[1][1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(hbox_button[1][1]),
+ "Shrink This Box To Fit It's Parent");
ewl_object_fill_policy_set(EWL_OBJECT(hbox_button[1][1]),
EWL_FLAG_FILL_HSHRINK);
ewl_container_child_append(EWL_CONTAINER(hbox[2]), hbox_button[1][1]);
@@ -319,7 +330,9 @@
/*
* Create and setup a button with no filling by default.
*/
- hbox_button[1][2] = ewl_button_new("Don't shrink this box at all");
+ hbox_button[1][2] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(hbox_button[1][2]),
+ "Don't shrink this box at all");
ewl_object_fill_policy_set(EWL_OBJECT(hbox_button[1][2]),
EWL_FLAG_FILL_NONE);
ewl_container_child_append(EWL_CONTAINER(hbox[2]), hbox_button[1][2]);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_button_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_button_test.c 15 Jun 2005 20:17:43 -0000 1.3
+++ ewl_button_test.c 3 Oct 2005 06:43:07 -0000 1.4
@@ -52,7 +52,8 @@
/*
* Create a button to be displayed witha label.
*/
- button[0] = ewl_button_new("With Label");
+ button[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[0]), "With Label");
ewl_container_child_append(EWL_CONTAINER(button_box), button[0]);
ewl_object_alignment_set(EWL_OBJECT(button[0]), EWL_FLAG_ALIGN_LEFT);
ewl_widget_show(button[0]);
@@ -60,7 +61,7 @@
/*
* Create a button that does not contain a label
*/
- button[1] = ewl_button_new(NULL);
+ button[1] = ewl_button_new();
ewl_container_child_append(EWL_CONTAINER(button_box), button[1]);
ewl_object_alignment_set(EWL_OBJECT(button[1]), EWL_FLAG_ALIGN_LEFT);
ewl_widget_show(button[1]);
@@ -75,7 +76,8 @@
/*
* Create a check button with a label.
*/
- check_button[0] = ewl_checkbutton_new("With Label");
+ check_button[0] = ewl_checkbutton_new();
+ ewl_button_label_set(EWL_BUTTON(check_button[0] ), "With Label");
ewl_container_child_append(EWL_CONTAINER(button_box), check_button[0]);
ewl_object_alignment_set(EWL_OBJECT(check_button[0]),
EWL_FLAG_ALIGN_LEFT);
@@ -84,7 +86,7 @@
/*
* Create a check button w/o a label.
*/
- check_button[1] = ewl_checkbutton_new(NULL);
+ check_button[1] = ewl_checkbutton_new();
ewl_container_child_append(EWL_CONTAINER(button_box), check_button[1]);
ewl_object_alignment_set(EWL_OBJECT(check_button[1]),
EWL_FLAG_ALIGN_LEFT);
@@ -100,13 +102,14 @@
/*
* Add a radio button with
*/
- radio_button[0] = ewl_radiobutton_new("With Label");
+ radio_button[0] = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(radio_button[0] ), "With Label");
ewl_container_child_append(EWL_CONTAINER(button_box), radio_button[0]);
ewl_object_alignment_set(EWL_OBJECT(radio_button[0]),
EWL_FLAG_ALIGN_LEFT);
ewl_widget_show(radio_button[0]);
- radio_button[1] = ewl_radiobutton_new(NULL);
+ radio_button[1] = ewl_radiobutton_new();
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(radio_button[1]),
EWL_RADIOBUTTON(radio_button[0]));
ewl_container_child_append(EWL_CONTAINER(button_box), radio_button[1]);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_dialog_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_dialog_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_dialog_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -37,7 +37,8 @@
sprintf (str, "You have clicked on the OK Button\nThe response id is
%d.\n", response);
- label = ewl_text_new (str);
+ label = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(label), str);
ewl_container_child_append (EWL_CONTAINER (win_ok), label);
ewl_widget_show (label);
@@ -63,7 +64,8 @@
sprintf (str, "You have clicked on the CANCEL Button\nThe response id
is %d.\n", response);
- label = ewl_text_new (str);
+ label = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(label), str);
ewl_container_child_append (EWL_CONTAINER (win_cancel), label);
ewl_widget_show (label);
@@ -108,11 +110,13 @@
ewl_dialog_widget_add (EWL_DIALOG (dialog_win), hbox);
ewl_widget_show (hbox);
- image = ewl_image_new ("my_image.png", NULL);
+ image = ewl_image_new ();
+ ewl_image_file_set(EWL_IMAGE(image), "my_image.png", NULL);
ewl_container_child_append (EWL_CONTAINER (hbox), image);
ewl_widget_show (image);
- label = ewl_text_new ("This is a test for the Dialog widget");
+ label = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(label), "This is a test for the Dialog widget");
ewl_container_child_append (EWL_CONTAINER (hbox), label);
ewl_widget_show (label);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_embed_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_embed_test.c 7 Sep 2005 03:05:32 -0000 1.5
+++ ewl_embed_test.c 3 Oct 2005 06:43:07 -0000 1.6
@@ -77,11 +77,13 @@
ewl_container_child_append(EWL_CONTAINER(embed), box);
ewl_widget_show(box);
- entry = ewl_entry_new("Type stuff here");
+ entry = ewl_entry_new();
+ ewl_text_text_set(EWL_TEXT(entry), "Type stuff here");
ewl_container_child_append(EWL_CONTAINER(box), entry);
ewl_widget_show(entry);
- button = ewl_button_new("Print");
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "Print");
ewl_container_child_append(EWL_CONTAINER(box), button);
ewl_callback_append(button, EWL_CALLBACK_CLICKED, print_cb, entry);
ewl_widget_show(button);
@@ -89,7 +91,8 @@
ewl_callback_append(embed, EWL_CALLBACK_CONFIGURE,
move_embed_contents_cb, box);
- text = ewl_text_new(NULL);
+ text = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(text), NULL);
ewl_container_child_append(EWL_CONTAINER(box), text);
ewl_widget_show(text);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_entry_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_entry_test.c 6 Jul 2005 13:44:38 -0000 1.3
+++ ewl_entry_test.c 3 Oct 2005 06:43:07 -0000 1.4
@@ -73,7 +73,8 @@
ewl_box_spacing_set(EWL_BOX(entry_box), 10);
ewl_widget_show(entry_box);
- entry[0] = ewl_entry_new("Play with me ?");
+ entry[0] = ewl_entry_new();
+ ewl_text_text_set(EWL_TEXT(entry[0]), "Play with me ?");
ewl_entry_multiline_set(EWL_ENTRY(entry[0]), 1);
ewl_text_color_set(EWL_TEXT(entry[0]), 255, 0, 0, 255);
ewl_object_padding_set(EWL_OBJECT(entry[0]), 5, 5, 5, 0);
@@ -82,7 +83,8 @@
__fetch_entry_text, NULL);
ewl_widget_show(entry[0]);
- entry[1] = ewl_entry_new("E W L ! ! !");
+ entry[1] = ewl_entry_new();
+ ewl_text_text_set(EWL_TEXT(entry[1]), "E W L ! ! !");
ewl_text_color_set(EWL_TEXT(entry[1]), 255, 0, 0, 255);
ewl_object_padding_set(EWL_OBJECT(entry[1]), 5, 5, 0, 0);
ewl_container_child_append(EWL_CONTAINER(entry_box), entry[1]);
@@ -96,13 +98,15 @@
ewl_box_spacing_set(EWL_BOX(button_hbox), 5);
ewl_widget_show(button_hbox);
- button[0] = ewl_button_new("Fetch text");
+ button[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[0]), "Fetch text");
ewl_container_child_append(EWL_CONTAINER(button_hbox), button[0]);
ewl_callback_append(button[0], EWL_CALLBACK_CLICKED,
__fetch_entry_text, NULL);
ewl_widget_show(button[0]);
- button[1] = ewl_button_new("Set Text");
+ button[1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[1]), "Set Text");
ewl_container_child_append(EWL_CONTAINER(button_hbox), button[1]);
ewl_callback_append(button[1], EWL_CALLBACK_CLICKED,
__set_entry_text, NULL);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_floater_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_floater_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_floater_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -44,13 +44,15 @@
ewl_container_child_append(EWL_CONTAINER(floater_win), floater_box);
ewl_widget_show(floater_box);
- radio_button[0] = ewl_radiobutton_new("With Label");
+ radio_button[0] = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(radio_button[0]), "With Label");
ewl_container_child_append(EWL_CONTAINER(floater_box), radio_button[0]);
ewl_object_alignment_set(EWL_OBJECT(radio_button[0]),
EWL_FLAG_ALIGN_LEFT);
ewl_widget_show(radio_button[0]);
- radio_button[1] = ewl_radiobutton_new(NULL);
+ radio_button[1] = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(radio_button[1]), NULL);
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(radio_button[1]),
EWL_RADIOBUTTON(radio_button[0]));
ewl_container_child_append(EWL_CONTAINER(floater_box), radio_button[1]);
@@ -63,13 +65,15 @@
ewl_floater_position_set(EWL_FLOATER(floater), 20, 20);
ewl_widget_show(floater);
- button[0] = ewl_button_new("With Label");
+ button[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[0]), "With Label");
ewl_container_child_append(EWL_CONTAINER(floater), button[0]);
ewl_object_alignment_set(EWL_OBJECT(button[0]), EWL_FLAG_ALIGN_LEFT);
ewl_object_custom_size_set(EWL_OBJECT(button[0]), 100, 17);
ewl_widget_show(button[0]);
- button[1] = ewl_button_new(NULL);
+ button[1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[1]), NULL);
ewl_container_child_append(EWL_CONTAINER(floater), button[1]);
ewl_object_alignment_set(EWL_OBJECT(button[1]), EWL_FLAG_ALIGN_LEFT);
ewl_object_custom_size_set(EWL_OBJECT(button[1]), 100, 17);
@@ -81,13 +85,15 @@
ewl_object_padding_set(EWL_OBJECT(separator), 2, 2, 5, 5);
- check_button[0] = ewl_checkbutton_new("With Label");
+ check_button[0] = ewl_checkbutton_new();
+ ewl_button_label_set(EWL_BUTTON(check_button[0]), "With Label");
ewl_container_child_append(EWL_CONTAINER(floater), check_button[0]);
ewl_object_alignment_set(EWL_OBJECT(check_button[0]),
EWL_FLAG_ALIGN_LEFT);
ewl_widget_show(check_button[0]);
- check_button[1] = ewl_checkbutton_new(NULL);
+ check_button[1] = ewl_checkbutton_new();
+ ewl_button_label_set(EWL_BUTTON(check_button[1]), NULL);
ewl_container_child_append(EWL_CONTAINER(floater), check_button[1]);
ewl_object_alignment_set(EWL_OBJECT(check_button[1]),
EWL_FLAG_ALIGN_LEFT);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_iconbox_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_iconbox_test.c 27 Sep 2005 04:20:16 -0000 1.4
+++ ewl_iconbox_test.c 3 Oct 2005 06:43:07 -0000 1.5
@@ -38,9 +38,10 @@
__create_iconbox_test_window(Ewl_Widget * w __UNUSED__, void *ev_data
__UNUSED__,
void *user_data __UNUSED__)
{
-
-
Ewl_Widget* ib_win;
+ Ewl_Widget* box;
+ Ewl_Widget* button;
+
ewl_iconbox_button=w;
ib_win= ewl_window_new();
@@ -66,8 +67,9 @@
ewl_iconbox_editable_set(EWL_ICONBOX(ib), 1);
- Ewl_Widget* box = ewl_hbox_new();
- Ewl_Widget* button = ewl_button_new ("Add Icons");
+ box = ewl_hbox_new();
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "Add Icons");
ewl_widget_show(button);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_image_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_image_test.c 6 Jul 2005 13:44:38 -0000 1.3
+++ ewl_image_test.c 3 Oct 2005 06:43:07 -0000 1.4
@@ -141,7 +141,8 @@
else if ((__image_exists("../data/images/e-logo.png")) != -1)
image_file = strdup("../data/images/e-logo.png");
- image = ewl_image_new(image_file, NULL);
+ image = ewl_image_new();
+ ewl_image_file_set(EWL_IMAGE(image), image_file, NULL);
ewl_object_padding_set(EWL_OBJECT(image), 0, 0, 5, 0);
ewl_object_alignment_set(EWL_OBJECT(image), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(scrollpane), image);
@@ -150,7 +151,8 @@
if (image_file)
ecore_dlist_append(images, image_file);
- entry_path = ewl_entry_new(image_file);
+ entry_path = ewl_entry_new();
+ ewl_text_text_set(EWL_TEXT(entry_path), image_file);
ewl_container_child_append(EWL_CONTAINER(image_box), entry_path);
ewl_widget_show(entry_path);
@@ -161,9 +163,12 @@
ewl_container_child_append(EWL_CONTAINER(image_box), button_hbox);
ewl_widget_show(button_hbox);
- button_prev = ewl_button_new("Previous");
- button_load = ewl_button_new("Load");
- button_next = ewl_button_new("Next");
+ button_prev = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button_prev), "Previous");
+ button_load = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button_load), "Load");
+ button_next = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button_next), "Next");
ewl_container_child_append(EWL_CONTAINER(button_hbox), button_prev);
ewl_container_child_append(EWL_CONTAINER(button_hbox), button_load);
@@ -231,7 +236,8 @@
ewl_object_maximum_h_set(EWL_OBJECT(note_box), 20);
ewl_widget_show(note_box);
- note = ewl_text_new("These buttons don't do shit.");
+ note = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(note), "These buttons don't do shit.");
ewl_text_color_set(EWL_TEXT(note), 255, 0, 0, 255);
ewl_container_child_append(EWL_CONTAINER(note_box), note);
ewl_widget_show(note);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_media_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_media_test.c 2 Oct 2005 12:18:50 -0000 1.5
+++ ewl_media_test.c 3 Oct 2005 06:43:07 -0000 1.6
@@ -203,7 +203,8 @@
ewl_widget_show(b);
/* create the time widget now so we can pass it to the video as data */
- time = ewl_text_new("00:00:00");
+ time = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(time), "00:00:00");
/* the video */
video = ewl_media_new(module, file);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_notebook_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_notebook_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_notebook_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -69,14 +69,16 @@
Ewl_Widget *avbox, *alabel;
Ewl_Widget *pvbox, *plabel;
- tab = ewl_text_new("Main");
+ tab = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(tab), "Main");
ewl_widget_show(tab);
main_vbox = ewl_vbox_new();
ewl_box_spacing_set(EWL_BOX(main_vbox), 10);
ewl_widget_show(main_vbox);
- text = ewl_text_new("Main");
+ text = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(text), "Main");
ewl_object_alignment_set(EWL_OBJECT(text), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(main_vbox), text);
ewl_widget_show(text);
@@ -86,17 +88,20 @@
ewl_container_child_append(EWL_CONTAINER(main_vbox), avbox);
ewl_widget_show(avbox);
- alabel = ewl_text_new("Tabs Alignment");
+ alabel = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(alabel), "Tabs Alignment");
ewl_container_child_append(EWL_CONTAINER(avbox), alabel);
ewl_widget_show(alabel);
- button_atop = ewl_radiobutton_new("Top");
+ button_atop = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_atop), "Top");
ewl_container_child_append(EWL_CONTAINER(avbox), button_atop);
ewl_callback_append(button_atop, EWL_CALLBACK_VALUE_CHANGED,
__notebook_change_alignment, notebook);
ewl_widget_show(button_atop);
- button_aleft = ewl_radiobutton_new("Left");
+ button_aleft = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_aleft), "Left");
ewl_radiobutton_checked_set(button_aleft, 1);
ewl_container_child_append(EWL_CONTAINER(avbox), button_aleft);
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_aleft),
@@ -105,7 +110,8 @@
__notebook_change_alignment, notebook);
ewl_widget_show(button_aleft);
- button_acenter = ewl_radiobutton_new("Center");
+ button_acenter = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_acenter), "Center");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_acenter),
EWL_RADIOBUTTON(button_aleft));
ewl_radiobutton_checked_set(button_acenter, 1);
@@ -114,7 +120,8 @@
__notebook_change_alignment, notebook);
ewl_widget_show(button_acenter);
- button_aright = ewl_radiobutton_new("Right");
+ button_aright = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_aright), "Right");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_aright),
EWL_RADIOBUTTON(button_acenter));
ewl_container_child_append(EWL_CONTAINER(avbox), button_aright);
@@ -122,7 +129,8 @@
__notebook_change_alignment, notebook);
ewl_widget_show(button_aright);
- button_abottom = ewl_radiobutton_new("Bottom");
+ button_abottom = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_abottom), "Bottom");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_abottom),
EWL_RADIOBUTTON(button_aright));
ewl_container_child_append(EWL_CONTAINER(avbox), button_abottom);
@@ -135,17 +143,20 @@
ewl_container_child_append(EWL_CONTAINER(main_vbox), pvbox);
ewl_widget_show(pvbox);
- plabel = ewl_text_new("Tabs Position");
+ plabel = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(plabel), "Tabs Position");
ewl_container_child_append(EWL_CONTAINER(pvbox), plabel);
ewl_widget_show(plabel);
- button_pleft = ewl_radiobutton_new("Left");
+ button_pleft = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_pleft), "Left");
ewl_container_child_append(EWL_CONTAINER(pvbox), button_pleft);
ewl_callback_append(button_pleft, EWL_CALLBACK_VALUE_CHANGED,
__notebook_change_position, notebook);
ewl_widget_show(button_pleft);
- button_pright = ewl_radiobutton_new("Right");
+ button_pright = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_pright), "Right");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_pright),
EWL_RADIOBUTTON(button_pleft));
ewl_container_child_append(EWL_CONTAINER(pvbox), button_pright);
@@ -153,7 +164,8 @@
__notebook_change_position, notebook);
ewl_widget_show(button_pright);
- button_ptop = ewl_radiobutton_new("Top");
+ button_ptop = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_ptop), "Top");
ewl_radiobutton_checked_set(button_ptop, 1);
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_ptop),
EWL_RADIOBUTTON(button_pright));
@@ -162,7 +174,8 @@
__notebook_change_position, notebook);
ewl_widget_show(button_ptop);
- button_pbottom = ewl_radiobutton_new("Bottom");
+ button_pbottom = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(button_pbottom), "Bottom");
ewl_radiobutton_chain_set(EWL_RADIOBUTTON(button_pbottom),
EWL_RADIOBUTTON(button_ptop));
ewl_container_child_append(EWL_CONTAINER(pvbox), button_pbottom);
@@ -185,14 +198,16 @@
snprintf(label, 20, "Page %i", num++);
- tab = ewl_text_new(label);
+ tab = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(tab), label);
ewl_widget_show(tab);
main_vbox = ewl_vbox_new();
ewl_box_spacing_set(EWL_BOX(main_vbox), 10);
ewl_widget_show(main_vbox);
- text = ewl_text_new(label);
+ text = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(text), label);
ewl_object_alignment_set(EWL_OBJECT(text), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(main_vbox), text);
ewl_widget_show(text);
@@ -204,19 +219,22 @@
ewl_container_child_append(EWL_CONTAINER(main_vbox), hbox);
ewl_widget_show(hbox);
- button[0] = ewl_button_new("Append Page");
+ button[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[0]), "Append Page");
ewl_container_child_append(EWL_CONTAINER(hbox), button[0]);
ewl_callback_append(button[0], EWL_CALLBACK_CLICKED,
__notebook_append_page, notebook);
ewl_widget_show(button[0]);
- button[1] = ewl_button_new("Prepend Page");
+ button[1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[1]), "Prepend Page");
ewl_container_child_append(EWL_CONTAINER(hbox), button[1]);
ewl_callback_append(button[1], EWL_CALLBACK_CLICKED,
__notebook_prepend_page, notebook);
ewl_widget_show(button[1]);
- button[2] = ewl_button_new("Remove This Page");
+ button[2] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[2]), "Remove This Page");
ewl_object_alignment_set(EWL_OBJECT(button[2]), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(main_vbox), button[2]);
ewl_callback_append(button[2], EWL_CALLBACK_CLICKED,
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_paned_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_paned_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_paned_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -45,11 +45,13 @@
ewl_container_child_append(EWL_CONTAINER(box), pane);
ewl_widget_show(pane);
- o = ewl_text_new("left");
+ o = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(o), "left");
ewl_paned_first_pane_append(EWL_PANED(pane), o);
ewl_widget_show(o);
- o = ewl_text_new("right");
+ o = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(o), "right");
ewl_paned_second_pane_append(EWL_PANED(pane), o);
ewl_widget_show(o);
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_password_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_password_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_password_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -89,13 +89,15 @@
ewl_box_spacing_set(EWL_BOX(button_hbox), 5);
ewl_widget_show(button_hbox);
- button[0] = ewl_button_new("Fetch text");
+ button[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[0]), "Fetch text");
ewl_container_child_append(EWL_CONTAINER(button_hbox), button[0]);
ewl_callback_append(button[0], EWL_CALLBACK_CLICKED,
__fetch_password_text, NULL);
ewl_widget_show(button[0]);
- button[1] = ewl_button_new("Set Text");
+ button[1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[1]), "Set Text");
ewl_container_child_append(EWL_CONTAINER(button_hbox), button[1]);
ewl_callback_append(button[1], EWL_CALLBACK_CLICKED,
__set_password_text, NULL);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_progressbar_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_progressbar_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_progressbar_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -191,7 +191,8 @@
ewl_box_spacing_set(EWL_BOX(progressbar_box), 0);
ewl_widget_show(progressbar_box);
- button = ewl_button_new ("Rerun");
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "Rerun");
ewl_container_child_append(EWL_CONTAINER(progressbar_box), button);
ewl_callback_prepend(button, EWL_CALLBACK_CLICKED,
__rerun_progressbars, NULL);
@@ -199,7 +200,8 @@
ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
ewl_widget_show (button);
- button = ewl_button_new ("Set a random range from 0-500");
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "Set a random range from
0-500");
ewl_container_child_append(EWL_CONTAINER(progressbar_box), button);
ewl_callback_prepend(button, EWL_CALLBACK_CLICKED,
__set_new_range, NULL);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_selectionbar_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_selectionbar_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_selectionbar_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -45,7 +45,8 @@
"/appearance/box/vertical/base/visible", "yes");
ewl_widget_show(box);
- box_button = ewl_button_new("test test test");
+ box_button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(box_button), "test test test");
ewl_object_fill_policy_set(EWL_OBJECT(box_button),
EWL_FLAG_FILL_SHRINK);
ewl_container_child_append(EWL_CONTAINER(box), box_button);
@@ -56,15 +57,18 @@
ewl_container_child_append(EWL_CONTAINER(sbar_win), sbar);
ewl_widget_show(sbar);
- child[0] = ewl_button_new("child 1");
+ child[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(child[0]), "child 1");
ewl_container_child_append(EWL_CONTAINER(sbar), child[0]);
ewl_widget_show(child[0]);
- child[1] = ewl_button_new("child 2");
+ child[1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(child[1]), "child 2");
ewl_container_child_append(EWL_CONTAINER(sbar), child[1]);
ewl_widget_show(child[1]);
- child[2] = ewl_button_new("child 3");
+ child[2] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(child[2]), "child 3");
ewl_container_child_append(EWL_CONTAINER(sbar), child[2]);
ewl_widget_show(child[2]);
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_selectionbook_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_selectionbook_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_selectionbook_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -44,11 +44,13 @@
ewl_container_child_append(EWL_CONTAINER(sbook_win), sbook);
ewl_widget_show(sbook);
- tab[0] = ewl_button_new("Tab - ONE");
+ tab[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(tab[0]), "Tab - ONE");
ewl_object_alignment_set(EWL_OBJECT(tab[0]), EWL_FLAG_ALIGN_LEFT);
ewl_object_custom_size_set(EWL_OBJECT(tab[0]), 100, 17);
- tab[1] = ewl_button_new("Tab - TWO");
+ tab[1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(tab[1]), "Tab - TWO");
ewl_object_alignment_set(EWL_OBJECT(tab[1]), EWL_FLAG_ALIGN_LEFT);
ewl_object_custom_size_set(EWL_OBJECT(tab[1]), 100, 17);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_simple_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_simple_test.c 5 Sep 2005 14:12:15 -0000 1.6
+++ ewl_simple_test.c 3 Oct 2005 06:43:07 -0000 1.7
@@ -238,7 +238,8 @@
/*
* Create the label first so we can pass it to the logo's callbacks
*/
- label = ewl_text_new(NULL);
+ label = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(label), NULL);
/*
* Setup the custom logo which becomes the tour display area.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_spinner_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_spinner_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_spinner_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -124,7 +124,8 @@
ewl_container_child_append(EWL_CONTAINER(spinner_box), spinner_row);
ewl_widget_show(spinner_row);
- text[0] = ewl_text_new("X");
+ text[0] = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(text[0]), "X");
ewl_object_alignment_set(EWL_OBJECT(text[0]), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(spinner_row), text[0]);
ewl_widget_show(text[0]);
@@ -148,7 +149,8 @@
ewl_container_child_append(EWL_CONTAINER(spinner_box), spinner_row);
ewl_widget_show(spinner_row);
- text[1] = ewl_text_new("Y");
+ text[1] = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(text[1]), "Y");
ewl_object_alignment_set(EWL_OBJECT(text[1]), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(spinner_row), text[1]);
ewl_widget_show(text[1]);
@@ -172,7 +174,8 @@
ewl_container_child_append(EWL_CONTAINER(spinner_box), spinner_row);
ewl_widget_show(spinner_row);
- text[2] = ewl_text_new("W");
+ text[2] = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(text[2]), "W");
ewl_object_alignment_set(EWL_OBJECT(text[2]), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(spinner_row), text[2]);
ewl_widget_show(text[2]);
@@ -196,7 +199,8 @@
ewl_container_child_append(EWL_CONTAINER(spinner_box), spinner_row);
ewl_widget_show(spinner_row);
- text[3] = ewl_text_new("H");
+ text[3] = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(text[3]), "H");
ewl_object_alignment_set(EWL_OBJECT(text[3]), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(spinner_row), text[3]);
ewl_widget_show(text[3]);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_statusbar_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_statusbar_test.c 28 May 2005 20:32:49 -0000 1.2
+++ ewl_statusbar_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -69,14 +69,16 @@
ewl_statusbar_left_hide(EWL_STATUSBAR(statusbar));
ewl_widget_show(statusbar);
- button = ewl_button_new("push");
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "push");
ewl_callback_append(button, EWL_CALLBACK_CLICKED, __button_push_cb,
statusbar);
ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
ewl_container_child_append(EWL_CONTAINER(box), button);
ewl_widget_show(button);
- button = ewl_button_new("pop");
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "pop");
ewl_callback_append(button, EWL_CALLBACK_CLICKED, __button_pop_cb,
statusbar);
ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_table_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_table_test.c 28 May 2005 20:32:49 -0000 1.3
+++ ewl_table_test.c 3 Oct 2005 06:43:07 -0000 1.4
@@ -64,19 +64,22 @@
- button[0] = ewl_button_new("FIRST");
+ button[0] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[0]), "FIRST");
ewl_table_add(EWL_TABLE(table), button[0], 3, 4, 2, 3);
ewl_widget_show(button[0]);
/*
- button[1] = ewl_button_new(NULL);
+ button[1] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[1]), NULL);
ewl_table_attach(EWL_TABLE(table), button[1], 1, 1, 2, 2);
ewl_object_set_custom_size(EWL_OBJECT(button[1]), 100, 20);
ewl_object_fill_policy_set(EWL_OBJECT(button[1]),
EWL_FLAG_FILL_NORMAL);
ewl_widget_realize(button[1]);
- button[2] = ewl_button_new(NULL);
+ button[2] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[2]), NULL);
ewl_table_attach(EWL_TABLE(table), button[2], 1, 1, 3, 3);
ewl_object_set_custom_size(EWL_OBJECT(button[2]), 100, 20);
ewl_object_fill_policy_set(EWL_OBJECT(button[2]),
@@ -84,53 +87,62 @@
ewl_widget_show(button[2]);
- button[3] = ewl_button_new(NULL);
+ button[3] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[3]), NULL);
ewl_object_set_custom_height(EWL_OBJECT(button[3]), 20);
ewl_table_attach(EWL_TABLE(table), button[3], 2, 2, 1, 1);
ewl_widget_show(button[3]);
- button[4] = ewl_button_new(NULL);
+ button[4] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[4]), NULL);
ewl_object_set_custom_height(EWL_OBJECT(button[4]), 20);
ewl_table_attach(EWL_TABLE(table), button[4], 2, 2, 2, 2);
ewl_widget_show(button[4]);
- button[5] = ewl_button_new(NULL);
+ button[5] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[5]), NULL);
ewl_object_set_custom_height(EWL_OBJECT(button[5]), 20);
ewl_table_attach(EWL_TABLE(table), button[5], 2, 2, 3, 3);
ewl_widget_realize(button[5]);
- button[6] = ewl_button_new(NULL);
+ button[6] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[6]), NULL);
ewl_table_attach(EWL_TABLE(table), button[6], 2, 2, 4, 4);
ewl_object_set_custom_size(EWL_OBJECT(button[6]), 100, 20);
ewl_object_fill_policy_set(EWL_OBJECT(button[6]),
EWL_FLAG_FILL_NORMAL);
ewl_widget_realize(button[6]);
- button[7] = ewl_button_new(NULL);
+ button[7] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[7]), NULL);
ewl_table_attach(EWL_TABLE(table), button[7], 3, 3, 4, 4);
ewl_object_set_custom_size(EWL_OBJECT(button[7]), 100, 20);
ewl_object_fill_policy_set(EWL_OBJECT(button[7]),
EWL_FLAG_FILL_NORMAL);
ewl_widget_realize(button[7]);
- button[8] = ewl_button_new(NULL);
+ button[8] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[8]), NULL);
ewl_object_set_custom_height(EWL_OBJECT(button[8]), 20);
ewl_table_attach(EWL_TABLE(table), button[8], 3, 3, 2, 2);
ewl_widget_realize(button[8]);
- button[9] = ewl_button_new(NULL);
+ button[9] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[9]), NULL);
ewl_object_set_custom_height(EWL_OBJECT(button[9]), 20);
ewl_table_attach(EWL_TABLE(table), button[9], 2, 3, 5, 5);
ewl_widget_realize(button[9]);
- button[10] = ewl_button_new(NULL);
+ button[10] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[10]), NULL);
ewl_object_set_custom_size(EWL_OBJECT(button[10]), 100, 20);
ewl_object_fill_policy_set(EWL_OBJECT(button[10]),
EWL_FLAG_FILL_NORMAL);
ewl_table_attach(EWL_TABLE(table), button[10], 4, 4, 4, 4);
ewl_widget_realize(button[10]);
- button[11] = ewl_button_new(NULL);
+ button[11] = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button[11]), NULL);
ewl_object_set_custom_size(EWL_OBJECT(button[11]), 100, 20);
ewl_object_fill_policy_set(EWL_OBJECT(button[11]),
EWL_FLAG_FILL_NORMAL);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_test.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_test.c 25 Sep 2005 05:02:19 -0000 1.16
+++ ewl_test.c 3 Oct 2005 06:43:07 -0000 1.17
@@ -335,7 +335,9 @@
ewl_widget_show(main_area);
ewl_container_child_append(EWL_CONTAINER(main_box), main_area);
- main_text = ewl_text_new (" Click on the objects on the left to\n"
+ main_text = ewl_text_new ();
+ ewl_text_text_set(EWL_TEXT(main_text),
+ " Click on the objects on the left to\n"
"show a working example and the source\n"
"of the corresponding widget.\n"
"Keep the mouse on the button to see\n"
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_text_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_text_test.c 27 Aug 2005 02:37:14 -0000 1.7
+++ ewl_text_test.c 3 Oct 2005 06:43:07 -0000 1.8
@@ -88,7 +88,7 @@
ewl_callback_append(win, EWL_CALLBACK_KEY_UP, __key_press, NULL);
- o = ewl_text_new(NULL);
+ o = ewl_text_new();
ewl_widget_name_set(o, "text");
ewl_container_child_append(EWL_CONTAINER(win), o);
ewl_text_bg_color_set(EWL_TEXT(o), 50, 50, 50, 255);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_theme_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_theme_test.c 25 Sep 2005 05:02:19 -0000 1.5
+++ ewl_theme_test.c 3 Oct 2005 06:43:07 -0000 1.6
@@ -66,13 +66,15 @@
ewl_widget_appearance_set (notebook, "window");
/* First page: buttons */
- tab = ewl_text_new ("Buttons");
+ tab = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(tab), "Buttons");
ewl_widget_show (tab);
vbox = ewl_vbox_new ();
ewl_widget_show (vbox);
- misc = ewl_button_new ("Normal button");
+ misc = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(misc), "Normal button");
ewl_object_alignment_set (EWL_OBJECT (misc), EWL_FLAG_ALIGN_LEFT);
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
@@ -81,7 +83,8 @@
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
- misc = ewl_checkbutton_new ("Check button");
+ misc = ewl_checkbutton_new();
+ ewl_button_label_set(EWL_BUTTON(misc), "Check button");
ewl_object_alignment_set (EWL_OBJECT (misc), EWL_FLAG_ALIGN_LEFT);
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
@@ -90,7 +93,8 @@
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
- misc = ewl_radiobutton_new ("Radio button");
+ misc = ewl_radiobutton_new();
+ ewl_button_label_set(EWL_BUTTON(misc), "Radio button");
ewl_object_alignment_set (EWL_OBJECT (misc), EWL_FLAG_ALIGN_LEFT);
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
@@ -98,13 +102,15 @@
ewl_notebook_page_append (EWL_NOTEBOOK(notebook), tab, vbox);
/* Second page: numerical/text entries */
- tab = ewl_text_new ("Numerical & text entries");
+ tab = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(tab), "Numerical & text entries");
ewl_widget_show (tab);
vbox = ewl_vbox_new ();
ewl_widget_show (vbox);
- misc = ewl_entry_new ("Normal entry");
+ misc = ewl_entry_new();
+ ewl_text_text_set(EWL_TEXT(misc), "Normal entry");
ewl_object_alignment_set (EWL_OBJECT (misc), EWL_FLAG_ALIGN_LEFT);
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
@@ -147,7 +153,8 @@
ewl_notebook_page_append (EWL_NOTEBOOK(notebook), tab, vbox);
/* Third page: menus */
- tab = ewl_text_new ("Menus");
+ tab = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(tab), "Menus");
ewl_widget_show (tab);
vbox = ewl_vbox_new ();
@@ -212,7 +219,8 @@
ewl_notebook_page_append (EWL_NOTEBOOK(notebook), tab, vbox);
/* Fourth page: List/tree */
- tab = ewl_text_new ("List & tree");
+ tab = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(tab), "List & tree");
ewl_widget_show (tab);
vbox = ewl_vbox_new ();
@@ -259,7 +267,8 @@
ewl_notebook_page_append (EWL_NOTEBOOK(notebook), tab, vbox);
/* Fifth page: Misc */
- tab = ewl_text_new ("Misc");
+ tab = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(tab), "Misc");
ewl_widget_show (tab);
vbox = ewl_vbox_new ();
@@ -269,11 +278,13 @@
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
- item = ewl_text_new ("left");
+ item = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(item), "left");
ewl_paned_first_pane_append (EWL_PANED (misc), item);
ewl_widget_show (item);
- item = ewl_text_new ("right");
+ item = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(item), "right");
ewl_paned_second_pane_append (EWL_PANED (misc), item);
ewl_widget_show (item);
@@ -281,7 +292,8 @@
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
- misc = ewl_button_new ("Tooltip");
+ misc = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(misc), "Tooltip");
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
@@ -369,7 +381,8 @@
ewl_container_child_append (EWL_CONTAINER (hbox), vbox);
ewl_widget_show (vbox);
- misc = ewl_text_new ("Theme Visualization");
+ misc = ewl_text_new();
+ ewl_text_text_set(EWL_TEXT(misc), "Theme Visualization");
ewl_object_alignment_set (EWL_OBJECT (misc), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append (EWL_CONTAINER (vbox), misc);
ewl_widget_show (misc);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_tooltip_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_tooltip_test.c 25 Sep 2005 05:02:19 -0000 1.3
+++ ewl_tooltip_test.c 3 Oct 2005 06:43:07 -0000 1.4
@@ -42,7 +42,8 @@
ewl_box_spacing_set(EWL_BOX(tooltip_vbox), 0);
ewl_widget_show(tooltip_vbox);
- button = ewl_button_new ("Hoover on this button");
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "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.");
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_tree_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_tree_test.c 28 May 2005 20:32:50 -0000 1.2
+++ ewl_tree_test.c 3 Oct 2005 06:43:07 -0000 1.3
@@ -82,13 +82,15 @@
/*
* Create buttons for retrieving tree info
*/
- button = ewl_button_new("Number of selected rows");
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "Number of selected rows");
ewl_container_child_append(EWL_CONTAINER(hbox), button);
ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_HFILL);
ewl_callback_append(button, EWL_CALLBACK_CLICKED, __get_rows, tree);
ewl_widget_show(button);
- button = ewl_button_new("Clear selection");
+ button = ewl_button_new();
+ ewl_button_label_set(EWL_BUTTON(button), "Clear selection");
ewl_container_child_append(EWL_CONTAINER(hbox), button);
ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_HFILL);
ewl_callback_append(button, EWL_CALLBACK_CLICKED, __get_rows, tree);
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs