extension info's
- From: johnny cravatta <sitiwebxtutti gmail com>
- To: gnome-shell-list gnome org
- Subject: extension info's
- Date: Mon, 25 Jun 2012 15:31:35 +0200
Sorry for my incompetence;
why this code it's not functional in gnome-shell 3.4.1?
const Mainloop = imports.mainloop;
const Main = imports.ui.main;
function _showHello() {
let text = new St.Label({ style_class: 'helloworld-label', text: "Hello, world!" });
let monitor = global.get_primary_monitor();
global.stage.add_actor(text);
text.set_position(Math.floor (monitor.width / 2 - text.width / 2),
Math.floor(monitor.height / 2 - text.height / 2));
Mainloop.timeout_add(3000, function () { text.destroy(); });
}
function main() {
Main.panel.actor.reactive = true;
Main.panel.actor.connect('button-release-event', _showHello);
}
I cannot be able to make the same results described in the fpmurphy blog..
thanks for any suggestions.
johnny
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]