window: Port to AdwApplicationWindow

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2802>
This commit is contained in:
Christopher Davis 2023-06-18 20:53:30 -04:00
parent 9e5dfa2221
commit 55ae4c0806
2 changed files with 32 additions and 32 deletions

View File

@ -12,11 +12,14 @@
</item>
</section>
</menu>
<template class="ExtensionsWindow" parent="GtkApplicationWindow">
<template class="ExtensionsWindow" parent="AdwApplicationWindow">
<property name="default-width">800</property>
<property name="default-height">500</property>
<property name="title" translatable="yes">Extensions</property>
<child type="titlebar">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkHeaderBar">
<child type="end">
<object class="GtkMenuButton" id="menuButton">
@ -50,9 +53,6 @@
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkSearchBar" id="searchBar">
<property name="key-capture-widget">ExtensionsWindow</property>

View File

@ -88,7 +88,7 @@ var ExtensionsWindow = GObject.registerClass({
'updatesBar',
'updatesLabel',
],
}, class ExtensionsWindow extends Gtk.ApplicationWindow {
}, class ExtensionsWindow extends Adw.ApplicationWindow {
_init(params) {
super._init(params);