diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-09 12:40:23 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-16 09:38:00 +0100 |
commit | e6264466cb7ba2eca6887859dbe059ced0575dd6 (patch) | |
tree | 4dda4e9ff0d41947812a38ba65abaec7d47dbf5e | |
parent | c25062f4b541eaa384c8a33f9cd0c848da8f6b13 (diff) |
lokdocview: handle LOK_CALLBACK_HYPERLINK_CLICKED
Change-Id: Ic9804857df2237507f412bc6e248e5a7e83f8803
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c index cbffc2474a59..08c383134d70 100644 --- a/libreofficekit/source/gtk/lokdocview.c +++ b/libreofficekit/source/gtk/lokdocview.c @@ -679,6 +679,8 @@ static const gchar* lcl_LibreOfficeKitCallbackTypeToString(int nType) return "LOK_CALLBACK_CURSOR_VISIBLE"; case LOK_CALLBACK_GRAPHIC_SELECTION: return "LOK_CALLBACK_GRAPHIC_SELECTION"; + case LOK_CALLBACK_HYPERLINK_CLICKED: + return "LOK_CALLBACK_HYPERLINK_CLICKED"; } return 0; } @@ -754,7 +756,14 @@ static gboolean lok_docview_callback(gpointer pData) gtk_widget_queue_draw(GTK_WIDGET(pCallback->m_pDocView->pEventBox)); } break; + case LOK_CALLBACK_HYPERLINK_CLICKED: + { + GError* pError = NULL; + gtk_show_uri(NULL, pCallback->m_pPayload, GDK_CURRENT_TIME, &pError); + } + break; default: + g_assert(0); break; } |