Commit a58008e0 authored by Rodrigo Moya's avatar Rodrigo Moya Committed by Rodrigo Moya

don't show the 'Help unavailable' item when there is no documentation.

2007-02-01  Rodrigo Moya <rodrigo@gnome-db.org>

	* application-tile.c (application_tile_setup): don't show the 'Help
	unavailable' item when there is no documentation.

svn path=/trunk/; revision=158
parent 16bc95ab
2007-02-01 Rodrigo Moya <rodrigo@gnome-db.org>
* application-tile.c (application_tile_setup): don't show the 'Help
unavailable' item when there is no documentation.
...@@ -336,8 +336,6 @@ application_tile_setup (ApplicationTile *this) ...@@ -336,8 +336,6 @@ application_tile_setup (ApplicationTile *this)
} }
else { else {
action = NULL; 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; actions [APPLICATION_TILE_ACTION_HELP] = action;
...@@ -346,7 +344,8 @@ application_tile_setup (ApplicationTile *this) ...@@ -346,7 +344,8 @@ application_tile_setup (ApplicationTile *this)
/* insert separator */ /* 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 */ /* make "add/remove to favorites" action */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment