simplify
This commit is contained in:
@@ -12,13 +12,6 @@ Display date and time on GNOME taskbar.
|
||||
[Guide](https://gjs.guide/extensions/development/creating.html)
|
||||
[Cinnamon_Applet](https://github.com/sonichy/Cinnamon_Applet)
|
||||
[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
|
||||
dbus-run-session -- gnome-shell --nested --wayland
|
||||
|
||||
@@ -30,8 +30,8 @@ export default class DatetimeExtension extends Extension {
|
||||
this._indicator.menu.addMenuItem(menu_calendar);
|
||||
|
||||
//https://gjs.guide/extensions/development/preferences.html
|
||||
const schema = 'org.gnome.shell.extensions.datetime';
|
||||
this._settings = this.getSettings(schema);
|
||||
//const schema = 'org.gnome.shell.extensions.datetime';
|
||||
this._settings = this.getSettings();
|
||||
|
||||
const menu_set = new PopupMenu.PopupMenuItem('Set');
|
||||
menu_set.connect('activate', () => {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"uuid": "datetime@sonichy",
|
||||
"name": "datetime",
|
||||
"settings-schema": "org.gnome.shell.extensions.datetime",
|
||||
"name": "datetime",
|
||||
"description": "Display date and time on GNOME taskbar",
|
||||
"author": "sonichy",
|
||||
"version": "1.0",
|
||||
"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