[evolution/webkit-composer] Make create_and_add_style_sheet method public
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit-composer] Make create_and_add_style_sheet method public
- Date: Fri, 11 Oct 2013 12:54:59 +0000 (UTC)
commit 584ec9a6a0549acf394932a1bf87c4ecf6efbf68
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 b171314..5a61d89 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -3294,9 +3294,9 @@ e_web_view_install_request_handler (EWebView *web_view,
g_object_unref (feature);
}
-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;
@@ -3338,7 +3338,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 8803efd..a95ec4d 100644
--- a/e-util/e-web-view.h
+++ b/e-util/e-web-view.h
@@ -198,6 +198,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 *view,
const gchar *style_sheet_id,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]