[gtk+] Document that GtkApplication loads gtk/menus-common.ui



commit 934b3f686529f9742495362cca9df57a70e88092
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Wed Feb 17 10:10:25 2016 +0000

    Document that GtkApplication loads gtk/menus-common.ui
    
    Add a comment about the resource gtk/menus-common.ui to the
    documentation of the other resources loaded by GtkApplication.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761432

 gtk/gtkapplication.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index ce023a2..9ecd969 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -84,8 +84,11 @@
  * dynamic population of a part of the menu structure.
  *
  * If the resources "gtk/menus-appmenu.ui" or "gtk/menus-traditional.ui" are
- * present then these files will be used in preference, depending on the
- * value of gtk_application_prefers_app_menu().
+ * present then these files will be used in preference, depending on the value
+ * of gtk_application_prefers_app_menu(). If the resource "gtk/menus-common.ui"
+ * is present it will be loaded as well. This is useful for storing items that
+ * are referenced from both "gtk/menus-appmenu.ui" and
+ * "gtk/menus-traditional.ui".
  *
  * It is also possible to provide the menus manually using
  * gtk_application_set_app_menu() and gtk_application_set_menubar().


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