window: Add "Open File..." button, remove gesture

This gives users a very intuitive way to open files.
The gesture was awkard and didn't match any common patterns
across GNOME. The button is simple and obvious.
This commit is contained in:
Christopher Davis 2021-12-22 19:38:56 -08:00
parent 5893d4b764
commit 5d9567507c
2 changed files with 12 additions and 12 deletions

View file

@ -44,9 +44,17 @@
<child>
<object class="AdwStatusPage" id="status_page">
<property name="title" translatable="yes">Image Viewer</property>
<property name="description" translatable="yes">Click here or drag an image here to open a file.</property>
<property name="description" translatable="yes">Click "Open File…" or drag an image here.</property>
<child>
<object class="GtkGestureClick" id="open_gesture"/>
<object class="GtkButton">
<property name="halign">center</property>
<property name="label" translatable="yes">Open File…</property>
<property name="action-name">win.open</property>
<style>
<class name="pill"/>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</child>