updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / sugar / fix_missing_default_layout.patch
blobeff9ddf6b7d2e4abf1f4025ccc6aef0952e280ee
1 diff -crB sugar-0.92.3-orig/src/jarabe/desktop/favoritesview.py sugar-0.92.3/src/jarabe/desktop/favoritesview.py
2 *** sugar-0.92.3-orig/src/jarabe/desktop/favoritesview.py 2011-05-25 15:15:33.000000000 +0200
3 --- sugar-0.92.3/src/jarabe/desktop/favoritesview.py 2011-07-13 17:24:00.000000000 +0200
4 ***************
5 *** 665,675 ****
6 self.changed = dispatch.Signal()
8 def get_layout(self):
9 return self._layout
11 def set_layout(self, layout):
12 logging.debug('set_layout %r %r', layout, self._layout)
13 ! if layout != self._layout:
14 self._layout = layout
16 client = gconf.client_get_default()
17 --- 665,677 ----
18 self.changed = dispatch.Signal()
20 def get_layout(self):
21 + if self._layout == None:
22 + self._layout = favoriteslayout.RingLayout.key
23 return self._layout
25 def set_layout(self, layout):
26 logging.debug('set_layout %r %r', layout, self._layout)
27 ! if layout != self._layout and layout != None:
28 self._layout = layout
30 client = gconf.client_get_default()