diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-28 01:28:14 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-28 03:27:13 +0800 |
commit | c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20 (patch) | |
tree | c29391b134f2e5664a9bddc479a2aa5f82392098 /e-util/e-web-view.h | |
parent | 26e659aa334cfd17d30697af9efe7656ea5d4ba8 (diff) | |
download | gsoc2013-evolution-c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20.tar gsoc2013-evolution-c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20.tar.gz gsoc2013-evolution-c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20.tar.bz2 gsoc2013-evolution-c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20.tar.lz gsoc2013-evolution-c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20.tar.xz gsoc2013-evolution-c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20.tar.zst gsoc2013-evolution-c71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20.zip |
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.
Diffstat (limited to 'e-util/e-web-view.h')
-rw-r--r-- | e-util/e-web-view.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <webkit/webkit.h> +#include <e-util/e-activity.h> /* 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); |