~facundo/magicicada-gui/listen-progress-signals

« back to all changes in this revision

Viewing changes to magicicada/gui/gtk/helpers.py

  • Committer: Natalia B. Bidart
  • Date: 2012-02-23 00:57:52 UTC
  • mfrom: (121.3.12 better-status-info)
  • Revision ID: natalia.bidart@canonical.com-20120223005752-oud3463ras5g1ars
Tags: release-0.4.2
- Redesigned status bar so the status info is shown in a clearer and simpler way
  (LP: #818217).

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    return builder
43
43
 
44
44
 
 
45
def build_icon_dict(image_size):
 
46
    """Return a dict with icons for 'image_size'."""
 
47
    result = {}
 
48
 
 
49
    for style in ('idle', 'working', 'alert'):
 
50
        fname = get_data_file('media', 'icon-%s-%s.png' % (style, image_size))
 
51
        result[style] = gtk.gdk.pixbuf_new_from_file(fname)
 
52
 
 
53
    return result
 
54
 
 
55
 
45
56
class Buildable(object):
46
57
    """A buildable object from an .ui file."""
47
58