Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Char.py
diff options
context:
space:
mode:
Diffstat (limited to 'Char.py')
-rw-r--r--Char.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/Char.py b/Char.py
index a6efb6f..c00b4ce 100644
--- a/Char.py
+++ b/Char.py
@@ -20,7 +20,7 @@ class Char:
id = 0
pixbuf = None #gtk.gdk.Pixbuf()
-def list():
+def themes():
return [Char()]
@@ -105,5 +105,19 @@ def list():
entrypath = os.path.join(TMPDIR,entry)
os.remove(entrypath)
+def prepare_btn(btn, w=-1, h=-1):
+ for state, color in COLOR_BG_BUTTONS:
+ btn.modify_bg(state, gtk.gdk.color_parse(color))
+ c = btn.get_child()
+ if c is not None:
+ for state, color in COLOR_FG_BUTTONS:
+ c.modify_fg(state, gtk.gdk.color_parse(color))
+ else:
+ for state, color in COLOR_FG_BUTTONS:
+ btn.modify_fg(state, gtk.gdk.color_parse(color))
+ if w>0 or h>0:
+ btn.set_size_request(w, h)
+ return btn
+
"""