summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.com>2016-02-14 20:44:00 +0530
committerPranav Kant <pranavk@collabora.com>2016-02-14 20:45:19 +0530
commit58ec66da422e5ac6aec5cbd28403039cded7c7ed (patch)
tree4563e652b5de8742b9394bca99c50a8c5bcb2c99 /libreofficekit
parentb7c807faeb18a87dc8ad5bc1ae68ca5cb3999a66 (diff)
lokdocview: Center the widget vertically inside the allocation
Change-Id: I891519d54212ecd99273a54aca2a44e2d54c1933
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 742946de8122..baa4f6e94327 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2574,6 +2574,7 @@ lok_doc_view_new (const gchar* pPath, GCancellable *cancellable, GError **error)
return GTK_WIDGET (g_initable_new (LOK_TYPE_DOC_VIEW, cancellable, error,
"lopath", pPath == nullptr ? LOK_PATH : pPath,
"halign", GTK_ALIGN_CENTER,
+ "valign", GTK_ALIGN_CENTER,
nullptr));
}
@@ -2585,6 +2586,7 @@ SAL_DLLPUBLIC_EXPORT GtkWidget* lok_doc_view_new_from_widget(LOKDocView* pOldLOK
"lopointer", pOldPriv->m_pOffice,
"docpointer", pOldPriv->m_pDocument,
"halign", GTK_ALIGN_CENTER,
+ "valign", GTK_ALIGN_CENTER,
nullptr));
// No documentLoad(), just a createView().