[gtk+] Documentation additions
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Documentation additions
- Date: Mon, 19 Dec 2011 18:02:47 +0000 (UTC)
commit f485dd3f088890b4f3cd69ee0aabced1a4fceda9
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 7 23:55:33 2011 -0500
Documentation additions
gtk/gtkapplication.c | 5 +++++
gtk/gtkapplicationwindow.c | 20 ++++++++++++++------
2 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 6dd2818..097009a 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -608,6 +608,11 @@ gtk_application_get_windows (GtkApplication *application)
* are referred to with an "app." prefix, and window-specific actions
* with a "win." prefix.
*
+ * GtkApplication also extracts accelerators out of 'accel' attributes
+ * in the #GMenuModels passed to g_application_set_app_menu() and
+ * g_application_set_menubar(), which is usually more convenient
+ * than calling this function for each accelerator.
+ *
* Since: 3.4
*/
void
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index ce7d027..3660b2c 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -37,7 +37,7 @@
* GtkApplicationWindow is a #GtkWindow subclass that offers some
* extra functionality for better integration with #GtkApplication
* features. Notably, it can handle both the application menu as well
- * as the menubar. See g_application_set_app_menu() and
+ * as the menubar. See g_application_set_app_menu() and
* g_application_set_menubar().
*
* This class implements the #GActionGroup and #GActionMap interfaces,
@@ -48,11 +48,19 @@
* prefix. Actions must be addressed with the prefixed name when
* referring to them from a #GMenuModel.
*
- * If the desktop environment does not display the application menu
- * as part of the desktop shell, then #GApplicationWindow will
- * automatically show the menu as part of a menubar. This behaviour
- * can be overridden with the #GtkApplicationWindow:show-menubar
- * property.
+ * The settings #GtkSettings:gtk-shell-shows-app-menu and
+ * #GtkSettings:gtk-shell-shows-menubar tell GTK+ whether the
+ * desktop environment is showing the application menu and menubar
+ * models outside the application as part of the desktop shell.
+ * For instance, on OS X, both menus will be displayed remotely;
+ * on Windows neither will be. gnome-shell (starting with version 3.4)
+ * will display the application menu, but not the menubar.
+ *
+ * If the desktop environment does not display the menubar, then
+ * #GApplicationWindow will automatically show a #GtkMenubar for it.
+ * This behaviour can be overridden with the #GtkApplicationWindow:show-menubar
+ * property. If the desktop environment does not display the application
+ * menu, then it will automatilly be included in the menubar.
*
* <example><title>A GtkApplicationWindow with a menubar</title>
* <programlisting><![CDATA[
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]