summaryrefslogtreecommitdiff
path: root/tests/testtoolbar.c
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-10-30 17:08:49 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-10-30 17:08:49 +0000
commitaca1b6f3911ddc91f7d3861337be2501b264cc67 (patch)
treed3cd0d9b89cea60e10f758672582706a17e46a50 /tests/testtoolbar.c
parent342646018d3634b95c0d0d92c7df64ac3011af26 (diff)
downloadgtk+-aca1b6f3911ddc91f7d3861337be2501b264cc67.tar.gz
Make it work even when item 0 is a placeholder. (#125826) add an assertion
Thu Oct 30 17:57:53 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (logical_to_physical): Make it work even when item 0 is a placeholder. (#125826) * tests/testtoolbar.c: add an assertion that gtk_toolbar_get_nth_item (0) != NULL
Diffstat (limited to 'tests/testtoolbar.c')
-rw-r--r--tests/testtoolbar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c
index 04ec128a6f..0388ee4be7 100644
--- a/tests/testtoolbar.c
+++ b/tests/testtoolbar.c
@@ -625,12 +625,14 @@ main (gint argc, gchar **argv)
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
gtk_tool_item_set_expand (item, TRUE);
gtk_separator_tool_item_set_draw (GTK_SEPARATOR_TOOL_ITEM (item), FALSE);
-
+ g_assert (gtk_toolbar_get_nth_item (toolbar, 0) != 0);
+
item = gtk_radio_tool_button_new_from_stock (NULL, GTK_STOCK_JUSTIFY_LEFT);
group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (item));
add_item_to_list (store, item, "Left");
gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
+
item = gtk_radio_tool_button_new_from_stock (group, GTK_STOCK_JUSTIFY_CENTER);
#if 0
make_prop_editor (G_OBJECT (item));