map the Home button to "index.html" and removed the Index button for now.

2004-01-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: map the Home button to
	"index.html" and removed the Index button for now.
This commit is contained in:
Sven Neumann 2004-01-30 14:24:21 +00:00 committed by Sven Neumann
parent a6a21841a1
commit 6293dee279
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-01-30 Sven Neumann <sven@gimp.org>
* plug-ins/helpbrowser/dialog.c: map the Home button to
"index.html" and removed the Index button for now.
2004-01-30 Michael Natterer <mitch@gimp.org> 2004-01-30 Michael Natterer <mitch@gimp.org>
* plug-ins/rcm/rcm_dialog.c (rcm_dialog): fixed help ID. * plug-ins/rcm/rcm_dialog.c (rcm_dialog): fixed help ID.

View File

@ -174,6 +174,7 @@ browser_dialog_open (void)
G_CALLBACK (button_callback), G_CALLBACK (button_callback),
GINT_TO_POINTER (BUTTON_HOME)); GINT_TO_POINTER (BUTTON_HOME));
#if 0
button = gtk_button_new_from_stock (GTK_STOCK_INDEX); button = gtk_button_new_from_stock (GTK_STOCK_INDEX);
gtk_container_add (GTK_CONTAINER (bbox), button); gtk_container_add (GTK_CONTAINER (bbox), button);
gtk_widget_show (button); gtk_widget_show (button);
@ -181,6 +182,7 @@ browser_dialog_open (void)
g_signal_connect (button, "clicked", g_signal_connect (button, "clicked",
G_CALLBACK (button_callback), G_CALLBACK (button_callback),
GINT_TO_POINTER (BUTTON_INDEX)); GINT_TO_POINTER (BUTTON_INDEX));
#endif
back_button = button = gtk_button_new_from_stock (GTK_STOCK_GO_BACK); back_button = button = gtk_button_new_from_stock (GTK_STOCK_GO_BACK);
gtk_container_add (GTK_CONTAINER (bbox), button); gtk_container_add (GTK_CONTAINER (bbox), button);
@ -350,7 +352,7 @@ button_callback (GtkWidget *widget,
switch (GPOINTER_TO_INT (data)) switch (GPOINTER_TO_INT (data))
{ {
case BUTTON_HOME: case BUTTON_HOME:
browser_dialog_load ("contents.html", TRUE); browser_dialog_load ("index.html", TRUE);
break; break;
case BUTTON_INDEX: case BUTTON_INDEX: