~davidc3/onehundredscopes/photo

« back to all changes in this revision

Viewing changes to src/unity-lens-photo

  • Committer: David Callé
  • Date: 2012-01-04 16:41:54 UTC
  • Revision ID: davidc@framli.eu-20120104164154-2mmsylw6ncq5vgom
First iteration for the "time of the day" filter

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
                
61
61
                # Populate filters
62
62
                filters = []
63
 
#               f = Unity.RadioOptionFilter.new ("photo_categories", "Assets", Gio.ThemedIcon.new("input-keyboard-symbolic"), False)
64
 
#               f.add_option ("palettes", "Palettes", None)
65
 
#               f.add_option ("icons", "Icons", None)
66
 
#               f.add_option ("brushes", "Brushes", None)
67
 
#               f.add_option ("designs", "Designs", None)
68
 
#               filters.append (f)
 
63
                f = Unity.MultiRangeFilter.new ("time", "Time of the day", Gio.ThemedIcon.new("input-keyboard-symbolic"), False)
 
64
                f.add_option ("1", "Morning", None)
 
65
                f.add_option ("2", "Afternoon", None)
 
66
                f.add_option ("4", "Night", None)
 
67
                filters.append (f)
69
68
                self._lens.props.filters = filters
70
69
 
71
70
                self._lens.export ();