Kaydet (Commit) 58ec66da authored tarafından Pranav Kant's avatar Pranav Kant

lokdocview: Center the widget vertically inside the allocation

Change-Id: I891519d54212ecd99273a54aca2a44e2d54c1933
üst b7c807fa
...@@ -2574,6 +2574,7 @@ lok_doc_view_new (const gchar* pPath, GCancellable *cancellable, GError **error) ...@@ -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, return GTK_WIDGET (g_initable_new (LOK_TYPE_DOC_VIEW, cancellable, error,
"lopath", pPath == nullptr ? LOK_PATH : pPath, "lopath", pPath == nullptr ? LOK_PATH : pPath,
"halign", GTK_ALIGN_CENTER, "halign", GTK_ALIGN_CENTER,
"valign", GTK_ALIGN_CENTER,
nullptr)); nullptr));
} }
...@@ -2585,6 +2586,7 @@ SAL_DLLPUBLIC_EXPORT GtkWidget* lok_doc_view_new_from_widget(LOKDocView* pOldLOK ...@@ -2585,6 +2586,7 @@ SAL_DLLPUBLIC_EXPORT GtkWidget* lok_doc_view_new_from_widget(LOKDocView* pOldLOK
"lopointer", pOldPriv->m_pOffice, "lopointer", pOldPriv->m_pOffice,
"docpointer", pOldPriv->m_pDocument, "docpointer", pOldPriv->m_pDocument,
"halign", GTK_ALIGN_CENTER, "halign", GTK_ALIGN_CENTER,
"valign", GTK_ALIGN_CENTER,
nullptr)); nullptr));
// No documentLoad(), just a createView(). // No documentLoad(), just a createView().
......
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