diff options
author | Christopher Davis <christopherdavis@gnome.org> | 2022-12-22 11:43:18 -0600 |
---|---|---|
committer | Christopher Davis <christopherdavis@gnome.org> | 2022-12-22 12:10:37 -0600 |
commit | 93ab537beb9deb8617de64bbd9675653b298fcdf (patch) | |
tree | 723b4e61a8c1a798d78e337e965d0bcdbe11fa11 /data/gl-window.ui | |
parent | 935672d496100283200c4610c0a035e44bf361b8 (diff) | |
download | gnome-logs-93ab537beb9deb8617de64bbd9675653b298fcdf.tar.gz |
window: Use AdwBanner instead of GtkInfoBarwip/cdavis/adw-banner
AdwBanner is a new widget that should be used in place of GtkInfoBar.
It implements an API that follows the new suggested uses for info
bars, and adapts cleanly to small window sizes.
Diffstat (limited to 'data/gl-window.ui')
-rw-r--r-- | data/gl-window.ui | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/data/gl-window.ui b/data/gl-window.ui index 83f1a68..b998673 100644 --- a/data/gl-window.ui +++ b/data/gl-window.ui @@ -11,35 +11,9 @@ </object> </child> <child> - <object class="GtkInfoBar" id="info_bar"> - <property name="message-type">GTK_MESSAGE_ERROR</property> - <property name="visible">False</property> - <child> - <object class="GtkBox" id="action_area"> - <property name="orientation">horizontal</property> - <property name="spacing">6</property> - <child> - <object class="GtkLabel" id="message_label"> - <property name="hexpand">True</property> - <property name="halign">start</property> - </object> - </child> - <child> - <object class="GtkButton" id="help_button"> - <property name="halign">center</property> - <property name="label" translatable="yes">Help</property> - <signal name="clicked" handler="on_help_button_clicked" object="GlWindow"/> - </object> - </child> - <child> - <object class="GtkButton" id="ignore_button"> - <property name="halign">center</property> - <property name="label" translatable="yes">Ignore</property> - <signal name="clicked" handler="on_ignore_button_clicked" object="GlWindow"/> - </object> - </child> - </object> - </child> + <object class="AdwBanner" id="banner"> + <property name="button-label" translatable="yes">Help</property> + <signal name="button-clicked" handler="on_help_button_clicked" swapped="yes"/> </object> </child> <child> |