~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to plasma/desktop/shell/data/layouts/00-defaultLayout.js

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
loadTemplate("org.kde.plasma-desktop.defaultPanel")
 
2
 
 
3
for (var i = 0; i < screenCount; ++i) {
 
4
    var desktop = new Activity
 
5
    desktop.name = i18n("Desktop")
 
6
    desktop.screen = i
 
7
    desktop.wallpaperPlugin = 'image'
 
8
    desktop.wallpaperMode = 'SingleImage'
 
9
 
 
10
    //Create more panels for other screens
 
11
    if (i > 0){
 
12
        var panel = new Panel
 
13
        panel.screen = i
 
14
        panel.location = 'bottom'
 
15
        panel.height = panels()[i].height = screenGeometry(0).height > 1024 ? 35 : 27
 
16
        var tasks = panel.addWidget("tasks")
 
17
        tasks.writeConfig("showOnlyCurrentScreen", true);
 
18
    }
 
19
}