diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2018-11-19 11:22:29 +1300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-02-04 13:56:41 +0000 |
commit | 4d5626d066e8794351a879bc63f3b0a819b363f6 (patch) | |
tree | ad925975d21192a3fb71f6c83c93c98c42a7f343 /panels/region/cc-region-panel.ui | |
parent | a193417b32c3f4dd707d60c59193115b9f97194d (diff) | |
download | gnome-control-center-4d5626d066e8794351a879bc63f3b0a819b363f6.tar.gz |
region: Convert add input button to a row
This matches the new designs in
https://gitlab.gnome.org/Teams/Design/settings-mockups/blob/master/region-and-language/region-and-language.png
Diffstat (limited to 'panels/region/cc-region-panel.ui')
-rw-r--r-- | panels/region/cc-region-panel.ui | 51 |
1 files changed, 18 insertions, 33 deletions
diff --git a/panels/region/cc-region-panel.ui b/panels/region/cc-region-panel.ui index 740c1ac50..242793e1f 100644 --- a/panels/region/cc-region-panel.ui +++ b/panels/region/cc-region-panel.ui @@ -253,6 +253,8 @@ <object class="GtkListBox" id="input_list"> <property name="visible">True</property> <property name="can_focus">True</property> + <property name="selection-mode">none</property> + <signal name="row_activated" handler="input_row_activated_cb" object="CcRegionPanel" swapped="yes"/> <accessibility> <relation target="input_heading_label" type="labelled-by"/> </accessibility> @@ -271,6 +273,22 @@ </child> </object> </child> + <child> + <object class="GtkListBoxRow" id="add_input_row"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="selectable">False</property> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="margin">18</property> + <property name="icon-name">list-add-symbolic</property> + </object> + </child> + </object> + </child> </object> </child> </object> @@ -286,39 +304,6 @@ <class name="inline-toolbar"/> </style> <child> - <object class="GtkToolItem"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <child> - <object class="GtkBox"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <child> - <object class="GtkButton" id="add_input_button"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="add_input" object="CcRegionPanel" swapped="yes"/> - <child internal-child="accessible"> - <object class="AtkObject"> - <property name="accessible-name" translatable="yes">Add input source</property> - </object> - </child> - <child> - <object class="GtkImage"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="icon_name">list-add-symbolic</property> - <property name="icon-size">1</property> - </object> - </child> - </object> - </child> - </object> - </child> - </object> - </child> - <child> <object class="GtkSeparatorToolItem"> <property name="visible">True</property> <property name="can_focus">False</property> |