[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - libreofficekit/source
Pranav Kant
pranavk at collabora.com
Mon Feb 22 09:05:46 UTC 2016
libreofficekit/source/gtk/lokdocview.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit bcaee2b0149651173cc93763231c47ff2f5a55c2
Author: Pranav Kant <pranavk at collabora.com>
Date: Sun Feb 14 20:44:00 2016 +0530
lokdocview: Center the widget vertically inside the allocation
Change-Id: I891519d54212ecd99273a54aca2a44e2d54c1933
Reviewed-on: https://gerrit.libreoffice.org/22517
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 655d73a..11589dd 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2508,6 +2508,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));
}
@@ -2519,6 +2520,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().
More information about the Libreoffice-commits
mailing list