From c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 27 Jul 2013 13:28:14 -0400 Subject: Add e_web_view_new_activity(). Returns a new EActivity for an EWebView-related asynchronous operation, and emits a "new-activity" signal. By default the EActivity comes loaded with a GCancellable and sets the EWebView itself as the alert sink (which means alerts are displayed directly in the content area). The signal emission allows the EActivity to be further customized and/or tracked by the application. --- e-util/e-web-view.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'e-util/e-web-view.h') diff --git a/e-util/e-web-view.h b/e-util/e-web-view.h index 5071e3681d..7897257e87 100644 --- a/e-util/e-web-view.h +++ b/e-util/e-web-view.h @@ -32,6 +32,7 @@ #define E_WEB_VIEW_H #include +#include /* Standard GObject macros */ #define E_TYPE_WEB_VIEW \ @@ -89,6 +90,8 @@ struct _EWebViewClass { PangoFontDescription **variable_width); /* Signals */ + void (*new_activity) (EWebView *web_view, + EActivity *activity); gboolean (*popup_event) (EWebView *web_view, const gchar *uri); void (*status_message) (EWebView *web_view, @@ -179,6 +182,7 @@ 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); +EActivity * e_web_view_new_activity (EWebView *web_view); void e_web_view_status_message (EWebView *web_view, const gchar *status_message); void e_web_view_stop_loading (EWebView *web_view); -- cgit v1.2.3