summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-François Fortin Tam <nekohayo@gmail.com>2023-01-02 16:24:44 -0500
committerJean-François Fortin Tam <nekohayo@gmail.com>2023-01-02 16:24:44 -0500
commitaa333722aff8cb6e1e817f54dba9a1266a7f64f0 (patch)
tree8e97c0998440f6511579c5f570a6fb65077252a1
parenta162c6f4962dbf7fead1140dd26e1ae612a36856 (diff)
downloadgnome-calendar-aa333722aff8cb6e1e817f54dba9a1266a7f64f0.tar.gz
Set a better default size (height and width) for the event editor dialog
These are still hardcoded instead of measuring the available space, but it's better than nothing in the meantime. Decent WMs size the window correctly if width/height exceed the screen. Also, allow the Notes field to expand vertically, to fill the space. Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/602
-rw-r--r--src/gui/event-editor/gcal-event-editor-dialog.ui5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/event-editor/gcal-event-editor-dialog.ui b/src/gui/event-editor/gcal-event-editor-dialog.ui
index 7086747a..dcdef67c 100644
--- a/src/gui/event-editor/gcal-event-editor-dialog.ui
+++ b/src/gui/event-editor/gcal-event-editor-dialog.ui
@@ -2,8 +2,8 @@
<interface>
<template class="GcalEventEditorDialog" parent="GtkDialog">
<property name="modal">True</property>
- <property name="default-width">450</property>
- <property name="default-height">500</property>
+ <property name="default-width">700</property>
+ <property name="default-height">1000</property>
<property name="use_header_bar">1</property>
<property name="destroy_with_parent">True</property>
<property name="hide-on-close">True</property>
@@ -140,6 +140,7 @@
<child>
<object class="GcalNotesSection" id="notes_section">
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
+ <property name="vexpand">True</property>
</object>
</child>
</object>