.settings
data
js
misc
perf
prefs
ui
status
altTab.js
appDisplay.js
appFavorites.js
boxpointer.js
calendar.js
chrome.js
dash.js
dnd.js
docDisplay.js
environment.js
extensionSystem.js
genericDisplay.js
iconGrid.js
lightbox.js
link.js
lookingGlass.js
magnifier.js
magnifierDBus.js
main.js
messageTray.js
notificationDaemon.js
overview.js
panel.js
panelMenu.js
placeDisplay.js
popupMenu.js
runDialog.js
scripting.js
search.js
shellDBus.js
statusIconDispatcher.js
statusMenu.js
telepathyClient.js
tweener.js
windowAttentionHandler.js
windowManager.js
workspace.js
workspaceSwitcherPopup.js
workspacesView.js
Makefile.am
man
po
src
tests
tools
.gitignore
.project
AUTHORS
COPYING
MAINTAINERS
Makefile.am
README
autogen.sh
configure.ac
gnome-shell.doap
25 lines
690 B
JavaScript
25 lines
690 B
JavaScript
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
|
|
const Lang = imports.lang;
|
|
const Signals = imports.signals;
|
|
const St = imports.gi.St;
|
|
|
|
function Link(props) {
|
|
this._init(props);
|
|
}
|
|
|
|
Link.prototype = {
|
|
_init : function(props) {
|
|
let realProps = { reactive: true,
|
|
track_hover: true,
|
|
style_class: 'shell-link' };
|
|
// The user can pass in reactive: false to override the above and get
|
|
// a non-reactive link (a link to the current page, perhaps)
|
|
Lang.copyProperties(props, realProps);
|
|
|
|
this.actor = new St.Button(realProps);
|
|
}
|
|
};
|
|
|
|
Signals.addSignalMethods(Link.prototype);
|