#1988: TypeError: Gtk.Widget.set_colormap() argument 1 must be gtk.gdk.Colormap,
not None
---------------------+------------------------------------------------------
 Reporter:  non7top  |       Owner:            
     Type:  bug      |      Status:  new       
 Priority:  minor    |   Milestone:  1.4.0     
Component:  other    |     Version:  git master
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by Cas):

 Try this:

 {{{
 diff --git a/deluge/ui/gtkui/piecesbar.py b/deluge/ui/gtkui/piecesbar.py
 index 55e7f7c..329d0aa 100644
 --- a/deluge/ui/gtkui/piecesbar.py
 +++ b/deluge/ui/gtkui/piecesbar.py
 @@ -79,7 +79,7 @@ def __init__(self):
          self.__cr = None

          self.connect('size-allocate', self.do_size_allocate_event)
 -        self.set_colormap(self.get_screen().get_rgba_colormap())
 +        self.set_colormap(gtk.gdk.colormap_get_system())
          self.show()

      def do_size_allocate_event(self, widget, size):
 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/1988#comment:4>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to