talkatu/talkatu

Fix attachment dialog UI
gtk4
2022-01-30, Elliott Sales de Andrade
296103991647
Parents f9511fd0e4ac
Children 6efc5c0bd08f
Fix attachment dialog UI

Testing Done:
Check in `gtk4-builder-tool preview`

Reviewed at https://reviews.imfreedom.org/r/1251/
--- a/talkatu/data/attachmentdialog.ui Sun Jan 30 04:13:51 2022 -0600
+++ b/talkatu/data/attachmentdialog.ui Sun Jan 30 04:16:53 2022 -0600
@@ -25,12 +25,7 @@
<!-- interface-description GTK widgets for chat applications -->
<!-- interface-copyright Gary Kramlich <grim@reaperworld.com> -->
<template class="TalkatuAttachmentDialog" parent="GtkDialog">
- <property name="border_width">12</property>
<property name="modal">1</property>
- <property name="type_hint">dialog</property>
- <child>
- <placeholder/>
- </child>
<child internal-child="content_area">
<object class="GtkBox">
<property name="orientation">vertical</property>
@@ -39,7 +34,6 @@
<object class="GtkImage" id="preview">
<property name="pixel_size">256</property>
<property name="icon_name">text-x-generic-template</property>
- <property name="icon_size">6</property>
</object>
</child>
<child>
@@ -49,8 +43,8 @@
</child>
<child>
<object class="GtkEntry" id="comment">
+ <property name="activates_default">1</property>
<property name="focusable">1</property>
- <property name="has_focus">1</property>
<property name="placeholder_text" translatable="yes">Comment (optional)</property>
</object>
</child>
@@ -60,38 +54,17 @@
<action-widget response="-6">cancel</action-widget>
<action-widget response="-3">upload</action-widget>
</action-widgets>
- <child internal-child="action_area">
- <object class="GtkButtonBox">
- <property name="valign">center</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <object class="GtkButton" id="cancel">
- <property name="label" translatable="yes">Cancel</property>
- <property name="focusable">1</property>
- <property name="receives_default">1</property>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="upload">
- <property name="label" translatable="yes">Upload</property>
- <property name="focusable">1</property>
- <property name="can_default">True</property>
- <property name="has_default">1</property>
- <property name="receives_default">1</property>
- <accelerator key="Return" signal="clicked"/>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
+ <child type="action">
+ <object class="GtkButton" id="cancel">
+ <property name="label" translatable="yes">Cancel</property>
+ <property name="focusable">1</property>
+ </object>
+ </child>
+ <child type="action">
+ <object class="GtkButton" id="upload">
+ <property name="label" translatable="yes">Upload</property>
+ <property name="focusable">1</property>
+ <property name="receives_default">1</property>
</object>
</child>
</template>