change class name to avoid potential conflicts with other extensions

This commit is contained in:
abakkk 2019-03-08 11:37:59 +01:00
parent f65379c8e1
commit 26ae9fd784
3 changed files with 8 additions and 8 deletions

View File

@ -49,7 +49,7 @@ var FontFamilyNames = { 0: 'Default', 1: 'Sans-Serif', 2: 'Serif', 3: 'Monospac
// It creates and manages a DrawingElement for each "brushstroke". // It creates and manages a DrawingElement for each "brushstroke".
// It handles pointer/mouse/(touch?) events and some keyboard events. // It handles pointer/mouse/(touch?) events and some keyboard events.
var DrawingArea = new Lang.Class({ var DrawingArea = new Lang.Class({
Name: 'DrawingArea', Name: 'DrawOnYourScreenDrawingArea',
Extends: St.DrawingArea, Extends: St.DrawingArea,
_init: function(params, monitor, helper) { _init: function(params, monitor, helper) {
@ -551,7 +551,7 @@ Signals.addSignalMethods(DrawingAreaEmitter.prototype);
// It can be converted into a cairo path as well as a svg element. // It can be converted into a cairo path as well as a svg element.
// See DrawingArea._startDrawing() to know its params. // See DrawingArea._startDrawing() to know its params.
var DrawingElement = new Lang.Class({ var DrawingElement = new Lang.Class({
Name: 'DrawingElement', Name: 'DrawOnYourScreenDrawingElement',
_init: function(params) { _init: function(params) {
for (let key in params) for (let key in params)
@ -777,7 +777,7 @@ var MEDIA_KEYS_KEYS = {
// DrawingHelper provides the "help osd" (Ctrl + F1) // DrawingHelper provides the "help osd" (Ctrl + F1)
// It uses the same texts as in prefs // It uses the same texts as in prefs
var DrawingHelper = new Lang.Class({ var DrawingHelper = new Lang.Class({
Name: 'DrawingHelper', Name: 'DrawOnYourScreenDrawingHelper',
Extends: St.ScrollView, Extends: St.ScrollView,
_init: function(params, monitor) { _init: function(params, monitor) {

View File

@ -51,7 +51,7 @@ function disable() {
// distributes keybinding callbacks to the active area // distributes keybinding callbacks to the active area
// and handles stylesheet and monitor changes. // and handles stylesheet and monitor changes.
var AreaManager = new Lang.Class({ var AreaManager = new Lang.Class({
Name: 'AreaManager', Name: 'DrawOnYourScreenAreaManager',
_init: function() { _init: function() {
this.areas = []; this.areas = [];

View File

@ -92,8 +92,8 @@ function buildPrefsWidget() {
} }
const PrefsPage = new GObject.Class({ const PrefsPage = new GObject.Class({
Name: 'PrefsPage', Name: 'DrawOnYourScreenPrefsPage',
GTypeName: 'PrefsPage', GTypeName: 'DrawOnYourScreenPrefsPage',
Extends: Gtk.ScrolledWindow, Extends: Gtk.ScrolledWindow,
_init: function(params) { _init: function(params) {
@ -235,8 +235,8 @@ const PrefsPage = new GObject.Class({
// this code comes from Sticky Notes View by Sam Bull, https://extensions.gnome.org/extension/568/notes/ // this code comes from Sticky Notes View by Sam Bull, https://extensions.gnome.org/extension/568/notes/
const KeybindingsWidget = new GObject.Class({ const KeybindingsWidget = new GObject.Class({
Name: 'Keybindings.Widget', Name: 'DrawOnYourScreenKeybindings.Widget',
GTypeName: 'KeybindingsWidget', GTypeName: 'DrawOnYourScreenKeybindingsWidget',
Extends: Gtk.Box, Extends: Gtk.Box,
_init: function(keybindings, settings) { _init: function(keybindings, settings) {