[Mono-bugs] [Bug 50820][Maj] Changed - mcs allows incorrect protected access

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 28 May 2004 09:42:13 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=50820

--- shadow/50820	2004-05-28 09:34:07.000000000 -0400
+++ shadow/50820.tmp.12333	2004-05-28 09:42:13.000000000 -0400
@@ -10,12 +10,13 @@
 Component: C#
 AssignedTo: rharinath@novell.com                            
 ReportedBy: gonzalo@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: V1
 URL: 
+Cc: bmaurer@users.sf.net,mkestner@ximian.com
 Summary: mcs allows incorrect protected access
 
 Compile to a dll:
 ----
 class A
 {
@@ -120,6 +121,24 @@
 `Gtk.Settings'; the qualifier must be of type `Monodoc.BigList' (or
 derived from it)
 
 The only option seems to be making Glib.Object.GetProperty a public
 method.
 
+
+------- Additional Comments From bmaurer@users.sf.net  2004-05-28 09:42 -------
+Mike, I am CCing you because this needs Gtk# fixage.
+
+It seems like the underlying issue is that there needs to be a clean 
+api for what we are doing:
+
+GLib.Value val = Settings.GetProperty ("gtk-double-click-time");
+int double_click_time = (int) val;
+val.Dispose ();
+
+That is exactly the kind of code that should *not* be showing up in 
+consumers' apps.
+
+Also, Raja has a point about making GetProperty public. I am not sure 
+what I think of it.
+
+Raja: thanks for the work you are doing.