Kaydet (Commit) 618d474f authored tarafından Julien Nabet's avatar Julien Nabet

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: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst a7756236
......@@ -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));
......
......@@ -327,8 +327,14 @@ g_lo_action_group_class_init (GLOActionGroupClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = g_lo_action_group_finalize;
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
g_type_class_add_private (klass, sizeof (GLOActionGroupPrivate));
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment