mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
parent
2d2fc839fa
commit
907fab139e
@ -20,7 +20,7 @@ const PanelMenu = imports.ui.panelMenu;
|
|||||||
const PopupMenu = imports.ui.popupMenu;
|
const PopupMenu = imports.ui.popupMenu;
|
||||||
const Panel = imports.ui.panel;
|
const Panel = imports.ui.panel;
|
||||||
|
|
||||||
const Gettext = imports.gettext;
|
const Gettext = imports.gettext.domain('TeaTime');
|
||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
const Me = ExtensionUtils.getCurrentExtension();
|
const Me = ExtensionUtils.getCurrentExtension();
|
||||||
const Utils = Me.imports.utils;
|
const Utils = Me.imports.utils;
|
||||||
@ -420,4 +420,4 @@ function enable() {
|
|||||||
function disable() {
|
function disable() {
|
||||||
if (_TeaTime._idleTimeout != null) Mainloop.source_remove(_TeaTime._idleTimeout);
|
if (_TeaTime._idleTimeout != null) Mainloop.source_remove(_TeaTime._idleTimeout);
|
||||||
_TeaTime.destroy();
|
_TeaTime.destroy();
|
||||||
};
|
};
|
||||||
|
@ -13,7 +13,7 @@ const Lang = imports.lang;
|
|||||||
const Gtk = imports.gi.Gtk;
|
const Gtk = imports.gi.Gtk;
|
||||||
const GObject = imports.gi.GObject;
|
const GObject = imports.gi.GObject;
|
||||||
|
|
||||||
const Gettext = imports.gettext;
|
const Gettext = imports.gettext.domain('TeaTime');
|
||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
const Me = ExtensionUtils.getCurrentExtension();
|
const Me = ExtensionUtils.getCurrentExtension();
|
||||||
const Utils = Me.imports.utils;
|
const Utils = Me.imports.utils;
|
||||||
@ -320,4 +320,4 @@ function buildPrefsWidget() {
|
|||||||
|
|
||||||
widget.show_all();
|
widget.show_all();
|
||||||
return widget;
|
return widget;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
const Gio = imports.gi.Gio;
|
const Gio = imports.gi.Gio;
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const Gettext = imports.gettext;
|
|
||||||
const ExtensionUtils = imports.misc.extensionUtils;
|
const ExtensionUtils = imports.misc.extensionUtils;
|
||||||
const Me = ExtensionUtils.getCurrentExtension();
|
const Me = ExtensionUtils.getCurrentExtension();
|
||||||
const Config = imports.misc.config;
|
const Config = imports.misc.config;
|
||||||
@ -44,8 +43,7 @@ function initTranslations(domain) {
|
|||||||
|
|
||||||
domain = domain || extension.metadata['gettext-domain'];
|
domain = domain || extension.metadata['gettext-domain'];
|
||||||
|
|
||||||
Gettext.textdomain(domain);
|
imports.gettext.bindtextdomain(domain, getExtensionLocaleDir());
|
||||||
Gettext.bindtextdomain(domain, getExtensionLocaleDir());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -129,4 +127,4 @@ function playSound(uri) {
|
|||||||
function setCairoColorFromClutter(cr, c) {
|
function setCairoColorFromClutter(cr, c) {
|
||||||
let s = 1.0 / 255;
|
let s = 1.0 / 255;
|
||||||
cr.setSourceRGBA(s * c.red, s * c.green, s * c.blue, s * c.alpha);
|
cr.setSourceRGBA(s * c.red, s * c.green, s * c.blue, s * c.alpha);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user