aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-18 03:49:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-18 03:49:49 +0800
commit4e19b2d0ec87c894dc518fda98d80854f1360779 (patch)
tree1bc2829a44d899151277c1ab428cb96d5e6be2b5 /widgets
parent35bc315e87dbc75965a43129615767085012a8bd (diff)
downloadgsoc2013-evolution-4e19b2d0ec87c894dc518fda98d80854f1360779.tar
gsoc2013-evolution-4e19b2d0ec87c894dc518fda98d80854f1360779.tar.gz
gsoc2013-evolution-4e19b2d0ec87c894dc518fda98d80854f1360779.tar.bz2
gsoc2013-evolution-4e19b2d0ec87c894dc518fda98d80854f1360779.tar.lz
gsoc2013-evolution-4e19b2d0ec87c894dc518fda98d80854f1360779.tar.xz
gsoc2013-evolution-4e19b2d0ec87c894dc518fda98d80854f1360779.tar.zst
gsoc2013-evolution-4e19b2d0ec87c894dc518fda98d80854f1360779.zip
Prefer EWebView calls over direct GtkHTML calls.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-web-view.c24
-rw-r--r--widgets/misc/e-web-view.h3
2 files changed, 27 insertions, 0 deletions
diff --git a/widgets/misc/e-web-view.c b/widgets/misc/e-web-view.c
index a71bf8299a..f52d7399eb 100644
--- a/widgets/misc/e-web-view.c
+++ b/widgets/misc/e-web-view.c
@@ -1458,6 +1458,30 @@ e_web_view_unselect_all (EWebView *web_view)
gtk_html_command (GTK_HTML (web_view), "unselect-all");
}
+void
+e_web_view_zoom_100 (EWebView *web_view)
+{
+ g_return_if_fail (E_IS_WEB_VIEW (web_view));
+
+ gtk_html_command (GTK_HTML (web_view), "zoom-reset");
+}
+
+void
+e_web_view_zoom_in (EWebView *web_view)
+{
+ g_return_if_fail (E_IS_WEB_VIEW (web_view));
+
+ gtk_html_command (GTK_HTML (web_view), "zoom-in");
+}
+
+void
+e_web_view_zoom_out (EWebView *web_view)
+{
+ g_return_if_fail (E_IS_WEB_VIEW (web_view));
+
+ gtk_html_command (GTK_HTML (web_view), "zoom-out");
+}
+
GtkUIManager *
e_web_view_get_ui_manager (EWebView *web_view)
{
diff --git a/widgets/misc/e-web-view.h b/widgets/misc/e-web-view.h
index 37c289a877..4a30b4bd80 100644
--- a/widgets/misc/e-web-view.h
+++ b/widgets/misc/e-web-view.h
@@ -124,6 +124,9 @@ gboolean e_web_view_scroll_forward (EWebView *web_view);
gboolean e_web_view_scroll_backward (EWebView *web_view);
void e_web_view_select_all (EWebView *web_view);
void e_web_view_unselect_all (EWebView *web_view);
+void e_web_view_zoom_100 (EWebView *web_view);
+void e_web_view_zoom_in (EWebView *web_view);
+void e_web_view_zoom_out (EWebView *web_view);
GtkUIManager * e_web_view_get_ui_manager (EWebView *web_view);
GtkWidget * e_web_view_get_popup_menu (EWebView *web_view);
void e_web_view_show_popup_menu (EWebView *web_view,