diff options
author | Shaun McCance <shaunm@gnome.org> | 2014-02-23 18:00:54 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2014-02-23 18:00:54 -0500 |
commit | d1cf5410e0edaee67910b2408c1ff1b07edd9f2e (patch) | |
tree | fa4580a1a3b2b3ab08970d66fcb5be1be5a87766 /src/yelp-window.c | |
parent | 1927dbb6663fd43b03efd64171b41563cc361886 (diff) | |
download | yelp-d1cf5410e0edaee67910b2408c1ff1b07edd9f2e.tar.gz |
Added actions for larger and smaller text
Diffstat (limited to 'src/yelp-window.c')
-rw-r--r-- | src/yelp-window.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/yelp-window.c b/src/yelp-window.c index 09274836..7af8ac05 100644 --- a/src/yelp-window.c +++ b/src/yelp-window.c @@ -412,18 +412,24 @@ window_construct (YelpWindow *window) section = g_menu_new (); g_menu_append (section, _("Find..."), "win.yelp-window-find"); g_menu_append (section, _("Print..."), "win.yelp-view-print"); - g_menu_append_section (menu, NULL, section); + g_menu_append_section (menu, NULL, G_MENU_MODEL (section)); g_object_unref (section); section = g_menu_new (); g_menu_append (section, _("New Window"), "win.yelp-window-new"); - g_menu_append_section (menu, NULL, section); + g_menu_append_section (menu, NULL, G_MENU_MODEL (section)); + g_object_unref (section); + + section = g_menu_new (); + g_menu_append (section, _("Larger Text"), "app.yelp-application-larger-text"); + g_menu_append (section, _("Smaller Text"), "app.yelp-application-smaller-text"); + g_menu_append_section (menu, NULL, G_MENU_MODEL (section)); g_object_unref (section); section = g_menu_new (); g_menu_append (section, _("Previous Page"), "win.yelp-view-go-previous"); g_menu_append (section, _("Next Page"), "win.yelp-view-go-next"); - g_menu_append_section (menu, NULL, section); + g_menu_append_section (menu, NULL, G_MENU_MODEL (section)); g_object_unref (section); /* all documents */ /* larger/smaller text */ |