From a58008e06898fd345d4f730e9a1e2f5abd993e6a Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 1 Feb 2007 18:13:13 +0000 Subject: [PATCH] don't show the 'Help unavailable' item when there is no documentation. 2007-02-01 Rodrigo Moya * application-tile.c (application_tile_setup): don't show the 'Help unavailable' item when there is no documentation. svn path=/trunk/; revision=158 --- libslab/ChangeLog | 4 ++++ libslab/application-tile.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 libslab/ChangeLog diff --git a/libslab/ChangeLog b/libslab/ChangeLog new file mode 100644 index 0000000..5bc3a55 --- /dev/null +++ b/libslab/ChangeLog @@ -0,0 +1,4 @@ +2007-02-01 Rodrigo Moya + + * application-tile.c (application_tile_setup): don't show the 'Help + unavailable' item when there is no documentation. diff --git a/libslab/application-tile.c b/libslab/application-tile.c index ec5ed93..ccdaf9b 100644 --- a/libslab/application-tile.c +++ b/libslab/application-tile.c @@ -336,8 +336,6 @@ application_tile_setup (ApplicationTile *this) } else { action = NULL; - menu_item = gtk_menu_item_new_with_label (_("Help Unavailable")); - gtk_widget_set_sensitive (menu_item, FALSE); } actions [APPLICATION_TILE_ACTION_HELP] = action; @@ -346,7 +344,8 @@ application_tile_setup (ApplicationTile *this) /* insert separator */ - gtk_container_add (menu_ctnr, gtk_separator_menu_item_new ()); + if (action != NULL) + gtk_container_add (menu_ctnr, gtk_separator_menu_item_new ()); /* make "add/remove to favorites" action */ -- 2.22.2