Skip to content

Commit 7dea3ed

Browse files
committed
fix(gnofi): button on click
1 parent fa005f3 commit 7dea3ed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

gnofi/src/extension/src/GnofiWindow/Controls.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ export default function Controls() {
1515
xExpand={false}
1616
xAlign={Clutter.ActorAlign.END}
1717
visible={createBinding(gnofi, "text").as(Boolean)}
18-
onClicked={() => (gnofi.text = "")}
18+
onButtonPressEvent={() => void (gnofi.text = "")}
1919
>
2020
<St.Icon iconSize={16} iconName="edit-clear-symbolic" />
2121
</St.Button>
2222
<St.Button
2323
class="popup-menu-item"
24-
onClicked={() => {
24+
onButtonPressEvent={() => {
2525
extension.openPreferences()
2626
gnofi.close()
2727
}}

gnofi/src/extension/src/widgets/PickerButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default function PickerButton(props: {
4646
}
4747
onKeyFocusIn={(self) => self.add_style_pseudo_class("selected")}
4848
onKeyFocusOut={(self) => self.remove_style_pseudo_class("selected")}
49+
onClicked={props.onClick}
4950
onButtonPressEvent={props.onClick}
5051
css={padding((p) =>
5152
Array.isArray(p)

0 commit comments

Comments
 (0)