Bug 14930 - Setting colormap property of a Drawable object doesn't work
Summary: Setting colormap property of a Drawable object doesn't work
Status: NEW
Alias: None
Product: Gtk#
Classification: Mono
Component: gtk-sharp ()
Version: 2.x
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-09-23 11:49 UTC by tichomir_mitkov
Modified: 2013-09-23 12:10 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 14930 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description tichomir_mitkov 2013-09-23 11:49:55 UTC
  Attempting to assign a value to Gdk.Pixmap.Colormap always silently fail

Steps to reproduce: 

		Gdk.Pixmap pix = new Gdk.Pixmap(this.GdkWindow, 320, 240, 0);

		pix.Colormap = new Gdk.Colormap(Gdk.Visual.Best, true); //or any other source of Colormap

Actual Results: 
  pix.Colormap is always null, regardless of the result of the right hand expression. However no error is generated and no exception is thrown

Expected Results:
  pix.Colormap should accept the value of the right hand expression

Build Date & Platform:
	Mono 3.2.1 (tarball Fri Sep 13 22:04:12 UTC 2013) (64-bit)
	GTK 2.24.20
	GTK# (

Additional Information:
  I know that internally mono calls `gdk_drawable_set_colormap()` when Gdk.Pixmap.Colormap is accessed. But it is not
  expossed to GTK# to call it explicetly. However running my app with "mono --trace" shows that the routine is actually called:
[0x7faec1d05780: 0.14662 4] ENTER: (wrapper managed-to-native) Gdk.Drawable:gdk_drawable_set_colormap (intptr,intptr)(0x7faea4006cf0, 0x2b84d90, )
[0x7faec1d05780: 0.14674 4] LEAVE: (wrapper managed-to-native) Gdk.Drawable:gdk_drawable_set_colormap (intptr,intptr)
It appears that it is a bug inside that routine
Comment 1 tichomir_mitkov 2013-09-23 12:10:42 UTC
False positive. Color depth mismatching of the drawables caused it. It's not a bug.