[MonoDevelop] UML CanvasItem

Rodehueser, Joerg joerg.rodehueser@sesa.de
Fri, 25 Mar 2005 17:44:39 +0100


This is a multi-part message in MIME format.

------_=_NextPart_001_01C53159.EFA83051
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All,
=20
I want to write a UML plug-in for MD. I startet to look at the gnome =
libs and I found
the gnome canvas and its item. The samples work fine but for my goal I =
have to
create a new item. As I tried to derive from the CanvasItem the class =
does not work.
I than copy the genereted code from CanvasLine and called it =
CanvasLine2.=20
Everythings works fine until i changed the GType property to a local =
copy:
=20
...
    static GLib.GType gtype;
         =20
     public static new GLib.GType GType
     {
          get
          {
               if (gtype =3D=3D GLib.GType.Invalid)
                    gtype =3D RegisterGType (typeof (CanvasLine2));
               return gtype;
          }
     }=20
=20
I get than warnings that the gtype '0' is unknown.
Can someone give me a hint?
=20
Ok ... as you can see I'm new to Gtk developping but I start right now.
=20
thanks and happy eastern
=20
J=F6rg

________________________________

Von: monodevelop-list-admin@lists.ximian.com im Auftrag von Alessandro =
Lendaro
Gesendet: Do 24.03.2005 22:59
An: Zac Bowling
Cc: monodevelop-list@lists.ximian.com
Betreff: Re: [MonoDevelop] Compiling gtksourceview-sharp 0.7 for =
MonoDevelop 0.6 on OSX



Zac Bowling wrote:

>I would venture a guess that a variable that is supposed to be be set
>for your gapi tool name isn't be set (I believe its calling gapi2-fixup
>or something like that). Some recent configure file changes may have
>caused that error but usually in my experience that isn't the issue.
>
>It would be good to know if running gapi2-fixup from that same shell
>causes any errors when you run it manually.
>=20
>
Yeah, it definitely has to do with gapi2

the latest part of configure is in fact:

checking for gapi2-fixup... no
checking for gapi2-fixup.exe...
checking for gapi2-codegen... no
checking for gapi2_codegen.exe...
checking for monodoc >=3D 1.0... yes
checking MONODOC_DEPENDENCY_CFLAGS...
checking MONODOC_DEPENDENCY_LIBS...
/r:/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/gtk-sharp=
/monodoc.dll=20

checking for monodoc... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gtksourceview/AssemblyInfo.cs
config.status: creating gtksourceview/gtksourceview-sharp.dll.config
config.status: creating gtksourceview/Makefile
config.status: creating gtksourceview-sharp-2.0.pc
config.status: creating doc/Makefile
config.status: creating sample/Makefile
config.status: executing depfiles comman

and by the way, setting ACLOCAL_FLAGS didn't change nothing

--
=FE=FF

_______________________________________________
Monodevelop-list mailing list
Monodevelop-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-list



------_=_NextPart_001_01C53159.EFA83051
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">=0A=
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">=0A=
<HTML>=0A=
<HEAD>=0A=
=0A=
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7226.0">=0A=
<TITLE>Re: [MonoDevelop] Compiling gtksourceview-sharp 0.7 for	=
MonoDevelop 0.6 on OSX</TITLE>=0A=
</HEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText12295 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>Hi =
All,</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>I want to write a UML plug-in =
for MD. I =0A=
startet to look at the gnome libs and I found</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>the gnome canvas and its =
item. The samples =0A=
work fine but for my goal I have to</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>create a new item. As I tried =
to derive =0A=
from the CanvasItem the class does not work.</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>I than copy the genereted =
code from =0A=
CanvasLine and called it CanvasLine2. </FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>Everythings works fine until =
i changed the =0A=
GType property to a local copy:</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV dir=3Dltr><FONT face=3DArial size=3D2>...</FONT></DIV>=0A=
<DIV dir=3Dltr><FONT size=3D2><!--StartFragment --><FONT =
size=3D3>&nbsp;</FONT><FONT =0A=
size=3D-1>&nbsp;&nbsp;&nbsp;<FONT =0A=
color=3Dblue>static</FONT>&nbsp;GLib.GType&nbsp;gtype;<BR>&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;<FONT =0A=
color=3Dblue>public</FONT>&nbsp;<FONT =
color=3Dblue>static</FONT>&nbsp;<FONT =0A=
color=3Dblue>new</FONT>&nbsp;GLib.GType&nbsp;GType<BR>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;get<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<B=
R>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;<FONT =0A=
color=3Dblue>if</FONT>&nbsp;(gtype&nbsp;=3D=3D&nbsp;GLib.GType.Invalid)<B=
R>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gtype&nbsp;=3D&nbsp;Regi=
sterGType&nbsp;(<FONT =0A=
color=3Dblue>typeof</FONT>&nbsp;(CanvasLine2));<BR>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT=
 =0A=
color=3Dblue>return</FONT>&nbsp;gtype;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</FONT><=
FONT =0A=
size=3D3> </FONT></FONT></DIV>=0A=
<DIV dir=3Dltr>&nbsp;</DIV>=0A=
<DIV dir=3Dltr>I get than warnings that the gtype '0' is unknown.</DIV>=0A=
<DIV dir=3Dltr>Can someone give me a hint?</DIV>=0A=
<DIV dir=3Dltr>&nbsp;</DIV>=0A=
<DIV dir=3Dltr>Ok ... as you can see I'm new to Gtk developping but I =
start right =0A=
now.</DIV>=0A=
<DIV dir=3Dltr>&nbsp;</DIV>=0A=
<DIV dir=3Dltr>thanks and happy eastern</DIV>=0A=
<DIV dir=3Dltr>&nbsp;</DIV>=0A=
<DIV dir=3Dltr>J=F6rg</DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>Von:</B> =
monodevelop-list-admin@lists.ximian.com im =0A=
Auftrag von Alessandro Lendaro<BR><B>Gesendet:</B> Do 24.03.2005 =0A=
22:59<BR><B>An:</B> Zac Bowling<BR><B>Cc:</B> =0A=
monodevelop-list@lists.ximian.com<BR><B>Betreff:</B> Re: [MonoDevelop] =
Compiling =0A=
gtksourceview-sharp 0.7 for MonoDevelop 0.6 on OSX<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>Zac Bowling wrote:<BR><BR>&gt;I would venture a guess =
that a =0A=
variable that is supposed to be be set<BR>&gt;for your gapi tool name =
isn't be =0A=
set (I believe its calling gapi2-fixup<BR>&gt;or something like that). =
Some =0A=
recent configure file changes may have<BR>&gt;caused that error but =
usually in =0A=
my experience that isn't the issue.<BR>&gt;<BR>&gt;It would be good to =
know if =0A=
running gapi2-fixup from that same shell<BR>&gt;causes any errors when =
you run =0A=
it manually.<BR>&gt;&nbsp;<BR>&gt;<BR>Yeah, it definitely has to do with =0A=
gapi2<BR><BR>the latest part of configure is in fact:<BR><BR>checking =
for =0A=
gapi2-fixup... no<BR>checking for gapi2-fixup.exe...<BR>checking for =0A=
gapi2-codegen... no<BR>checking for gapi2_codegen.exe...<BR>checking for =
monodoc =0A=
&gt;=3D 1.0... yes<BR>checking MONODOC_DEPENDENCY_CFLAGS...<BR>checking =0A=
MONODOC_DEPENDENCY_LIBS...<BR>/r:/Library/Frameworks/Mono.framework/Versi=
ons/Current/lib/mono/gtk-sharp/monodoc.dll&nbsp;<BR><BR>checking =0A=
for monodoc... no<BR>configure: creating =
./config.status<BR>config.status: =0A=
creating Makefile<BR>config.status: creating =0A=
gtksourceview/AssemblyInfo.cs<BR>config.status: creating =0A=
gtksourceview/gtksourceview-sharp.dll.config<BR>config.status: creating =0A=
gtksourceview/Makefile<BR>config.status: creating =0A=
gtksourceview-sharp-2.0.pc<BR>config.status: creating =0A=
doc/Makefile<BR>config.status: creating =
sample/Makefile<BR>config.status: =0A=
executing depfiles comman<BR><BR>and by the way, setting ACLOCAL_FLAGS =
didn't =0A=
change =0A=
nothing<BR><BR>--<BR>=FE=FF<BR><BR>______________________________________=
_________<BR>Monodevelop-list =0A=
mailing list<BR>Monodevelop-list@lists.ximian.com<BR><A =0A=
href=3D"http://lists.ximian.com/mailman/listinfo/monodevelop-list">http:/=
/lists.ximian.com/mailman/listinfo/monodevelop-list</A><BR></FONT></P></D=
IV>=0A=
=0A=
</BODY>=0A=
</HTML>
------_=_NextPart_001_01C53159.EFA83051--