Complete activity icon set.
Special thanks to Rederick Asher! Fixes #4140.
After Width: | Height: | Size: 830 B |
After Width: | Height: | Size: 842 B |
After Width: | Height: | Size: 1005 B |
After Width: | Height: | Size: 957 B |
After Width: | Height: | Size: 916 B |
After Width: | Height: | Size: 808 B |
After Width: | Height: | Size: 749 B |
After Width: | Height: | Size: 975 B |
After Width: | Height: | Size: 891 B |
After Width: | Height: | Size: 906 B |
After Width: | Height: | Size: 918 B |
After Width: | Height: | Size: 712 B |
After Width: | Height: | Size: 906 B |
After Width: | Height: | Size: 844 B |
After Width: | Height: | Size: 974 B |
After Width: | Height: | Size: 1016 B |
After Width: | Height: | Size: 901 B |
After Width: | Height: | Size: 723 B |
After Width: | Height: | Size: 625 B |
After Width: | Height: | Size: 894 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 854 B |
After Width: | Height: | Size: 900 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 665 B |
After Width: | Height: | Size: 759 B |
After Width: | Height: | Size: 689 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 757 B |
After Width: | Height: | Size: 544 B |
After Width: | Height: | Size: 907 B |
After Width: | Height: | Size: 703 B |
After Width: | Height: | Size: 954 B |
After Width: | Height: | Size: 987 B |
After Width: | Height: | Size: 866 B |
After Width: | Height: | Size: 793 B |
After Width: | Height: | Size: 990 B |
After Width: | Height: | Size: 913 B |
After Width: | Height: | Size: 921 B |
After Width: | Height: | Size: 964 B |
After Width: | Height: | Size: 956 B |
After Width: | Height: | Size: 958 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 955 B |
After Width: | Height: | Size: 792 B |
After Width: | Height: | Size: 651 B |
After Width: | Height: | Size: 865 B |
After Width: | Height: | Size: 868 B |
After Width: | Height: | Size: 948 B |
After Width: | Height: | Size: 965 B |
After Width: | Height: | Size: 696 B |
After Width: | Height: | Size: 897 B |
After Width: | Height: | Size: 773 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 962 B |
After Width: | Height: | Size: 774 B |
After Width: | Height: | Size: 757 B |
After Width: | Height: | Size: 1005 B |
After Width: | Height: | Size: 726 B |
After Width: | Height: | Size: 926 B |
|
@ -358,9 +358,13 @@ class ChangeActivityDialog:
|
|||
else:
|
||||
rbtns[act] = group = gtk.RadioButton()
|
||||
|
||||
hbox = gtk.HBox(False, 5)
|
||||
hbox.pack_start(gtkgui_helpers.load_activity_icon(category),
|
||||
False, False, 0)
|
||||
lbl = gtk.Label('<b>' + pep.ACTIVITIES[category]['category'] + '</b>')
|
||||
lbl.set_use_markup(True)
|
||||
rbtns[act].add(lbl)
|
||||
hbox.pack_start(lbl, False, False, 0)
|
||||
rbtns[act].add(hbox)
|
||||
rbtns[act].connect('toggled', self.on_rbtn_toggled,
|
||||
[category, 'other'])
|
||||
vbox.pack_start(rbtns[act], False, False, 0)
|
||||
|
@ -381,9 +385,14 @@ class ChangeActivityDialog:
|
|||
else:
|
||||
rbtns[act] = group = gtk.RadioButton()
|
||||
|
||||
rbtns[act].set_label(pep.ACTIVITIES[category][activity])
|
||||
hbox = gtk.HBox(False, 5)
|
||||
hbox.pack_start(gtkgui_helpers.load_activity_icon(category,
|
||||
activity), False, False, 0)
|
||||
hbox.pack_start(gtk.Label(pep.ACTIVITIES[category][activity]),
|
||||
False, False, 0)
|
||||
rbtns[act].connect('toggled', self.on_rbtn_toggled,
|
||||
[category, activity])
|
||||
rbtns[act].add(hbox)
|
||||
vbox.pack_start(rbtns[act], False, False, 0)
|
||||
|
||||
rbtns['working_other'].set_active(True)
|
||||
|
|
|
@ -902,13 +902,17 @@ def load_mood_icon(icon_name):
|
|||
icon_list = _load_icon_list([icon_name], path)
|
||||
return icon_list[icon_name]
|
||||
|
||||
def load_activity_icon(activity, sub_activity = None):
|
||||
def load_activity_icon(category, activity = None):
|
||||
'''load an icon from the activity iconset in 16x16'''
|
||||
print category
|
||||
print activity
|
||||
iconset = gajim.config.get('activity_iconset')
|
||||
path = os.path.join(helpers.get_activity_iconset_path(iconset),
|
||||
activity, '')
|
||||
icon_list = _load_icon_list(['category'], path)
|
||||
return icon_list['category']
|
||||
category, '')
|
||||
if activity is None:
|
||||
activity = 'category'
|
||||
icon_list = _load_icon_list([activity], path)
|
||||
return icon_list[activity]
|
||||
|
||||
def load_icons_meta():
|
||||
'''load and return - AND + small icons to put on top left of an icon
|
||||
|
|