[Gtk-sharp-list] Problem with Gnome.About

Sergio Paracuellos par@dragon-lance.net
Thu, 21 Oct 2004 17:03:05 +0200


--=-WkqyiMraW52bg/AghN81
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Ok, Now I have the image :)

Thank you very much.

About the warning

(<unknown>:8665): Gtk-WARNING **: Invalid input string

Do you know something?

Thanks, again :)

Sergio
>=20
>  --- Sergio Paracuellos <par@dragon-lance.net>
> escreveu:=20
> > Hi!
> >=20
> > Here you are!
> >=20
> > * Call of the About:
> >=20
> >  private void OnAboutClicked (object o, EventArgs
> > args) {
> >  	AboutWindow about =3D new AboutWindow();
> >         about.ShowAbout();
> >  }
> >=20
> >=20
> > * AboutWindow.cs=20
> >=20
> > using System;
> > using Gtk;
> > using Gnome;
> >=20
> > namespace gorganizer {
> >=20
> >         /* About dialog of Gnome class */
> >         class AboutWindow {
> >             private Gnome.About about;
> >             private const string VERSION =3D "0.1";
> >=20
> >             //Constructor
> >             public AboutWindow () {
> >                 Init();
> >             }
> >=20
> >             /* init the About dialog from glade file
> > */
> >             private void Init () {
> >                 string [] authors =3D new string [] {
> >                     "Pablo Gil Torres
> > <lakesis@rastafurbi.org>",
> >                         "Guillermo Latorre Zapatero
> > <superwillyfoc@rastafurbi.org>",
> >                         "Sergio Paracuellos
> > Guti=E9rrez
> > <sergio@rastafurbi.org>",};
> >                 string [] documenters =3D new string
> > [] {
> >                     "Pablo Gil Torres
> > <lakesis@rastafurbi.org>",
> >                         "Guillermo Latorre Zapatero
> > <superwillyfoc@rastafurbi.org>",
> >                         "Sergio Paracuellos
> > Guti=E9rrez
> > <sergio@rastafurbi.org>",};
> >                 Gdk.Pixbuf pixbuf =3D new
> > Gdk.Pixbuf("avispa.png");
> >                 about =3D new Gnome.About
> > ("Gorganizer", VERSION,
> >                                                   =20
> > "(Copyleft)   2004,
> > rastafurbi.org",
> > "Free TimeTable Application",
> > authors,documenters,null,pixbuf);
> > }
> >=20
> >             /* shows the dialog */
> >         public void ShowAbout () {
> > 		about.ShowAll();
> > 	}
> >=20
> > * Makefile.am:
> >=20
> > CSSOURCES =3D Subject.cs Hours.cs TimeTable.cs
> > IMyList.cs SubjectList.cs
> > Cell.cs SubjectArea.cs XmlData.cs SelectSubject.cs
> > DeleteSubjectWindow.cs DialogObject.cs
> > ModifySubjectWindow.cs
> > EditSubjectWindow.cs MainWindow.cs AboutWindow.cs
> > AddSubjectWindow.cs
> > MainTable.cs Gorganizer.cs
> >=20
> > REFERECES =3D -pkg:gtk-sharp -pkg:glade-sharp
> > -pkg:gnome-sharp
> > -r:Mono.GetOptions
> >=20
> > RESOURCES =3D
> > /resource:../glade/MainWindow.glade,MainWindow.glade
> > \
> >           =20
> > /resource:../glade/about.glade,about.glade \
> >           =20
> > /resource:../glade/addSubject.glade,addSubject.glade
> > \
> >           =20
> >
> /resource:../glade/deleteSubject.glade,deleteSubject.glade
> > \
> >           =20
> > /resource:../images/timetable.png,timetable.png \
> >           =20
> > /resource:../images/avispa.png,avispa.png
> >=20
> >=20
> > all: Gorganizer.exe
> >=20
> > Gorganizer.exe: $(CSSOURCES)
> >         mcs $(CSSOURCES) -o $(@) -target:exe
> > $(REFERECES) $(RESOURCES)
> >=20
> > gorganizerdir =3D $(prefix)/lib/
> > gorganizer_DATA =3D Gorganizer.exe
> >=20
> > bin_SCRIPTS =3D Gorganizer.exe
> >=20
> > CLEANFILES =3D *.exe Gorganizer.exe
> >=20
> >=20
> > El jue, 21-10-2004 a las 11:18 -0300, Everaldo
> > Canuto escribi=F3:
> > > Hi Sergio,
> > >=20
> > > Please send your source code.
> > >=20
> > > Everaldo.
> > >=20
> > >  --- Sergio Paracuellos <par@dragon-lance.net>
> > > escreveu:=20
> > > > Hi!
> > > >=20
> > > > I'm having problems with Gnome.About widget in
> > two
> > > > ways:
> > > >=20
> > > > 1) When I run the dialog I get the following
> > > > warning:
> > > >=20
> > > > 	(<unknown>:8665): Gtk-WARNING **: Invalid input
> > > > string
> > > >=20
> > > > 	and I can't see the star and label in "credits"
> > > > button.
> > > >=20
> > > > 2) I can't set up a image Pixbuf if I don't put
> > the
> > > > full path, but if I
> > > > put a recources section in Makefile like this:
> > > >=20
> > > > RESOURCES =3D
> > > >
> > /resource:../glade/MainWindow.glade,MainWindow.glade
> > > > \
> > > >           =20
> > > > /resource:../glade/about.glade,about.glade \
> > > >           =20
> > > >
> > /resource:../glade/addSubject.glade,addSubject.glade
> > > > \
> > > >           =20
> > > >
> > >
> >
> /resource:../glade/deleteSubject.glade,deleteSubject.glade
> > > > \
> > > >           =20
> > > > /resource:../images/timetable.png,timetable.png
> > \
> > > >           =20
> > > > /resource:../images/avispa.png,avispa.png
> > > >=20
> > > > 	the name "avispa.png" if I create the Pixbuf
> > should
> > > > be find in the .exe
> > > > file, but it doesn't and the application close
> > with
> > > > a "no such file or
> > > > directory" error.
> > > >=20
> > > > Has anybody have any idea of what happends?
> > > >=20
> > > > With the other image and .glade files I haven't
> > any
> > > > problem if I don't
> > > > put the full path.
> > > >=20
> > > > Thanks!
> > > >=20
> > > > Cheers,
> > > > =09
> > > > 	Sergio
> > > >=20
> > > >=20
> > >=20
> > > > ATTACHMENT part 2 application/pgp-signature
> > > name=3Dsignature.asc
> > > =20
> > >=20
> > >=20
> > > =09
> > > =09
> > > 	=09
> > >
> >
> _______________________________________________________
> >=20
> > > Yahoo! Acesso Gr=E1tis - Internet r=E1pida e gr=E1tis.
> > Instale o discador agora!
> > http://br.acesso.yahoo.com/
> >=20
> =3D=3D=3D message truncated =3D=3D=3D
>=20
> > ATTACHMENT part 2 application/pgp-signature
> name=3Dsignature.asc
> =20
>=20
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around=20
> http://mail.yahoo.com=20
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

--=-WkqyiMraW52bg/AghN81
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBd8+pi0GPOekbrtERAqquAJ9zUoYTkMmCaiRrshKhzY/HmaDBqgCeM5GY
P9WZgJ02I1+tSl8ShqsAhlo=
=ur/g
-----END PGP SIGNATURE-----

--=-WkqyiMraW52bg/AghN81--