~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to greeters/python-gtk/lightdm-example-python-gtk-greeter

  • Committer: Robert Ancell
  • Date: 2011-05-05 06:11:16 UTC
  • Revision ID: robert.ancell@canonical.com-20110505061116-4nhrdw6k0huve3ek
Move user manager into liblightdm

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
            for user in users:
197
197
                image = user.get_image()
198
198
                pixbuf = None
199
 
                if image != '':
 
199
                if image != None:
200
200
                    path = GLib.filename_from_uri(image)
201
201
                    pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(path, 64, 64, True)
202
202
                model.append((user.get_name(), user.get_display_name(), pixbuf, True))