simplify
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
## Reference
|
## Reference
|
||||||
[guide](https://gjs.guide/extensions/development/creating.html)
|
[guide](https://gjs.guide/extensions/development/creating.html)
|
||||||
|
[Dialog](https://gjs.guide/extensions/topics/dialogs.html)
|
||||||
|
[Settings](https://gjs.guide/extensions/development/preferences.html)
|
||||||
|
[Settings](https://gjs.guide/guides/gtk/3/16-settings.html#title:-application-settings)
|
||||||
|
[Tooltip](https://gitlab.com/arcmenu/ArcMenu)
|
||||||
|
|
||||||
|
## GSettings schema must be compiled
|
||||||
|
`glib-compile-schemas schemas/`
|
||||||
|
|
||||||
## Debug
|
## Debug
|
||||||
dbus-run-session -- gnome-shell --nested --wayland
|
dbus-run-session -- gnome-shell --nested --wayland
|
||||||
|
|||||||
@@ -12,13 +12,6 @@ Display date and time on GNOME taskbar.
|
|||||||
[Guide](https://gjs.guide/extensions/development/creating.html)
|
[Guide](https://gjs.guide/extensions/development/creating.html)
|
||||||
[Cinnamon_Applet](https://github.com/sonichy/Cinnamon_Applet)
|
[Cinnamon_Applet](https://github.com/sonichy/Cinnamon_Applet)
|
||||||
[Calendar](https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/dateMenu.js#L901)
|
[Calendar](https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/dateMenu.js#L901)
|
||||||
[Tooltip](https://gitlab.com/arcmenu/ArcMenu)
|
|
||||||
[Dialog](https://gjs.guide/extensions/topics/dialogs.html)
|
|
||||||
[Settings](https://gjs.guide/extensions/development/preferences.html)
|
|
||||||
[Settings](https://gjs.guide/guides/gtk/3/16-settings.html#title:-application-settings)
|
|
||||||
|
|
||||||
## GSettings schema must be compiled
|
|
||||||
`glib-compile-schemas schemas/`
|
|
||||||
|
|
||||||
## Debug
|
## Debug
|
||||||
dbus-run-session -- gnome-shell --nested --wayland
|
dbus-run-session -- gnome-shell --nested --wayland
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ export default class DatetimeExtension extends Extension {
|
|||||||
this._indicator.menu.addMenuItem(menu_calendar);
|
this._indicator.menu.addMenuItem(menu_calendar);
|
||||||
|
|
||||||
//https://gjs.guide/extensions/development/preferences.html
|
//https://gjs.guide/extensions/development/preferences.html
|
||||||
const schema = 'org.gnome.shell.extensions.datetime';
|
//const schema = 'org.gnome.shell.extensions.datetime';
|
||||||
this._settings = this.getSettings(schema);
|
this._settings = this.getSettings();
|
||||||
|
|
||||||
const menu_set = new PopupMenu.PopupMenuItem('Set');
|
const menu_set = new PopupMenu.PopupMenuItem('Set');
|
||||||
menu_set.connect('activate', () => {
|
menu_set.connect('activate', () => {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"uuid": "datetime@sonichy",
|
"uuid": "datetime@sonichy",
|
||||||
"name": "datetime",
|
"name": "datetime",
|
||||||
"settings-schema": "org.gnome.shell.extensions.datetime",
|
|
||||||
"description": "Display date and time on GNOME taskbar",
|
"description": "Display date and time on GNOME taskbar",
|
||||||
"author": "sonichy",
|
"author": "sonichy",
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
"shell-version": [ "45", "46", "47", "48" ],
|
"shell-version": [ "45", "46", "47", "48" ],
|
||||||
"url": "https://github.com/sonichy/GNOME_extension"
|
"url": "https://github.com/sonichy/GNOME_extension",
|
||||||
|
"settings-schema": "org.gnome.shell.extensions.datetime"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user