diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-12-15 00:26:02 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2011-12-19 12:51:12 -0500 |
commit | 080007d7cbdfe75b52420658c287e665ea6f2366 (patch) | |
tree | 2f2734b4f8816bd86c09c68827a65d35d3299de8 /gtk/gtkapplication.c | |
parent | 06a75b7e1ff11a3bde914b1f1a1376f3c86a1098 (diff) | |
download | gtk+-080007d7cbdfe75b52420658c287e665ea6f2366.tar.gz |
Show off some menus
Diffstat (limited to 'gtk/gtkapplication.c')
-rw-r--r-- | gtk/gtkapplication.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c index 7ff1ed0a4a..7663dd8448 100644 --- a/gtk/gtkapplication.c +++ b/gtk/gtkapplication.c @@ -61,11 +61,21 @@ * While GtkApplication works fine with plain #GtkWindows, it is recommended * to use it together with #GtkApplicationWindow. * - * To set an app menu on a GtkApplication, use g_application_set_app_menu(). - * The #GMenuModel that this function expects is usually constructed using - * #GtkBuilder, as seen in the following example. To set a menubar that will - * be automatically picked up by #GApplicationWindows, use - * g_application_set_menubar(). + * To set an application menu on a GtkApplication, use + * g_application_set_app_menu(). The #GMenuModel that this function + * expects is usually constructed using #GtkBuilder, as seen in the + * following example. To set a menubar that will be automatically picked + * up by #GApplicationWindows, use g_application_set_menubar(). GTK+ + * makes these menus appear as expected, depending on the platform + * the application is running on. + * + * <figure label="Menu integration in OS X"> + * <graphic fileref="bloatpad-osx.png" format="PNG"/> + * </figure> + * + * <figure label="Menu integration in GNOME"> + * <graphic fileref="bloatpad-gnome.png" format="PNG"/> + * </figure> * * <example id="gtkapplication"><title>A simple application</title> * <programlisting> |