Files
.settings
browser-plugin
data
docs
js
gdm
misc
perf
ui
status
altTab.js
appDisplay.js
appFavorites.js
automountManager.js
autorunManager.js
boxpointer.js
calendar.js
contactDisplay.js
ctrlAltTab.js
dash.js
dateMenu.js
dnd.js
docDisplay.js
endSessionDialog.js
environment.js
extensionSystem.js
iconGrid.js
keyboard.js
layout.js
lightbox.js
link.js
lookingGlass.js
magnifier.js
magnifierDBus.js
main.js
messageTray.js
modalDialog.js
networkAgent.js
notificationDaemon.js
overview.js
panel.js
panelMenu.js
placeDisplay.js
polkitAuthenticationAgent.js
popupMenu.js
runDialog.js
scripting.js
search.js
searchDisplay.js
shellDBus.js
shellEntry.js
shellMountOperation.js
statusIconDispatcher.js
telepathyClient.js
tweener.js
userMenu.js
viewSelector.js
wanda.js
windowAttentionHandler.js
windowManager.js
workspace.js
workspaceSwitcherPopup.js
workspaceThumbnail.js
workspacesView.js
xdndHandler.js
Makefile.am
man
po
src
tests
tools
.gitignore
.project
AUTHORS
COPYING
MAINTAINERS
Makefile.am
NEWS
README
autogen.sh
configure.ac
gnome-shell.doap
gnome-shell/js/ui/link.js
Giovanni Campagna d6b6f814d3 Port all classes with inheritance to class framework
All classes that have at least one other derived class (and thus
benefit from the framework) have been now ported. These includes
NMDevice, SearchProvider, AltTab.SwitcherList, and some other
stuff around.

https://bugzilla.gnome.org/show_bug.cgi?id=664436
2011-11-24 09:50:04 +01:00

22 lines
666 B
JavaScript

// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Lang = imports.lang;
const Signals = imports.signals;
const St = imports.gi.St;
const Link = new Lang.Class({
Name: 'Link',
_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);