window: Port to AdwApplicationWindow
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2802>
This commit is contained in:
parent
9e5dfa2221
commit
55ae4c0806
@ -12,47 +12,47 @@
|
|||||||
</item>
|
</item>
|
||||||
</section>
|
</section>
|
||||||
</menu>
|
</menu>
|
||||||
<template class="ExtensionsWindow" parent="GtkApplicationWindow">
|
<template class="ExtensionsWindow" parent="AdwApplicationWindow">
|
||||||
<property name="default-width">800</property>
|
<property name="default-width">800</property>
|
||||||
<property name="default-height">500</property>
|
<property name="default-height">500</property>
|
||||||
<property name="title" translatable="yes">Extensions</property>
|
<property name="title" translatable="yes">Extensions</property>
|
||||||
<child type="titlebar">
|
<child>
|
||||||
<object class="GtkHeaderBar">
|
<object class="GtkBox">
|
||||||
<child type="end">
|
<property name="orientation">vertical</property>
|
||||||
<object class="GtkMenuButton" id="menuButton">
|
<child>
|
||||||
<property name="receives-default">True</property>
|
<object class="GtkHeaderBar">
|
||||||
<property name="menu-model">primary-menu</property>
|
<child type="end">
|
||||||
<property name="icon-name">open-menu-symbolic</property>
|
<object class="GtkMenuButton" id="menuButton">
|
||||||
</object>
|
<property name="receives-default">True</property>
|
||||||
</child>
|
<property name="menu-model">primary-menu</property>
|
||||||
<child type="end">
|
<property name="icon-name">open-menu-symbolic</property>
|
||||||
<object class="GtkToggleButton" id="searchButton">
|
</object>
|
||||||
<property name="receives-default">True</property>
|
</child>
|
||||||
<property name="icon-name">edit-find-symbolic</property>
|
<child type="end">
|
||||||
<child>
|
<object class="GtkToggleButton" id="searchButton">
|
||||||
<object class="GtkShortcutController">
|
<property name="receives-default">True</property>
|
||||||
<property name='scope'>global</property>
|
<property name="icon-name">edit-find-symbolic</property>
|
||||||
<child>
|
<child>
|
||||||
<object class='GtkShortcut'>
|
<object class="GtkShortcutController">
|
||||||
<property name='trigger'><Control>f</property>
|
<property name='scope'>global</property>
|
||||||
<property name='action'>activate</property>
|
<child>
|
||||||
</object>
|
<object class='GtkShortcut'>
|
||||||
</child>
|
<property name='trigger'><Control>f</property>
|
||||||
<child>
|
<property name='action'>activate</property>
|
||||||
<object class='GtkShortcut'>
|
</object>
|
||||||
<property name='trigger'><Control>s</property>
|
</child>
|
||||||
<property name='action'>activate</property>
|
<child>
|
||||||
|
<object class='GtkShortcut'>
|
||||||
|
<property name='trigger'><Control>s</property>
|
||||||
|
<property name='action'>activate</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child>
|
|
||||||
<object class="GtkBox">
|
|
||||||
<property name="orientation">vertical</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSearchBar" id="searchBar">
|
<object class="GtkSearchBar" id="searchBar">
|
||||||
<property name="key-capture-widget">ExtensionsWindow</property>
|
<property name="key-capture-widget">ExtensionsWindow</property>
|
||||||
|
@ -88,7 +88,7 @@ var ExtensionsWindow = GObject.registerClass({
|
|||||||
'updatesBar',
|
'updatesBar',
|
||||||
'updatesLabel',
|
'updatesLabel',
|
||||||
],
|
],
|
||||||
}, class ExtensionsWindow extends Gtk.ApplicationWindow {
|
}, class ExtensionsWindow extends Adw.ApplicationWindow {
|
||||||
_init(params) {
|
_init(params) {
|
||||||
super._init(params);
|
super._init(params);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user