[MonoDevelop] Problem with 2.2 beta

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Nov 28 15:24:43 EST 2009


On Fri, Nov 20, 2009 at 2:51 AM, Vadim Chekan <kot.begemot at gmail.com> wrote:
> I'm running current (from svn) version of MD and experienced that bug
> too. One of my components stopped showing "design" mode. So I deleted
> it, and created a new one, with the same name. It looked fine in
> designer but C# code did not contain any buttons I put into re-created
> control.
> Finally I discovered that I have 2 entries for this control in .stetic file:
>
>  <widget class="Gtk.Bin" id="UI.XmppAccount" design-size="337 347">
>    <property name="MemberName" />
>    <property name="Visible">False</property>
>    <child>
> ... all children are here
>    </child>
>  </widget>
>  <widget class="Gtk.Bin" id="UI.XmppAccount" design-size="300 300">
> ... no children declared here
>  </widget>
>
> Notice that  id="UI.XmppAccount" is the same for both widgets.
> So looks like designer picked up the first entry because it showed
> control properly, and code generator the last one because my C# code
> contained no members.
>
> Perhaps stetic (and designer) should validate ID uniqueness?

That sounds reasonable. I've seen widgets get duplicated in the
.stetic files a few times, and that would be a good sanity check. Can
you file a bug?

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list