diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-05-20 00:40:16 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-05-20 00:40:16 +0800 |
commit | dd738a36406c875b183b9a33466a9ea99744bd73 (patch) | |
tree | 23874f1a38dd1b14d7765a95ac1e9646e343f419 /www/gtkhtml38 | |
parent | 8000dd5e16c317dd057f80d026246ed508100974 (diff) | |
download | marcuscom-ports-dd738a36406c875b183b9a33466a9ea99744bd73.tar marcuscom-ports-dd738a36406c875b183b9a33466a9ea99744bd73.tar.gz marcuscom-ports-dd738a36406c875b183b9a33466a9ea99744bd73.tar.bz2 marcuscom-ports-dd738a36406c875b183b9a33466a9ea99744bd73.tar.lz marcuscom-ports-dd738a36406c875b183b9a33466a9ea99744bd73.tar.xz marcuscom-ports-dd738a36406c875b183b9a33466a9ea99744bd73.tar.zst marcuscom-ports-dd738a36406c875b183b9a33466a9ea99744bd73.zip |
Fix evolution by adding some functions that were added after rolling the
gtkhtml3 tarball that evolution uses.
Obtained from: gtkhtml3 cvs
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3994 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/gtkhtml38')
-rw-r--r-- | www/gtkhtml38/Makefile | 1 | ||||
-rw-r--r-- | www/gtkhtml38/files/patch-missing-functions | 75 |
2 files changed, 76 insertions, 0 deletions
diff --git a/www/gtkhtml38/Makefile b/www/gtkhtml38/Makefile index 66afa8eed..bb2a9c3a9 100644 --- a/www/gtkhtml38/Makefile +++ b/www/gtkhtml38/Makefile @@ -7,6 +7,7 @@ PORTNAME= gtkhtml3 PORTVERSION= 3.7.1 +PORTREVISION= 1 CATEGORIES= www gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/3$//}/3.7 diff --git a/www/gtkhtml38/files/patch-missing-functions b/www/gtkhtml38/files/patch-missing-functions new file mode 100644 index 000000000..ddad48050 --- /dev/null +++ b/www/gtkhtml38/files/patch-missing-functions @@ -0,0 +1,75 @@ +--- src/gtkhtml.c 2005/05/05 11:21:47 1.600 ++++ src/gtkhtml.c 2005/05/17 14:17:48 1.601 +@@ -5871,3 +5871,47 @@ + + return id; + } ++ ++char * ++gtk_html_get_url_at (GtkHTML *html, int x, int y) ++{ ++ HTMLObject *obj; ++ int offset; ++ ++ g_return_val_if_fail (GTK_IS_HTML (html), NULL); ++ ++ obj = html_engine_get_object_at (html->engine, x, y, &offset, FALSE); ++ ++ if (obj) ++ return gtk_html_get_url_object_relative (html, obj, html_object_get_url (obj, offset)); ++ ++ return NULL; ++} ++ ++char * ++gtk_html_get_cursor_url (GtkHTML *html) ++{ ++ HTMLObject *obj; ++ int offset; ++ ++ g_return_val_if_fail (GTK_IS_HTML (html), NULL); ++ ++ if (html->engine->caret_mode) { ++ obj = html->engine->cursor->object; ++ offset = html->engine->cursor->offset; ++ } else ++ obj = html_engine_get_focus_object (html->engine, &offset); ++ ++ if (obj) ++ return gtk_html_get_url_object_relative (html, obj, html_object_get_url (obj, offset)); ++ ++ return NULL; ++} ++ ++void ++gtk_html_set_tokenizer (GtkHTML *html, HTMLTokenizer *tokenizer) ++{ ++ g_return_if_fail (GTK_IS_HTML (html)); ++ ++ html_engine_set_tokenizer (html->engine, tokenizer); ++} + +--- src/gtkhtml.h 2005/05/05 11:21:47 1.156 ++++ src/gtkhtml.h 2005/05/17 14:17:48 1.157 +@@ -314,6 +314,12 @@ + gboolean block); + gboolean gtk_html_has_undo (GtkHTML *html); + void gtk_html_drop_undo (GtkHTML *html); ++char * gtk_html_get_url_at (GtkHTML *html, ++ int x, ++ int y); ++char * gtk_html_get_cursor_url (GtkHTML *html); ++void gtk_html_set_tokenizer (GtkHTML *html, ++ HTMLTokenizer *tokenizer); + + /* DEPRECATED */ + #if 1 +@@ -329,6 +335,7 @@ + GtkHTMLStream *gtk_html_begin_content (GtkHTML *html, + gchar *content_type); + void gtk_html_drag_dest_set (GtkHTML *html); ++ + #endif + + #endif /* _GTKHTML_H_ */ + |