summaryrefslogtreecommitdiff
path: root/libreofficekit/qa
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-09-29 13:18:49 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-09-29 20:27:49 +0200
commit618d474f059a75c2ac04df16c830d71a88690118 (patch)
tree5f70a3dfc0a7af9f5e01ab52f17c57e4f5da8d0c /libreofficekit/qa
parenta7756236858788b11816cbaba433768ba4ccc72a (diff)
band-aid: deprecated-declarations related to gtk
Don't hesitate to revert this one but only if there's a patch to fix it. Change-Id: Ib15352e1a94d0542120f6710acfe19887494ed51 Reviewed-on: https://gerrit.libreoffice.org/61142 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'libreofficekit/qa')
-rw-r--r--libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx b/libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx
index d9c709604a28..5d6ecb01728d 100644
--- a/libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx
+++ b/libreofficekit/qa/gtktiledviewer/gtv-application-window.cxx
@@ -135,9 +135,17 @@ static void initWindow(GtvApplicationWindow* window)
{
GtvApplicationWindowPrivate* priv = getPrivate(window);
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
GList *focusChain = nullptr;
focusChain = g_list_append( focusChain, window->lokdocview );
+
gtk_container_set_focus_chain ( GTK_CONTAINER (priv->container), focusChain );
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
// TODO: Implement progressbar in statusbar
LibreOfficeKitDocument* pDocument = lok_doc_view_get_document(LOK_DOC_VIEW(window->lokdocview));