From c1f44c0f835fe2a1c0387c9201df9dc8d2eac44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Tue, 10 Jan 2012 16:23:53 +0000 Subject: [PATCH] migrating-unique-GtkApplication: Update to new GApplication api --- docs/reference/gtk/migrating-unique-GtkApplication.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/reference/gtk/migrating-unique-GtkApplication.xml b/docs/reference/gtk/migrating-unique-GtkApplication.xml index aaa6645fbc..24bf5bf7a1 100644 --- a/docs/reference/gtk/migrating-unique-GtkApplication.xml +++ b/docs/reference/gtk/migrating-unique-GtkApplication.xml @@ -20,7 +20,7 @@ A unique application Here is a simple application using libunique: - + int main (int argc, char *argv[]) { @@ -53,9 +53,9 @@ main (int argc, char *argv[]) return 0; } - + The same application using GtkApplication: - + static void activate (GtkApplication *app) { @@ -85,13 +85,13 @@ main (int argc, char *argv[]) app = gtk_application_new ("org.gtk.TestApplication", 0); g_signal_connect (app, "activate", G_CALLBACK (activate), NULL); - status = g_application_run (app); + status = g_application_run (G_APPLICATION (app), argc, argv); g_object_unref (app); return status; } - +
Uniqueness