diff options
author | Javier Jardón <jjardon@gnome.org> | 2012-01-10 16:23:53 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2012-01-10 16:23:53 +0000 |
commit | c1f44c0f835fe2a1c0387c9201df9dc8d2eac44d (patch) | |
tree | e89fd6f32864f20aa6a9ead459bd468629e320cf /docs | |
parent | 71f6b2d40a0d7defe1b0322cc04215c080f87331 (diff) | |
download | gtk+-c1f44c0f835fe2a1c0387c9201df9dc8d2eac44d.tar.gz |
migrating-unique-GtkApplication: Update to new GApplication api
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gtk/migrating-unique-GtkApplication.xml | 10 |
1 files 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 @@ <example><title>A unique application</title> <para>Here is a simple application using libunique: - <programlisting> + <informalexample><programlisting> int main (int argc, char *argv[]) { @@ -53,9 +53,9 @@ main (int argc, char *argv[]) return 0; } -</programlisting> +</programlisting></informalexample> The same application using GtkApplication: -<programlisting> +<informalexample><programlisting> 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; } -</programlisting> +</programlisting></informalexample> </para> </example> <section><title>Uniqueness</title> |