[evolution/wip/webkit-composer: 312/372] Make create_and_add_style_sheet method public
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 312/372] Make create_and_add_style_sheet method public
- Date: Thu, 6 Feb 2014 11:49:44 +0000 (UTC)
commit 072cf958ab4a33b74257398869c9ff11145d0d76
Author: Tomas Popela <tpopela redhat com>
Date: Fri Oct 11 13:16:05 2013 +0200
Make create_and_add_style_sheet method public
e-util/e-web-view.c | 8 ++++----
e-util/e-web-view.h | 3 +++
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index eaea502..55c1ebe 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -3272,9 +3272,9 @@ e_web_view_install_request_handler (EWebView *web_view,
soup_session_add_feature_by_type (session, handler_type);
}
-static void
-create_and_add_css_style_sheet (WebKitDOMDocument *document,
- const gchar *style_sheet_id)
+void
+e_web_view_create_and_add_css_style_sheet (WebKitDOMDocument *document,
+ const gchar *style_sheet_id)
{
WebKitDOMElement *style_element;
@@ -3322,7 +3322,7 @@ add_css_rule_into_style_sheet (WebKitDOMDocument *document,
style_element = webkit_dom_document_get_element_by_id (document, style_sheet_id);
if (!style_element) {
- create_and_add_css_style_sheet (document, style_sheet_id);
+ e_web_view_create_and_add_css_style_sheet (document, style_sheet_id);
style_element = webkit_dom_document_get_element_by_id (document, style_sheet_id);
}
diff --git a/e-util/e-web-view.h b/e-util/e-web-view.h
index 8df162d..cbfd2ce 100644
--- a/e-util/e-web-view.h
+++ b/e-util/e-web-view.h
@@ -197,6 +197,9 @@ GInputStream * e_web_view_request_finish (EWebView *web_view,
void e_web_view_install_request_handler
(EWebView *web_view,
GType handler_type);
+void e_web_view_create_and_add_css_style_sheet
+ (WebKitDOMDocument* document,
+ const gchar *style_sheet_id);
void e_web_view_add_css_rule_into_style_sheet
(EWebView *web_view,
const gchar *style_sheet_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]