[fractal] media_viewer: Remove GtkAlignment
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] media_viewer: Remove GtkAlignment
- Date: Fri, 6 Nov 2020 08:31:43 +0000 (UTC)
commit 4839d9d1fe5679a77d5826c1573f962b4aeace14
Author: Christopher Davis <brainblasted disroot org>
Date: Sat Oct 31 17:48:19 2020 -0700
media_viewer: Remove GtkAlignment
GtkAlignment is deprecated and no longer used
in GTK4
fractal-gtk/res/ui/media_viewer.ui | 68 ++++++++++++++++----------------------
1 file changed, 28 insertions(+), 40 deletions(-)
---
diff --git a/fractal-gtk/res/ui/media_viewer.ui b/fractal-gtk/res/ui/media_viewer.ui
index 799b2260..e56915c0 100644
--- a/fractal-gtk/res/ui/media_viewer.ui
+++ b/fractal-gtk/res/ui/media_viewer.ui
@@ -121,31 +121,25 @@
<property name="transition_type">crossfade</property>
<property name="reveal_child">True</property>
<child>
- <object class="GtkAlignment">
+ <object class="GtkButton" id="previous_media_button">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="left_padding">18</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="relief">half</property>
+ <property name="margin_start">18</property>
<child>
- <object class="GtkButton" id="previous_media_button">
+ <object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="relief">half</property>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">go-previous-symbolic</property>
- </object>
- </child>
- <style>
- <class name="osd"/>
- <class name="round-button"/>
- </style>
+ <property name="can_focus">False</property>
+ <property name="icon_name">go-previous-symbolic</property>
</object>
</child>
+ <style>
+ <class name="osd"/>
+ <class name="round-button"/>
+ </style>
</object>
</child>
</object>
@@ -168,31 +162,25 @@
<property name="transition_type">crossfade</property>
<property name="reveal_child">True</property>
<child>
- <object class="GtkAlignment">
+ <object class="GtkButton" id="next_media_button">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="right_padding">18</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="relief">half</property>
+ <property name="margin_end">18</property>
<child>
- <object class="GtkButton" id="next_media_button">
+ <object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="relief">half</property>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">go-next-symbolic</property>
- </object>
- </child>
- <style>
- <class name="osd"/>
- <class name="round-button"/>
- </style>
+ <property name="can_focus">False</property>
+ <property name="icon_name">go-next-symbolic</property>
</object>
</child>
+ <style>
+ <class name="osd"/>
+ <class name="round-button"/>
+ </style>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]