diff options
author | Benjamin Otte <otte@redhat.com> | 2010-08-06 20:37:48 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-08-10 21:02:31 +0200 |
commit | 727122b8d66ba3dc8aeb1607ea083a5fa888b2d6 (patch) | |
tree | 4b4c5599287b71789860683c5e2ed24eed410652 /tests | |
parent | f3c3e47db7b229f7afe77d927f182fd55821a5b4 (diff) | |
download | gtk+-727122b8d66ba3dc8aeb1607ea083a5fa888b2d6.tar.gz |
testgtk: Fix types and get rid of casting
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgtk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index 3efe155062..2a8f09888f 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -6251,7 +6251,7 @@ int ntext_colors = sizeof(text_colors) / sizeof(text_colors[0]); * GtkNotebook */ -static char * book_open_xpm[] = { +static const char * book_open_xpm[] = { "16 16 4 1", " c None s None", ". c black", @@ -6274,7 +6274,7 @@ static char * book_open_xpm[] = { " .. ", " "}; -static char * book_closed_xpm[] = { +static const char * book_closed_xpm[] = { "16 16 6 1", " c None s None", ". c black", @@ -6549,10 +6549,10 @@ create_notebook (GtkWidget *widget) gtk_widget_realize (sample_notebook); if (!book_open) - book_open = gdk_pixbuf_new_from_xpm_data ((const char **)book_open_xpm); + book_open = gdk_pixbuf_new_from_xpm_data (book_open_xpm); if (!book_closed) - book_closed = gdk_pixbuf_new_from_xpm_data ((const char **)book_closed_xpm); + book_closed = gdk_pixbuf_new_from_xpm_data (book_closed_xpm); create_pages (GTK_NOTEBOOK (sample_notebook), 1, 5); |