[gnome-control-center] region: Use popover for input source rows
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Use popover for input source rows
- Date: Tue, 15 Sep 2020 22:18:20 +0000 (UTC)
commit 561a6b93dc1e2b4d03090bc9c9295a69c2fb06de
Author: Ian Douglas Scott <idscott system76 com>
Date: Tue Sep 15 09:21:38 2020 -0700
region: Use popover for input source rows
panels/region/cc-input-row.ui | 87 +++++++++++++++++++++++--------------------
1 file changed, 47 insertions(+), 40 deletions(-)
---
diff --git a/panels/region/cc-input-row.ui b/panels/region/cc-input-row.ui
index 70794fcee..cb98c58f1 100644
--- a/panels/region/cc-input-row.ui
+++ b/panels/region/cc-input-row.ui
@@ -39,55 +39,19 @@
</object>
</child>
<child>
- <object class="GtkButton" id="settings_button">
- <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"/>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="icon_name">emblem-system-symbolic</property>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="GtkButton">
- <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"/>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="icon_name">view-layout-symbolic</property>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="GtkButton" id="remove_button">
+ <object class="GtkMenuButton">
<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"/>
+ <property name="popover">popover_menu</property>
<style>
- <class name="image-button"/>
+ <class name="flat"/>
</style>
<child>
<object class="GtkImage">
<property name="visible">True</property>
- <property name="icon_name">edit-delete-symbolic</property>
+ <property name="icon_name">view-more-symbolic</property>
</object>
</child>
</object>
@@ -97,4 +61,47 @@
</object>
</child>
</template>
+ <object class="GtkPopoverMenu" id="popover_menu">
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="margin">6</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkButton" id="settings_button">
+ <property name="visible">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Preferences</property>
+ <signal name="clicked" handler="settings_button_clicked_cb" object="CcInputRow" swapped="yes"/>
+ <style>
+ <class name="flat"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">View Keyboard Layout</property>
+ <signal name="clicked" handler="layout_button_clicked_cb" object="CcInputRow" swapped="yes"/>
+ <style>
+ <class name="flat"/>
+ </style>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="remove_button">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Remove</property>
+ <signal name="clicked" handler="remove_button_clicked_cb" object="CcInputRow" swapped="yes"/>
+ <style>
+ <class name="flat"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]