[gtk+/rendering-cleanup: 86/95] testgtk: Fix types and get rid of casting
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 86/95] testgtk: Fix types and get rid of casting
- Date: Sat, 7 Aug 2010 03:18:06 +0000 (UTC)
commit fdc7e2f3e91d3b899278f17eda2ddb8195b28743
Author: Benjamin Otte <otte redhat com>
Date: Fri Aug 6 20:37:48 2010 +0200
testgtk: Fix types and get rid of casting
tests/testgtk.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index a7ad14b..2310e5a 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -6252,7 +6252,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",
@@ -6275,7 +6275,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",
@@ -6550,10 +6550,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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]