From: SourceForge.net <no...@so...> - 2006-12-21 14:20:56
|
Bugs item #1620156, was opened at 2006-12-21 06:20 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=470969&aid=1620156&group_id=53614 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Gdk::Drawable#set_colormap() does not work Initial Comment: debian sid ruby 1.8.5 ruby-gtk2 0.15.0 ########################## require 'gtk2' window = Gtk::Window.new window.show p window.colormap pixmap = Gdk::Pixmap.new(window.window, 10, 10, -1) p pixmap p pixmap.colormap pixmap.set_colormap(window.colormap) ########################## $ ruby a.rb #<Gdk::Colormap:0xb6a52f24 ptr=0x808aa40> #<Gdk::Pixmap:0xb6a52dd0 ptr=0x8094c08> #<Gdk::Colormap:0xb6a52f24 ptr=0x808aa40> a.rb: line 3 GLib-GObject-WARNING **:invalid cast from `GdkPixmap' to `GdkColormap' a.rb:13: [BUG] Segmentation fault ruby 1.8.5 (2006-08-25) [i486-linux] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=470969&aid=1620156&group_id=53614 |