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

Sergio Paracuellos par@dragon-lance.net
Thu, 21 Oct 2004 16:27:20 +0200


--=-EZzOGEqGHwgCcw+8o3Yk
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi!

Here you are!

* Call of the About:

 private void OnAboutClicked (object o, EventArgs args) {
 	AboutWindow about =3D new AboutWindow();
        about.ShowAbout();
 }


* AboutWindow.cs=20

using System;
using Gtk;
using Gnome;

namespace gorganizer {

        /* About dialog of Gnome class */
        class AboutWindow {
            private Gnome.About about;
            private const string VERSION =3D "0.1";

            //Constructor
            public AboutWindow () {
                Init();
            }

            /* 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,
                                                    "(Copyleft)   2004,
rastafurbi.org",
"Free TimeTable Application",
authors,documenters,null,pixbuf);
}

            /* shows the dialog */
        public void ShowAbout () {
		about.ShowAll();
	}

* Makefile.am:

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

REFERECES =3D -pkg:gtk-sharp -pkg:glade-sharp -pkg:gnome-sharp
-r:Mono.GetOptions

RESOURCES =3D /resource:../glade/MainWindow.glade,MainWindow.glade \
            /resource:../glade/about.glade,about.glade \
            /resource:../glade/addSubject.glade,addSubject.glade \
            /resource:../glade/deleteSubject.glade,deleteSubject.glade \
            /resource:../images/timetable.png,timetable.png \
            /resource:../images/avispa.png,avispa.png


all: Gorganizer.exe

Gorganizer.exe: $(CSSOURCES)
        mcs $(CSSOURCES) -o $(@) -target:exe $(REFERECES) $(RESOURCES)

gorganizerdir =3D $(prefix)/lib/
gorganizer_DATA =3D Gorganizer.exe

bin_SCRIPTS =3D Gorganizer.exe

CLEANFILES =3D *.exe Gorganizer.exe


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/
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

--=-EZzOGEqGHwgCcw+8o3Yk
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)

iD8DBQBBd8dIi0GPOekbrtERAgNqAJ97tZViI3Y9vb6hHGxBkv0VqhigZQCfRUyL
FdvhlGEvmTOGHxYDTlqXlTw=
=I8g9
-----END PGP SIGNATURE-----

--=-EZzOGEqGHwgCcw+8o3Yk--