[gtk+] Bloatpad: Set the application name



commit c06887c9f0dce4e6324b4ce2d7ff004f8f8f649f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jan 20 20:05:43 2012 -0500

    Bloatpad: Set the application name
    
    This will be picked up for the app menu label in fallback mode
    in the near future.

 examples/bloatpad.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/examples/bloatpad.c b/examples/bloatpad.c
index 67c4efd..8ac2d02 100644
--- a/examples/bloatpad.c
+++ b/examples/bloatpad.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]