[Gtk-sharp-list] Some problem with IconSize enum

Peter Williams peter@newton.cx
Sat, 15 May 2004 18:13:22 -0400


--=-WADSqGQ7ntckA111Fn+O
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi,

I'm having some kind of problem with setting enum values in HEAD
gtk-sharp. When I run the attached program, I get:

[peter@beta mid3]$ mono test.exe

(<unknown>:26969): GLib-GObject-CRITICAL **: file genums.c: line 394
(g_value_set_enum): assertion `G_VALUE_HOLDS_ENUM (value)' failed

(<unknown>:26969): GLib-GObject-CRITICAL **: file genums.c: line 402
(g_value_get_enum): assertion `G_VALUE_HOLDS_ENUM (value)' failed
Invalid, Menu

Not sure what to make of that, but I suspect it's some kind of simple
problem in the enum handling code. Any ideas?

Peter

-- 
Peter Williams                          peter@newton.cx

"[Ninjas] are cool; and by cool, I mean totally sweet."
                              -- REAL Ultimate Power

--=-WADSqGQ7ntckA111Fn+O
Content-Disposition: attachment; filename=test.cs
Content-Type: text/x-csharp; name=test.cs; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

// compile: mcs /pkg:gtk-sharp test.cs

using System;
using Gtk;
using GtkSharp;

public class Tester {
	public static int Main(string[] args) {
		Application.Init ();

		CellRendererPixbuf p = new CellRendererPixbuf ();
		p.StockSize = IconSize.Menu;
		Console.WriteLine ("{0}, {1}", p.StockSize, IconSize.Menu);

		return 0;
	}
}


--=-WADSqGQ7ntckA111Fn+O--