select the current URI in the index. Pointed out by Roman Joost.

2008-07-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/help-browser/dialog.c (load_finished): select the
	current URI in the index. Pointed out by Roman Joost.

svn path=/trunk/; revision=26086
This commit is contained in:
Sven Neumann
2008-07-08 08:17:59 +00:00
committed by Sven Neumann
parent 11a5d20892
commit a528f82405
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-07-08 Sven Neumann <sven@gimp.org>
* plug-ins/help-browser/dialog.c (load_finished): select the
current URI in the index. Pointed out by Roman Joost.
2008-07-07 Sven Neumann <sven@gimp.org>
* app/widgets/gimphelp.c (gimp_help_query_user_manual_online):

View File

@ -500,11 +500,12 @@ static void
select_index (const gchar *uri)
{
GtkTreeSelection *selection;
GtkTreeIter *iter;
GtkTreeIter *iter = NULL;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view));
iter = g_hash_table_lookup (uri_hash_table, uri);
if (uri)
iter = g_hash_table_lookup (uri_hash_table, uri);
if (iter)
{
@ -1041,4 +1042,6 @@ load_finished (GtkWidget *view,
gtk_action_set_sensitive (action, FALSE);
update_actions ();
select_index (webkit_web_frame_get_uri (frame));
}