[Libreoffice-commits] core.git: libreofficekit/source
Pranav Kant
pranavk at collabora.com
Sun Feb 14 15:16:16 UTC 2016
libreofficekit/source/gtk/lokdocview.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 58ec66da422e5ac6aec5cbd28403039cded7c7ed
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
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 742946d..baa4f6e 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().
More information about the Libreoffice-commits
mailing list