[gnome-weather/wip/ewlsh/gtk4: 4/7] weather-widget: Use `always-show-arrow` for placesButton arrow




commit 0e0f250cd757cdef8e651090c13ccadbc1da883a
Author: Christopher Davis <christopherdavis gnome org>
Date:   Tue Feb 15 16:47:56 2022 -0800

    weather-widget: Use `always-show-arrow` for placesButton arrow
    
    We don't need to manually pack a GtkImage, as GTK provides
    a property to show arrows on GtkMenuButtons.

 data/weather-widget.ui | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)
---
diff --git a/data/weather-widget.ui b/data/weather-widget.ui
index 19924b2..0ab8f68 100644
--- a/data/weather-widget.ui
+++ b/data/weather-widget.ui
@@ -33,24 +33,15 @@
               <object class="GtkMenuButton" id="placesButton">
                 <property name="halign">start</property>
                 <property name="valign">start</property>
-                <child>
-                  <object class="GtkBox" id="placesBox">
-                    <property name="spacing">12</property>
-                    <child>
-                      <object class="GtkLabel" id="placesLabel">
-                        <property name="name">places-label</property>
-                        <property name="wrap">true</property>
-                        <property name="wrap-mode">word-char</property>
-                        <property name="label" translatable="yes">Places</property>
-                      </object>
-                    </child>
-                    <child>
-                      <object class="GtkImage">
-                        <property name="icon_name">pan-down-symbolic</property>
-                      </object>
-                    </child>
+                <property name="always-show-arrow">True</property>
+                <property name="child">
+                  <object class="GtkLabel" id="placesLabel">
+                    <property name="name">places-label</property>
+                    <property name="wrap">true</property>
+                    <property name="wrap-mode">word-char</property>
+                    <property name="label" translatable="yes">Places</property>
                   </object>
-                </child>
+                </property>
                 <style>
                   <class name="text-button"/>
                   <class name="flat"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]