#1988 closed bug (Fixed)
TypeError: Gtk.Widget.set_colormap() argument 1 must be gtk.gdk.Colormap, not None
| Reported by: | Vladimir Berezhnoy | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.x |
| Component: | Unknown | Version: | master |
| Keywords: | Cc: |
Description (last modified by )
$ deluge
Xlib: extension "RANDR" missing on display ":1".
Traceback (most recent call last):
File "/usr/bin/deluge", line 9, in <module>
load_entry_point('deluge==1.3.900-dev', 'gui_scripts', 'deluge')()
File "/usr/lib/python2.7/site-packages/deluge/main.py", line 135, in start_ui
UI(options, args, options.args)
File "/usr/lib/python2.7/site-packages/deluge/ui/ui.py", line 148, in __init__
ui = GtkUI(args)
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 205, in __init__
self.torrentdetails = TorrentDetails()
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/torrentdetails.py", line 136, in __init__
self.add_tab(tab(), generate_menu=False)
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/status_tab.py", line 89, in __init__
apply_now=True
File "/usr/lib/python2.7/site-packages/deluge/config.py", line 339, in register_set_function
function(key, self.__config[key])
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/status_tab.py", line 177, in on_show_pieces_bar_config_changed
self.show_pieces_bar(show)
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/status_tab.py", line 189, in show_pieces_bar
self.piecesbar = PiecesBar()
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/piecesbar.py", line 82, in __init__
self.set_colormap(self.get_screen().get_rgba_colormap())
TypeError: Gtk.Widget.set_colormap() argument 1 must be gtk.gdk.Colormap, not None
Change History (7)
comment:1 by , 15 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 15 years ago
| Milestone: | Future → 1.4.0 |
|---|
comment:3 by , 15 years ago
I'm using latest git head, but also tried 7227c97cacd6c3a7a1cf3d75e8dcd04e0eb71693 with same result. I suspect I may be missing some gtk/python modules or their components/build options, but unfortunately google doesn't help me much with finding which ones. My distro is gentoo.
comment:4 by , 15 years ago
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):
comment:6 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Fix committed to master: 04b89491
Note:
See TracTickets
for help on using tickets.



Can you provide a bit more info.