diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-10-31 02:10:03 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-10-31 02:10:03 +0000 |
commit | eb3f5776ac4badddd59ef9d710394e97a7550f75 (patch) | |
tree | f5af86cc386cc40426a7985640ac6f59703bb73d /tests/testtoolbar.c | |
parent | 53f23a989aa640889d6726c834eec5745bddb808 (diff) | |
download | gtk+-eb3f5776ac4badddd59ef9d710394e97a7550f75.tar.gz |
delete this function (toolbar_item_is_homogeneous): cache
Fri Oct 31 02:43:34 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* gtk/gtktoolbar.c (get_item_requisition): delete this function
(toolbar_item_is_homogeneous): cache max_homogeneous_pixels
instead of re-calculating for each item.
(gtk_toolbar_size_allocate): Update comments
Diffstat (limited to 'tests/testtoolbar.c')
-rw-r--r-- | tests/testtoolbar.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c index 0388ee4be7..3602448d01 100644 --- a/tests/testtoolbar.c +++ b/tests/testtoolbar.c @@ -625,7 +625,7 @@ 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); + g_assert (gtk_toolbar_get_nth_item (GTK_TOOLBAR (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)); @@ -634,9 +634,7 @@ main (gint argc, gchar **argv) item = gtk_radio_tool_button_new_from_stock (group, GTK_STOCK_JUSTIFY_CENTER); -#if 0 make_prop_editor (G_OBJECT (item)); -#endif group = gtk_radio_tool_button_get_group (GTK_RADIO_TOOL_BUTTON (item)); add_item_to_list (store, item, "Center"); @@ -689,9 +687,7 @@ main (gint argc, gchar **argv) gtk_widget_show_all (window); -#if 0 make_prop_editor (G_OBJECT (toolbar)); -#endif g_signal_connect (window, "delete_event", G_CALLBACK (gtk_main_quit), NULL); |