Skip to content

Commit

Permalink
migrating-unique-GtkApplication: Update to new GApplication api
Browse files Browse the repository at this point in the history
  • Loading branch information
jjardon committed Jan 10, 2012
1 parent 71f6b2d commit c1f44c0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/reference/gtk/migrating-unique-GtkApplication.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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[])
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit c1f44c0

Please sign in to comment.