[nautilus/wip/cdavis/post-port-cleanups: 12/14] Batch-rename-dialog: Use AdwButtonContent for add tag button
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/cdavis/post-port-cleanups: 12/14] Batch-rename-dialog: Use AdwButtonContent for add tag button
- Date: Sat, 16 Jul 2022 19:02:29 +0000 (UTC)
commit c4b9e130db5fac4bc91c7b5cf4904d2c1cbc7172
Author: Christopher Davis <christopherdavis gnome org>
Date: Sat Jul 16 08:20:02 2022 -0400
Batch-rename-dialog: Use AdwButtonContent for add tag button
AdwButtonContent is a pre-made widget for this use case
that provides everything you need.
src/resources/ui/nautilus-batch-rename-dialog.ui | 20 +++++---------------
1 file changed, 5 insertions(+), 15 deletions(-)
---
diff --git a/src/resources/ui/nautilus-batch-rename-dialog.ui
b/src/resources/ui/nautilus-batch-rename-dialog.ui
index 25b67d494..0583132cd 100644
--- a/src/resources/ui/nautilus-batch-rename-dialog.ui
+++ b/src/resources/ui/nautilus-batch-rename-dialog.ui
@@ -186,22 +186,12 @@
<child>
<object class="GtkMenuButton">
<property name="menu_model">add_tag_menu</property>
- <child>
- <object class="GtkBox">
- <child>
- <object class="GtkImage">
- <property name="icon-name">list-add-symbolic</property>
- <property name="icon-size">1</property>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="xalign">0</property>
- <property name="label" translatable="yes">Add</property>
- </object>
- </child>
+ <property name="child">
+ <object class="AdwButtonContent">
+ <property name="icon-name">list-add-symbolic</property>
+ <property name="label" translatable="yes">Add</property>
</object>
- </child>
+ </property>
</object>
</child>
<style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]