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 handles pointer/mouse/(touch?) events and some keyboard events.
var DrawingArea = new Lang.Class({
Name: 'DrawingArea',
Name: 'DrawOnYourScreenDrawingArea',
Extends: St.DrawingArea,
_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.
// See DrawingArea._startDrawing() to know its params.
var DrawingElement = new Lang.Class({
Name: 'DrawingElement',
Name: 'DrawOnYourScreenDrawingElement',
_init: function(params) {
for (let key in params)
@ -777,7 +777,7 @@ var MEDIA_KEYS_KEYS = {
// DrawingHelper provides the "help osd" (Ctrl + F1)
// It uses the same texts as in prefs
var DrawingHelper = new Lang.Class({
Name: 'DrawingHelper',
Name: 'DrawOnYourScreenDrawingHelper',
Extends: St.ScrollView,
_init: function(params, monitor) {

View File

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

View File

@ -92,8 +92,8 @@ function buildPrefsWidget() {
}
const PrefsPage = new GObject.Class({
Name: 'PrefsPage',
GTypeName: 'PrefsPage',
Name: 'DrawOnYourScreenPrefsPage',
GTypeName: 'DrawOnYourScreenPrefsPage',
Extends: Gtk.ScrolledWindow,
_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/
const KeybindingsWidget = new GObject.Class({
Name: 'Keybindings.Widget',
GTypeName: 'KeybindingsWidget',
Name: 'DrawOnYourScreenKeybindings.Widget',
GTypeName: 'DrawOnYourScreenKeybindingsWidget',
Extends: Gtk.Box,
_init: function(keybindings, settings) {