⚡ ags(apps-window): remove unnecessary gtkeventbox
This commit is contained in:
+18
-32
@@ -134,38 +134,24 @@ export const AppsWindow = (mon: number): (Widget.Window) => {
|
|||||||
!entry.isFocus && entry.grab_focus_without_selecting();
|
!entry.isFocus && entry.grab_focus_without_selecting();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: new Widget.EventBox({
|
child: new Widget.Box({
|
||||||
onClick: () => {
|
className: "apps-window-container",
|
||||||
searchString.set("");
|
expand: true,
|
||||||
entry.text = "";
|
orientation: Gtk.Orientation.VERTICAL,
|
||||||
window.close();
|
children: [
|
||||||
},
|
entry,
|
||||||
onKeyPressEvent: (_, event: Gdk.Event) => {
|
new Widget.Box({
|
||||||
if(event.get_keyval()[1] === Gdk.KEY_Escape) {
|
className: "apps-area",
|
||||||
searchString.set("");
|
child: new Widget.Scrollable({
|
||||||
entry.text = "";
|
vscroll: Gtk.PolicyType.AUTOMATIC,
|
||||||
window.close();
|
hscroll: Gtk.PolicyType.NEVER,
|
||||||
}
|
overlayScrolling: true,
|
||||||
},
|
expand: true,
|
||||||
child: new Widget.Box({
|
child: flowbox
|
||||||
className: "apps-window-container",
|
} as Widget.ScrollableProps)
|
||||||
expand: true,
|
} as Widget.BoxProps)
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
]
|
||||||
children: [
|
} as Widget.BoxProps)
|
||||||
entry,
|
|
||||||
new Widget.Box({
|
|
||||||
className: "apps-area",
|
|
||||||
child: new Widget.Scrollable({
|
|
||||||
vscroll: Gtk.PolicyType.AUTOMATIC,
|
|
||||||
hscroll: Gtk.PolicyType.NEVER,
|
|
||||||
overlayScrolling: true,
|
|
||||||
expand: true,
|
|
||||||
child: flowbox
|
|
||||||
} as Widget.ScrollableProps)
|
|
||||||
} as Widget.BoxProps)
|
|
||||||
]
|
|
||||||
} as Widget.BoxProps)
|
|
||||||
} as Widget.EventBoxProps),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const connId = window.connect("focus-in-event", (_) => {
|
const connId = window.connect("focus-in-event", (_) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user