diff options
author | Brent Smith <bmsmith@src.gnome.org> | 2006-04-05 04:10:13 +0000 |
---|---|---|
committer | Brent Smith <bmsmith@src.gnome.org> | 2006-04-05 04:10:13 +0000 |
commit | 840e5bf3b23bfc156f49d4557b30822be8fe33a1 (patch) | |
tree | 601f516925ecad95cb67e81170e38c89e04dc57d | |
parent | 90fc66d73285a3ac86097abc2e2ede0c9342b89b (diff) | |
download | yelp-840e5bf3b23bfc156f49d4557b30822be8fe33a1.tar.gz |
Make the "About this Document" menu entry available after loading a
* src/yelp-window.c: (window_do_load):
Make the "About this Document" menu entry available after loading a
DocBook XML file, since that is the only time it is relevant.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/yelp-window.c | 16 |
2 files changed, 15 insertions, 9 deletions
@@ -1,6 +1,12 @@ +2006-04-04 Brent Smith <gnome@nextreality.net> + + * src/yelp-window.c: (window_do_load): + Make the "About this Document" menu entry available after loading a + DocBook XML file, since that is the only time it is relevant. + 2006-04-04 Gora Mohanty <gmohanty@cvs.gnome.org> - * configure.in: Added 'or' (Oriya) to ALL_LINGUAS. + * configure.in: Added 'or' (Oriya) to ALL_LINGUAS. 2006-04-04 Don Scorgie <dscorgie@cvs.gnome.org> diff --git a/src/yelp-window.c b/src/yelp-window.c index 547e4db8..ef1aa704 100644 --- a/src/yelp-window.c +++ b/src/yelp-window.c @@ -841,6 +841,7 @@ window_do_load (YelpWindow *window, gchar *frag_id) { GtkAction *action; + GtkAction *about; GError *error = NULL; gchar *uri; @@ -851,10 +852,11 @@ window_do_load (YelpWindow *window, action = gtk_action_group_get_action (window->priv->action_group, "PrintDocument"); - g_object_set (G_OBJECT (action), - "sensitive", - FALSE, - NULL); + g_object_set (G_OBJECT (action), "sensitive", FALSE, NULL); + + about = gtk_action_group_get_action (window->priv->action_group, + "AboutDocument"); + g_object_set (G_OBJECT (about), "sensitive", FALSE, NULL); switch (yelp_doc_info_get_type (doc_info)) { case YELP_DOC_TYPE_MAN: @@ -878,10 +880,8 @@ window_do_load (YelpWindow *window, #endif case YELP_DOC_TYPE_DOCBOOK_XML: - g_object_set (G_OBJECT (action), - "sensitive", - TRUE, - NULL); + g_object_set (G_OBJECT (action), "sensitive", TRUE, NULL); + g_object_set (G_OBJECT (about), "sensitive", TRUE, NULL); case YELP_DOC_TYPE_TOC: window_do_load_pager (window, doc_info, frag_id); break; |