~mterry/ubuntu/natty/gnome-shell/wip

« back to all changes in this revision

Viewing changes to tests/testcommon/ui.js

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-10-12 22:44:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091012224400-k91p42yvou07i525
Tags: 2.28.0-0ubuntu1
* New upstream version
* debian/control:
  - updated build requirement
* debian/patches/80_git_change_fix_alt_tab_ressource_usage.patch:
  - git change to fix ressources not being freed on alt-tab

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
 
2
 
 
3
const Clutter = imports.gi.Clutter;
 
4
const GLib = imports.gi.GLib;
 
5
const St = imports.gi.St;
 
6
const Shell = imports.gi.Shell;
 
7
 
 
8
const Environment = imports.ui.environment;
 
9
 
 
10
function init() {
 
11
    Clutter.init(null, null);
 
12
    Environment.init();
 
13
 
 
14
    let stage = Clutter.Stage.get_default();
 
15
    let context = St.ThemeContext.get_for_stage (stage);
 
16
    let stylesheetPath = GLib.getenv("GNOME_SHELL_TESTSDIR") + "/testcommon/test.css";
 
17
    let theme = new St.Theme ({ application_stylesheet: stylesheetPath });
 
18
    context.set_theme (theme);
 
19
}