[gnome-weather/wip/ewlsh/gtk4: 3/7] weather-widget: Use GtkButton:icon-name property
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather/wip/ewlsh/gtk4: 3/7] weather-widget: Use GtkButton:icon-name property
- Date: Wed, 16 Feb 2022 01:24:04 +0000 (UTC)
commit e6ff8ad14e57868bbf654be719520353083cf521
Author: Christopher Davis <christopherdavis gnome org>
Date: Tue Feb 15 16:45:52 2022 -0800
weather-widget: Use GtkButton:icon-name property
We don't need to manually pack GtkImages anymore.
data/weather-widget.ui | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/data/weather-widget.ui b/data/weather-widget.ui
index 534d0ae..19924b2 100644
--- a/data/weather-widget.ui
+++ b/data/weather-widget.ui
@@ -164,11 +164,7 @@
<property name="halign">end</property>
<property name="valign">center</property>
<property name="margin_end">28</property>
- <child>
- <object class="GtkImage" id="right-image">
- <property name="icon_name">go-next-symbolic</property>
- </object>
- </child>
+ <property name="icon_name">go-next-symbolic</property>
<style>
<class name="osd"/>
<class name="circular"/>
@@ -180,12 +176,7 @@
<property name="halign">start</property>
<property name="valign">center</property>
<property name="margin_start">28</property>
- <child>
- <object class="GtkImage" id="left-image">
- <property name="icon_name">go-previous-symbolic</property>
- <property name="icon_size">1</property>
- </object>
- </child>
+ <property name="icon_name">go-previous-symbolic</property>
<style>
<class name="osd"/>
<class name="circular"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]