Difference between revisions of "Features/Multiple home views/Testing"

From Sugar Labs
Jump to navigation Jump to search
m
Line 31: Line 31:
  
 
  gconftool-2 -s /desktop/sugar/desktop/view_icons --type list --list-type string ['view-radial','view-radial']
 
  gconftool-2 -s /desktop/sugar/desktop/view_icons --type list --list-type string ['view-radial','view-radial']
  gconftool-2 -s /desktop/sugar/desktop/view_favorites --type list --list-type string [emblem-favorite','emblem-favorite']
+
  gconftool-2 -s /desktop/sugar/desktop/view_favorites --type list --list-type string ['emblem-favorite','emblem-favorite']
  
 
If you want more than two desktops, add more icons to the lists, e.g., three home views:
 
If you want more than two desktops, add more icons to the lists, e.g., three home views:
  
 
  gconftool-2 -s /desktop/sugar/desktop/view_icons --type list --list-type string ['view-radial','view-radial','view-radial']
 
  gconftool-2 -s /desktop/sugar/desktop/view_icons --type list --list-type string ['view-radial','view-radial','view-radial']
  gconftool-2 -s /desktop/sugar/desktop/view_favorites --type list --list-type string [emblem-favorite','emblem-favorite','emblem-favorite']
+
  gconftool-2 -s /desktop/sugar/desktop/view_favorites --type list --list-type string ['emblem-favorite','emblem-favorite','emblem-favorite']
  
 
And just unset to go back to one homeview:
 
And just unset to go back to one homeview:
  
 
  gconftool-2 -u /desktop/sugar/desktop/view_icons
 
  gconftool-2 -u /desktop/sugar/desktop/view_icons

Revision as of 22:24, 26 September 2013

You need to use gconf settings to enable it.

In desktop/sugar/desktop, you need to add view_icons entries (and optionally, favorite_icons), e.g.:

<?xml version="1.0"?>
<gconf>
<entry name="view_icons" mtime="1375102663" type="list" ltype="string">
<li type="string">
<stringvalue>view-radial</stringvalue>
</li>
<li type="string">
<stringvalue>view-radial</stringvalue>
</li>
</entry>
<entry name="favorite_icons" mtime="1375102663" type="list" ltype="strin
g">
<li type="string">
<stringvalue>emblem-favorite</stringvalue>
</li>
<li type="string">
<stringvalue>emblem-favorite</stringvalue>
</li>
</entry>
</gconf>

This will result in two homeviews, each using the standard view-radial icon on the desktop and the emblem-favorite icon in the list view.

from the cmd line, you can configure it something like this:

gconftool-2 -s /desktop/sugar/desktop/view_icons --type list --list-type string ['view-radial','view-radial']
gconftool-2 -s /desktop/sugar/desktop/view_favorites --type list --list-type string ['emblem-favorite','emblem-favorite']

If you want more than two desktops, add more icons to the lists, e.g., three home views:

gconftool-2 -s /desktop/sugar/desktop/view_icons --type list --list-type string ['view-radial','view-radial','view-radial']
gconftool-2 -s /desktop/sugar/desktop/view_favorites --type list --list-type string ['emblem-favorite','emblem-favorite','emblem-favorite']

And just unset to go back to one homeview:

gconftool-2 -u /desktop/sugar/desktop/view_icons