gtk+ r21061 - in trunk/modules/other/gail: . tests
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21061 - in trunk/modules/other/gail: . tests
- Date: Mon, 11 Aug 2008 11:21:23 +0000 (UTC)
Author: mitch
Date: Mon Aug 11 11:21:23 2008
New Revision: 21061
URL: http://svn.gnome.org/viewvc/gtk+?rev=21061&view=rev
Log:
2008-08-11 Michael Natterer <mitch imendio com>
* tests/ferret.c
* tests/testlib.c
* tests/testtable.c: don't use the deprecated
gtk_box_pack_start_defaults()
Modified:
trunk/modules/other/gail/ChangeLog
trunk/modules/other/gail/tests/ferret.c
trunk/modules/other/gail/tests/testlib.c
trunk/modules/other/gail/tests/testtable.c
Modified: trunk/modules/other/gail/tests/ferret.c
==============================================================================
--- trunk/modules/other/gail/tests/ferret.c (original)
+++ trunk/modules/other/gail/tests/ferret.c Mon Aug 11 11:21:23 2008
@@ -1890,13 +1890,15 @@
if (group->is_scrolled)
{
- gtk_box_pack_start_defaults(GTK_BOX(tab->main_box),
- GTK_WIDGET(group->scroll_outer_frame));
+ gtk_box_pack_start (GTK_BOX (tab->main_box),
+ GTK_WIDGET (group->scroll_outer_frame),
+ TRUE, TRUE, 0);
}
else
{
- gtk_box_pack_start_defaults(GTK_BOX(tab->main_box),
- GTK_WIDGET(group->frame));
+ gtk_box_pack_start (GTK_BOX (tab->main_box),
+ GTK_WIDGET (group->frame),
+ TRUE, TRUE, 0);
}
}
@@ -2008,10 +2010,12 @@
break;
}
- gtk_box_pack_start_defaults(GTK_BOX(name_value->hbox),
- GTK_WIDGET(name_value->column1));
- gtk_box_pack_start_defaults(GTK_BOX(name_value->hbox),
- GTK_WIDGET(name_value->column2));
+ gtk_box_pack_start (GTK_BOX (name_value->hbox),
+ GTK_WIDGET (name_value->column1),
+ TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (name_value->hbox),
+ GTK_WIDGET (name_value->column2),
+ TRUE, TRUE, 0);
gtk_container_add(GTK_CONTAINER(group->group_vbox),
GTK_WIDGET(name_value->hbox));
group->name_value = g_list_append (group->name_value, name_value);
Modified: trunk/modules/other/gail/tests/testlib.c
==============================================================================
--- trunk/modules/other/gail/tests/testlib.c (original)
+++ trunk/modules/other/gail/tests/testlib.c Mon Aug 11 11:21:23 2008
@@ -591,9 +591,10 @@
hbuttonbox = gtk_hbutton_box_new ();
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox),
GTK_BUTTONBOX_SPREAD);
- gtk_box_pack_end_defaults (GTK_BOX (hbuttonbox),
- GTK_WIDGET (md[window_no]->button));
- gtk_box_pack_end_defaults (GTK_BOX (md[window_no]->vbox), hbuttonbox);
+ gtk_box_pack_end (GTK_BOX (hbuttonbox),
+ GTK_WIDGET (md[window_no]->button), TRUE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (md[window_no]->vbox), hbuttonbox,
+ TRUE, TRUE, 0);
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolledWindow),
md[window_no]->vbox);
Modified: trunk/modules/other/gail/tests/testtable.c
==============================================================================
--- trunk/modules/other/gail/tests/testtable.c (original)
+++ trunk/modules/other/gail/tests/testtable.c Mon Aug 11 11:21:23 2008
@@ -770,54 +770,54 @@
hbox = gtk_hbox_new(FALSE, 0);
gtk_box_set_spacing(GTK_BOX(hbox), 10);
tc->tb_ref_selection = gtk_toggle_button_new_with_label("ref_selection");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), tc->tb_ref_selection);
+ gtk_box_pack_start (GTK_BOX (hbox), tc->tb_ref_selection, TRUE, TRUE, 0);
index_label = gtk_label_new("index: ");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), index_label);
+ gtk_box_pack_start (GTK_BOX (hbox), index_label, TRUE, TRUE, 0);
tc->index_entry = gtk_entry_new();
gtk_entry_set_text(GTK_ENTRY(tc->index_entry), "1");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), tc->index_entry);
- gtk_box_pack_start_defaults(GTK_BOX(vbox), hbox);
+ gtk_box_pack_start (GTK_BOX (hbox), tc->index_entry, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
hbox = gtk_hbox_new(FALSE, 0);
gtk_box_set_spacing(GTK_BOX(hbox), 10);
tc->tb_ref_at = gtk_toggle_button_new_with_label("ref_at");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), tc->tb_ref_at);
+ gtk_box_pack_start (GTK_BOX (hbox), tc->tb_ref_at, TRUE, TRUE, 0);
row_label = gtk_label_new("row:");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), row_label);
+ gtk_box_pack_start (GTK_BOX (hbox), row_label, TRUE, TRUE, 0);
tc->row_entry = gtk_entry_new();
gtk_entry_set_text(GTK_ENTRY(tc->row_entry), "1");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), tc->row_entry);
+ gtk_box_pack_start (GTK_BOX (hbox), tc->row_entry, TRUE, TRUE, 0);
col_label = gtk_label_new("column:");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), col_label);
+ gtk_box_pack_start (GTK_BOX (hbox), col_label, TRUE, TRUE, 0);
tc->col_entry = gtk_entry_new();
gtk_entry_set_text(GTK_ENTRY(tc->col_entry), "1");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), tc->col_entry);
- gtk_box_pack_start_defaults(GTK_BOX(vbox), hbox);
+ gtk_box_pack_start (GTK_BOX (hbox), tc->col_entry, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
hbox = gtk_hbox_new(FALSE, 0);
gtk_box_set_spacing(GTK_BOX(hbox), 10);
tc->tb_ref_accessible_child = gtk_toggle_button_new_with_label("ref_accessible_child");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), tc->tb_ref_accessible_child);
+ gtk_box_pack_start (GTK_BOX (hbox), tc->tb_ref_accessible_child, TRUE, TRUE, 0);
child_label = gtk_label_new("Child no:");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), child_label);
+ gtk_box_pack_start (GTK_BOX (hbox), child_label, TRUE, TRUE, 0);
tc->child_entry = gtk_entry_new();
gtk_entry_set_text(GTK_ENTRY(tc->child_entry), "1");
- gtk_box_pack_start_defaults(GTK_BOX(hbox), tc->child_entry);
- gtk_box_pack_start_defaults(GTK_BOX(vbox), hbox);
+ gtk_box_pack_start (GTK_BOX (hbox), tc->child_entry, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
tc->tb_others = gtk_toggle_button_new_with_label("others");
- gtk_box_pack_start_defaults(GTK_BOX(vbox), tc->tb_others);
+ gtk_box_pack_start (GTK_BOX (vbox), tc->tb_others, TRUE, TRUE, 0);
hseparator = gtk_hseparator_new();
- gtk_box_pack_start_defaults(GTK_BOX(vbox), hseparator);
+ gtk_box_pack_start (GTK_BOX (vbox), hseparator, TRUE, TRUE, 0);
button = gtk_button_new_with_mnemonic("_Run Test");
hbuttonbox = gtk_hbutton_box_new();
gtk_button_box_set_layout(GTK_BUTTON_BOX(hbuttonbox),
GTK_BUTTONBOX_SPREAD);
- gtk_box_pack_end_defaults(GTK_BOX(hbuttonbox), GTK_WIDGET(button));
- gtk_box_pack_end_defaults(GTK_BOX(vbox), hbuttonbox);
+ gtk_box_pack_end (GTK_BOX (hbuttonbox), GTK_WIDGET (button), TRUE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (vbox), hbuttonbox, TRUE, TRUE, 0);
g_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(choicecb), obj);
gtk_container_add(GTK_CONTAINER(window), vbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]