diff options
Diffstat (limited to 'openembedded/packages/gtkhtml2/files/css-stylesheet-user.patch')
-rw-r--r-- | openembedded/packages/gtkhtml2/files/css-stylesheet-user.patch | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/openembedded/packages/gtkhtml2/files/css-stylesheet-user.patch b/openembedded/packages/gtkhtml2/files/css-stylesheet-user.patch deleted file mode 100644 index 4fe7e9045b..0000000000 --- a/openembedded/packages/gtkhtml2/files/css-stylesheet-user.patch +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | Index: libgtkhtml/document/htmldocument.c | ||
2 | =================================================================== | ||
3 | --- libgtkhtml/document/htmldocument.c.orig 2006-02-11 05:06:30.000000000 +0000 | ||
4 | +++ libgtkhtml/document/htmldocument.c 2006-02-11 05:21:18.000000000 +0000 | ||
5 | @@ -1122,3 +1122,40 @@ html_document_find_anchor (HtmlDocument | ||
6 | else | ||
7 | return NULL; | ||
8 | } | ||
9 | + | ||
10 | +void | ||
11 | +html_document_add_stylesheet (HtmlDocument *document, CssStylesheet *sheet) | ||
12 | +{ | ||
13 | + HtmlStyleChange style_change; | ||
14 | + | ||
15 | + g_return_if_fail (HTML_IS_DOCUMENT (document)); | ||
16 | + | ||
17 | + /* Note: @import not supported for user stylesheets, due to | ||
18 | + * complications it would cause with removal. | ||
19 | + */ | ||
20 | + | ||
21 | + document->stylesheets = g_slist_append (document->stylesheets, sheet); | ||
22 | + | ||
23 | + if (document->dom_document) { | ||
24 | + style_change = html_document_restyle_node (document, DOM_NODE (dom_Document__get_documentElement (document->dom_document)), NULL, TRUE); | ||
25 | + g_signal_emit (G_OBJECT (document), document_signals [STYLE_UPDATED], 0, DOM_NODE (dom_Document__get_documentElement (document->dom_document)), style_change); | ||
26 | + } | ||
27 | +} | ||
28 | + | ||
29 | +void | ||
30 | +html_document_remove_stylesheet (HtmlDocument *document, CssStylesheet *stylesheet) | ||
31 | +{ | ||
32 | + HtmlStyleChange style_change; | ||
33 | + | ||
34 | + g_return_if_fail (stylesheet && HTML_IS_DOCUMENT (document)); | ||
35 | + | ||
36 | + document->stylesheets = g_slist_remove (document->stylesheets, stylesheet); | ||
37 | + | ||
38 | + if (document->dom_document) { | ||
39 | + style_change = html_document_restyle_node (document, DOM_NODE (dom_Document__get_documentElement (document->dom_document)), NULL, TRUE); | ||
40 | + g_signal_emit (G_OBJECT (document), document_signals [STYLE_UPDATED], 0, DOM_NODE (dom_Document__get_documentElement (document->dom_document)), style_change); | ||
41 | + } | ||
42 | + | ||
43 | + return TRUE; | ||
44 | +} | ||
45 | + | ||
46 | Index: libgtkhtml/document/htmldocument.h | ||
47 | =================================================================== | ||
48 | --- libgtkhtml/document/htmldocument.h.orig 2006-02-11 05:06:30.000000000 +0000 | ||
49 | +++ libgtkhtml/document/htmldocument.h 2006-02-11 05:20:51.000000000 +0000 | ||
50 | @@ -113,6 +113,9 @@ void html_document_update_active_nod | ||
51 | void html_document_update_focus_element (HtmlDocument *document, DomElement *element); | ||
52 | DomNode *html_document_find_anchor (HtmlDocument *doc, const gchar *anchor); | ||
53 | |||
54 | +void html_document_add_stylesheet (HtmlDocument *document, CssStylesheet *stylesheet); | ||
55 | +void html_document_remove_stylesheet (HtmlDocument *document, CssStylesheet *stylesheet); | ||
56 | + | ||
57 | G_END_DECLS | ||
58 | |||
59 | #endif /* __HTMLDOCUMENT_H__ */ | ||