made Forward button work.

2002-05-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/helpbrowser.c: made Forward button work.
This commit is contained in:
Sven Neumann 2002-05-26 18:31:57 +00:00 committed by Sven Neumann
parent f3adf378ab
commit 3db799df2f
2 changed files with 18 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2002-05-26 Sven Neumann <sven@gimp.org>
* plug-ins/helpbrowser/helpbrowser.c: made Forward button work.
2002-05-25 Maurits Rijk <lpeek.mrijk@consunet.nl>
* plug-ins/common/scatter_hsv.c (scatter_hsv_dialog)
@ -10,7 +14,7 @@
* plug-ins/common/max_rgb.c (dialog): enable mnemonics.
* libgimpwidgets/gimpsizeentry.c (gimp_size_entry_attach_label): allow
underscore to be embedded in text paramter so labels can have
underscore to be embedded in text parameter so labels can have
mnemonics. More work to do here.
2002-05-25 Maurits Rijk <lpeek.mrijk@consunet.nl>

View File

@ -129,6 +129,7 @@ static GtkTargetEntry help_dnd_target_table[] =
{ "_NETSCAPE_URL", 0, 0 },
};
/* GIMP plugin stuff */
static void query (void);
@ -195,10 +196,10 @@ button_callback (GtkWidget *widget,
break;
case BUTTON_FORWARD:
if (!(ref = queue_prev (queue)))
if (!(ref = queue_next (queue)))
return;
load_page (ref, FALSE);
queue_move_prev (queue);
queue_move_next (queue);
break;
default:
@ -225,10 +226,14 @@ entry_changed_callback (GtkWidget *widget,
item = (HistoryItem *) list->data;
if (item->count)
{
compare_text = g_strdup_printf ("%s <%i>",
item->title, item->count + 1);
}
else
{
compare_text = (gchar *) item->title;
}
if (strcmp (compare_text, entry_text) == 0)
{
@ -237,9 +242,11 @@ entry_changed_callback (GtkWidget *widget,
}
if (item->count)
{
g_free (compare_text);
}
}
}
static void
history_add (const gchar *ref,