[hamster-applet/gnome-2-30] set color depth to 1 for other cases too



commit 6d6c65ef8bf342a7188a7e039dfc14ecddc6d36b
Author: Toms Bauģis <toms baugis gmail com>
Date:   Wed Jul 21 12:23:38 2010 +0100

    set color depth to 1 for other cases too

 src/hamster/widgets/facttree.py |    2 +-
 src/hamster/widgets/tags.py     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/hamster/widgets/facttree.py b/src/hamster/widgets/facttree.py
index 952b6b3..0474bd7 100644
--- a/src/hamster/widgets/facttree.py
+++ b/src/hamster/widgets/facttree.py
@@ -455,7 +455,7 @@ class FactCellRenderer(gtk.GenericCellRenderer):
         if not self.data or "id" not in self.data:
             return None
         fact = self.data
-        pixmap = gtk.gdk.Pixmap(None, 10, 10, 24)
+        pixmap = gtk.gdk.Pixmap(None, 10, 10, 1)
         context = pixmap.cairo_create()
 
         layout = context.create_layout()
diff --git a/src/hamster/widgets/tags.py b/src/hamster/widgets/tags.py
index 60345a9..80d07da 100644
--- a/src/hamster/widgets/tags.py
+++ b/src/hamster/widgets/tags.py
@@ -287,7 +287,7 @@ class TagBox(graphics.Area):
         if not self.tags:
             return None
 
-        pixmap = gtk.gdk.Pixmap(None, width, 500, 24)
+        pixmap = gtk.gdk.Pixmap(None, width, 500, 1)
         context = pixmap.cairo_create()
 
         if not self.layout:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]