gnome-help-browser with gtkhtml patch
- From: Young-Ho Cha <ganadist dacome co kr>
- To: gnome-devel-list gnome org
- Subject: gnome-help-browser with gtkhtml patch
- Date: Thu, 15 Jun 2000 02:12:44 +0900
First, sorry for my poor English :)
This is patch for gnome-help-browser with gtkhtml (above 0.4)
I just had migrated(?) for gtkhtml 0.4
but this has bug.
if user types url with keyboard, it crash.
but it is safe when click url link.
Would you fix this?
diff -uNr gnome-core.org/help-browser/gnome-helpwin.c gnome-core-1.2.1/help-browser/gnome-helpwin.c
--- gnome-core.org/help-browser/gnome-helpwin.c Thu May 4 20:54:32 2000
+++ gnome-core-1.2.1/help-browser/gnome-helpwin.c Mon Jun 5 08:22:48 2000
@@ -187,7 +187,7 @@
void
gtk_html_source (GtkHTML *html, char *url, char *source)
{
- GtkHTMLStreamHandle handle;
+ GtkHTMLStream *handle;
/* we need to set writing to TRUE so that the url_requested
* callback won't try to load it, since we already have the
@@ -195,7 +195,7 @@
* handle ghelp: or toc: or the other funky "protocols".
*/
GNOME_HELPWIN (html)->writing = TRUE;
- handle = gtk_html_begin (html, url);
+ handle = gtk_html_begin (html);
gtk_html_write (html, handle, source, strlen (source));
GNOME_HELPWIN (html)->writing = FALSE;
diff -uNr gnome-core.org/help-browser/window.c gnome-core-1.2.1/help-browser/window.c
--- gnome-core.org/help-browser/window.c Sun May 7 11:43:11 2000
+++ gnome-core-1.2.1/help-browser/window.c Mon Jun 5 08:28:12 2000
@@ -133,7 +133,7 @@
static void update_toolbar(HelpWindow w);
#ifdef HELP_USE_GTKHTML
-static void url_requested (GtkHTML *html, const char *url, GtkHTMLStreamHandle handle, HelpWindow win);
+static void url_requested (GtkHTML *html, const char *url, GtkHTMLStream *handle, HelpWindow win);
#else
XmImageInfo *load_image(GtkWidget *html_widget, gchar *ref);
#endif
@@ -1194,7 +1194,7 @@
}
static void
-url_requested (GtkHTML *html, const char *url, GtkHTMLStreamHandle handle, HelpWindow win)
+url_requested (GtkHTML *html, const char *url, GtkHTMLStream *handle, HelpWindow win)
{
char *full_url = url;
GtkHTMLStreamStatus status;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]