tdf#149768 Do not fix Templates dialog width and height in pixels
This patch removes the fixed size of the Templates dialog in pixels so it works better in HiDPI displays. This patch also makes the dialog a bit wider and non-resizable. Change-Id: I256d8d5c8b76c8e32a4f008f3a235f80bf59634d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136922 Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
This commit is contained in:
parent
010e2a574c
commit
410bff99a7
2 changed files with 4 additions and 2 deletions
|
@ -203,6 +203,9 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg(weld::Window *pParent)
|
|||
|
||||
mxLocalView->ShowTooltips(true);
|
||||
|
||||
// Set width and height of the templates thumbnail viewer to acommodate 3 rows and 4 columns of items
|
||||
mxLocalViewWeld->set_size_request(TEMPLATE_ITEM_MAX_WIDTH * 5, TEMPLATE_ITEM_MAX_HEIGHT_SUB * 3);
|
||||
|
||||
mxOKButton->connect_clicked(LINK(this, SfxTemplateManagerDlg, OkClickHdl));
|
||||
// FIXME: rather than disabling make dispatchCommand(".uno:AdditionsDialog") work in start center
|
||||
if ( !SfxModule::GetActiveModule() )
|
||||
|
|
|
@ -39,11 +39,10 @@
|
|||
</columns>
|
||||
</object>
|
||||
<object class="GtkDialog" id="TemplateDialog">
|
||||
<property name="width-request">740</property>
|
||||
<property name="height-request">500</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="border-width">6</property>
|
||||
<property name="title" translatable="yes" context="templatedlg|TemplateDialog">Templates</property>
|
||||
<property name="resizable">False</property>
|
||||
<property name="modal">True</property>
|
||||
<property name="default-width">0</property>
|
||||
<property name="default-height">0</property>
|
||||
|
|
Loading…
Reference in a new issue