Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-03-14 18:43:53 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-03-14 18:43:53 (GMT)
commitf2dcadaff56142a6072fa1495a07d478bf7fc927 (patch)
tree28613eb3a3b8d5a069172b70bbd99baca5e44eb0 /shell
parent93e9d164c0ada98212a37da2c17bd640261561bb (diff)
Revert "Remove picture selection from intro screen for now"
This reverts commit b97edec4db98c0b01283e5e4ff944ca219dd3733.
Diffstat (limited to 'shell')
-rw-r--r--shell/intro/intro.py28
1 files changed, 11 insertions, 17 deletions
diff --git a/shell/intro/intro.py b/shell/intro/intro.py
index d32810b..cdcc2a3 100644
--- a/shell/intro/intro.py
+++ b/shell/intro/intro.py
@@ -231,10 +231,10 @@ class IntroBox(hippo.CanvasBox, hippo.CanvasItem):
hippo.CanvasBox.__init__(self, **kwargs)
self._pixbuf = None
- #self._video_box = VideoBox(xalign=hippo.ALIGNMENT_CENTER,
- # yalign=hippo.ALIGNMENT_START,
- # padding_bottom=units.grid_to_pixels(0.5))
- #self.append(self._video_box)
+ self._video_box = VideoBox(xalign=hippo.ALIGNMENT_CENTER,
+ yalign=hippo.ALIGNMENT_START,
+ padding_bottom=units.grid_to_pixels(0.5))
+ self.append(self._video_box)
self._entry_box = EntryBox(xalign=hippo.ALIGNMENT_CENTER,
padding_bottom=units.grid_to_pixels(0.5))
@@ -250,21 +250,15 @@ class IntroBox(hippo.CanvasBox, hippo.CanvasItem):
self.append(self._ok)
def _ok_activated(self, item):
- #pixbuf = self._video_box.get_pixbuf()
+ pixbuf = self._video_box.get_pixbuf()
name = self._entry_box.get_text()
color = self._color_box.get_color()
- #if not pixbuf or not name or not color:
- # print "Missing a picture (%r), name (%r), or color (%r)" % (pixbuf, name, color)
- if not name:
- print "Please pick a nickname"
- return
- if not color:
- print "Please pick a color"
+ if not pixbuf or not name or not color:
+ print "not one of pixbuf(%r), name(%r), or color(%r)"
return
- #self.emit('ok', pixbuf, name, color)
- self.emit('ok', None, name, color)
+ self.emit('ok', pixbuf, name, color)
class IntroWindow(gtk.Window):
@@ -292,9 +286,9 @@ class IntroWindow(gtk.Window):
def _create_profile(self, pixbuf, name, color):
# Save the buddy icon
- #icon_path = os.path.join(env.get_profile_path(), "buddy-icon.jpg")
- #scaled = pixbuf.scale_simple(200, 200, gtk.gdk.INTERP_BILINEAR)
- #pixbuf.save(icon_path, "jpeg", {"quality":"85"})
+ icon_path = os.path.join(env.get_profile_path(), "buddy-icon.jpg")
+ scaled = pixbuf.scale_simple(200, 200, gtk.gdk.INTERP_BILINEAR)
+ pixbuf.save(icon_path, "jpeg", {"quality":"85"})
cp = ConfigParser()
section = 'Buddy'