]> Pileus Git - ~andy/gtk/commitdiff
Bloatpad: Set the application name
authorMatthias Clasen <mclasen@redhat.com>
Sat, 21 Jan 2012 01:05:43 +0000 (20:05 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 21 Jan 2012 01:05:43 +0000 (20:05 -0500)
This will be picked up for the app menu label in fallback mode
in the near future.

examples/bloatpad.c

index 67c4efdeaa4a29e6cf4e086c272faac65628c7e7..8ac2d02a16c3c2ceef9642541f724130d966ef8e 100644 (file)
@@ -337,6 +337,8 @@ bloat_pad_new (void)
 
   g_type_init ();
 
+  g_set_application_name ("Bloatpad");
+
   bloat_pad = g_object_new (bloat_pad_get_type (),
                             "application-id", "org.gtk.Test.bloatpad",
                             "flags", G_APPLICATION_HANDLES_OPEN,
@@ -356,9 +358,12 @@ main (int argc, char **argv)
   int status;
 
   bloat_pad = bloat_pad_new ();
+
   gtk_application_add_accelerator (GTK_APPLICATION (bloat_pad),
                                    "F11", "win.fullscreen", NULL);
+
   status = g_application_run (G_APPLICATION (bloat_pad), argc, argv);
+
   g_object_unref (bloat_pad);
 
   return status;