r7031 - in bigboard/trunk/bigboard: . stocks/people
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7031 - in bigboard/trunk/bigboard: . stocks/people
- Date: Tue, 11 Dec 2007 17:02:20 -0600 (CST)
Author: hp
Date: 2007-12-11 17:02:20 -0600 (Tue, 11 Dec 2007)
New Revision: 7031
Modified:
bigboard/trunk/bigboard/scroll_ribbon.py
bigboard/trunk/bigboard/stocks/people/PeopleStock.py
Log:
scroll-enable the people stock, needs some fine-tuning...
Modified: bigboard/trunk/bigboard/scroll_ribbon.py
===================================================================
--- bigboard/trunk/bigboard/scroll_ribbon.py 2007-12-11 22:46:13 UTC (rev 7030)
+++ bigboard/trunk/bigboard/scroll_ribbon.py 2007-12-11 23:02:20 UTC (rev 7031)
@@ -2,6 +2,7 @@
import logging
import gobject
+import gtk
import hippo
import layout_utils
@@ -111,7 +112,7 @@
(child_min, child_natural) = box_child.get_height_request(for_width)
self.__content_height = self.__content_height + child_natural
- return (up_min + down_min + MIN_CONTENT_HEIGHT, up_natural + down_natural + MIN_CONTENT_HEIGHT)
+ return (up_min + down_min + MIN_CONTENT_HEIGHT, up_natural + down_natural + max(child_natural,MIN_CONTENT_HEIGHT))
def do_allocate(self, x, y, width, height, requested_width, requested_height, origin_changed):
(up_min, up_natural) = self.__get_height_request(self.__up_button, width)
@@ -207,8 +208,8 @@
def add(self, child):
self.__layout.add(child)
- def set_increment(self, increment):
- self.increment = increment
+ def set_increment(self, inc):
+ self.increment = inc
def do_paint_children(self, cr, damaged_box):
for box_child in self.get_layout_children():
Modified: bigboard/trunk/bigboard/stocks/people/PeopleStock.py
===================================================================
--- bigboard/trunk/bigboard/stocks/people/PeopleStock.py 2007-12-11 22:46:13 UTC (rev 7030)
+++ bigboard/trunk/bigboard/stocks/people/PeopleStock.py 2007-12-11 23:02:20 UTC (rev 7031)
@@ -11,6 +11,7 @@
import bigboard.profile
import bigboard.search as search
import bigboard.libbig as libbig
+import bigboard.scroll_ribbon as scroll_ribbon
import peoplebrowser
from peoplewidgets import PersonItem, ProfileItem
@@ -23,8 +24,12 @@
self.__box = hippo.CanvasBox(orientation=hippo.ORIENTATION_VERTICAL, spacing=3)
+ self.__scroll_box = scroll_ribbon.VerticalScrollArea()
+ self.__scroll_box.set_increment(50)
+ self.__box.append(self.__scroll_box, hippo.PACK_EXPAND)
+
self.__person_box = hippo.CanvasBox(orientation=hippo.ORIENTATION_VERTICAL, spacing=3)
- self.__box.append(self.__person_box)
+ self.__scroll_box.add(self.__person_box)
self.__person_items = {}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]