region: Make CcInputRow adaptive

Align the sizing of the CcInputRow on the one of HdyActionRow and
ellipsize its labels to make it better fit narrow windows.
This commit is contained in:
Adrien Plazas 2019-02-18 18:46:20 +01:00 committed by Robert Ancell
parent 8cb75c45a3
commit e75cf5b643

View file

@ -15,7 +15,9 @@
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="border-width">12</property> <property name="height_request">50</property>
<property name="margin_start">12</property>
<property name="margin_end">12</property>
<property name="spacing">12</property> <property name="spacing">12</property>
<child> <child>
<object class="GtkImage"> <object class="GtkImage">
@ -26,6 +28,9 @@
<child> <child>
<object class="GtkLabel" id="name_label"> <object class="GtkLabel" id="name_label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="margin_bottom">8</property>
<property name="margin_top">8</property>
<property name="ellipsize">end</property>
<property name="xalign">0.0</property> <property name="xalign">0.0</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
</object> </object>
@ -33,6 +38,9 @@
<child> <child>
<object class="GtkButton" id="settings_button"> <object class="GtkButton" id="settings_button">
<property name="visible">False</property> <property name="visible">False</property>
<property name="margin_bottom">8</property>
<property name="margin_top">8</property>
<property name="valign">center</property>
<signal name="clicked" handler="settings_button_clicked_cb" object="CcInputRow" swapped="yes"/> <signal name="clicked" handler="settings_button_clicked_cb" object="CcInputRow" swapped="yes"/>
<style> <style>
<class name="image-button"/> <class name="image-button"/>
@ -48,6 +56,9 @@
<child> <child>
<object class="GtkButton"> <object class="GtkButton">
<property name="visible">True</property> <property name="visible">True</property>
<property name="margin_bottom">8</property>
<property name="margin_top">8</property>
<property name="valign">center</property>
<signal name="clicked" handler="layout_button_clicked_cb" object="CcInputRow" swapped="yes"/> <signal name="clicked" handler="layout_button_clicked_cb" object="CcInputRow" swapped="yes"/>
<style> <style>
<class name="image-button"/> <class name="image-button"/>
@ -63,6 +74,9 @@
<child> <child>
<object class="GtkButton" id="remove_button"> <object class="GtkButton" id="remove_button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="margin_bottom">8</property>
<property name="margin_top">8</property>
<property name="valign">center</property>
<signal name="clicked" handler="remove_button_clicked_cb" object="CcInputRow" swapped="yes"/> <signal name="clicked" handler="remove_button_clicked_cb" object="CcInputRow" swapped="yes"/>
<style> <style>
<class name="image-button"/> <class name="image-button"/>