From 1569f722cd547e42f781a33d83210ccc95c00788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 24 Jun 2010 01:51:33 +0200 Subject: [PATCH] [testapplication] Fix some compilation warnings --- tests/testapplication.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/testapplication.c b/tests/testapplication.c index 3a60b1c36b..992301dc63 100644 --- a/tests/testapplication.c +++ b/tests/testapplication.c @@ -19,6 +19,9 @@ */ #include "config.h" + +#include + #include #include @@ -64,12 +67,12 @@ main (int argc, char **argv) { GtkApplication *app; GtkWindow *window; - GtkWindow *window2; + GtkWidget *window2; GtkBuilder *builder; GtkAction *action; GtkActionGroup *actions; - if (argc > 1 && strcmp (argv[1], "--launch-yourself") == 0) + if (argc > 1 && g_strcmp0 (argv[1], "--launch-yourself") == 0) { launch_myself (); exit (0); @@ -96,8 +99,8 @@ main (int argc, char **argv) window2 = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add (GTK_CONTAINER (window2), gtk_label_new ("Hello again")); - gtk_widget_show_all (GTK_WIDGET (window2)); - gtk_application_add_window (app, window2); + gtk_widget_show_all (window2); + gtk_application_add_window (app, GTK_WINDOW (window2)); gtk_application_run (app);