[gnome-software/wip/mcrha/gs-shell-notification-event-alignment] gs-shell: Fix notification event widget alignment



commit b29cfe75cb2f0744dfc86f65c27060a7fa0e1338
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jan 26 14:16:57 2022 +0100

    gs-shell: Fix notification event widget alignment
    
    The error messages had been misaligned.
    
    Related to https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1612

 src/gs-shell.ui | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index 8bced6857..cbf0e6f60 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -67,7 +67,8 @@
                         </style>
                         <child>
                           <object class="GtkLabel" id="label_events">
-                            <property name="halign">start</property>
+                            <property name="halign">fill</property>
+                            <property name="hexpand">True</property>
                             <property name="label">Some Title</property>
                             <property name="wrap">True</property>
                             <property name="wrap_mode">word-char</property>
@@ -87,6 +88,7 @@
                                 <property name="label" translatable="yes" comments="button in the info 
bar">Software Repositories</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
+                                <property name="valign">center</property>
                                 <signal name="clicked" handler="gs_shell_plugin_events_sources_cb"/>
                               </object>
                             </child>
@@ -96,6 +98,7 @@
                                 <property name="label" translatable="yes" comments="button in the info 
bar">Examine Disk</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
+                                <property name="valign">center</property>
                                 <signal name="clicked" handler="gs_shell_plugin_events_no_space_cb"/>
                               </object>
                             </child>
@@ -105,6 +108,7 @@
                                 <property name="label" translatable="yes" comments="button in the info 
bar">Network Settings</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
+                                <property name="valign">center</property>
                                 <signal name="clicked" handler="gs_shell_plugin_events_network_settings_cb"/>
                               </object>
                             </child>
@@ -114,6 +118,7 @@
                                 <property name="label" translatable="yes" comments="button in the info 
bar">Restart Now</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
+                                <property name="valign">center</property>
                                 <signal name="clicked" handler="gs_shell_plugin_events_restart_required_cb"/>
                               </object>
                             </child>
@@ -123,6 +128,7 @@
                                 <property name="label" translatable="yes" comments="button in the info 
bar">More Information</property>
                                 <property name="can_focus">True</property>
                                 <property name="receives_default">True</property>
+                                <property name="valign">center</property>
                                 <signal name="clicked" handler="gs_shell_plugin_events_more_info_cb"/>
                               </object>
                             </child>
@@ -130,6 +136,7 @@
                         </child>
                         <child>
                           <object class="GtkButton" id="button_events_dismiss">
+                            <property name="halign">end</property>
                             <property name="valign">start</property>
                             <signal name="clicked" handler="gs_shell_plugin_event_dismissed_cb"/>
                             <style>


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