mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-22 09:32:38 +00:00
ags steal
This commit is contained in:
10
desktops/hyprland/ags/modules/lib/contextmenuitem.js
Normal file
10
desktops/hyprland/ags/modules/lib/contextmenuitem.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const { Gdk, Gtk } = imports.gi;
|
||||
import { Widget } from '../../imports.js';
|
||||
|
||||
export const ContextMenuItem = ({ label, onClick }) => Widget({
|
||||
type: Gtk.MenuItem,
|
||||
label: `${label}`,
|
||||
setup: menuItem => {
|
||||
menuItem.connect("activate", onClick);
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user