[Mono-list] tutorial proxy

Gearoid Donnellan Gearoid Donnellan <gearoid.donnellan@gmail.com>
Mon, 23 Aug 2004 20:27:24 +0100


------=_Part_101_10094944.1093289244986
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I recently did the tutorial on the go-mono website for c# and gtk#,
the browser, but I can get the webpage to open up. I am behind a proxy
so I think thats part of the problem. Is there anyway I can tell the
program to use a proxy?
I looked through the Gecko docs and didnt see anything.

I've attached to code in case I've made a mistake in it as well 

Thanks in advance

------=_Part_101_10094944.1093289244986
Content-Type: text/x-csharp; name="Main.cs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="Main.cs"

// project created on 08/18/2004 at 22:28
using System;
using Gtk;
using Glade;
using Gecko;

public class GladeApp
{
=09[Widget] Frame frame1;
        [Widget] Entry entry1;
        WebControl web;
       =20
        public static void Main (string[] args)
        {
                new GladeApp (args);
        }

        public GladeApp (string[] args)=20
        {
                Application.Init();
                Glade.XML gxml =3D new Glade.XML (null, "gui.glade", "windo=
w1", null);
                gxml.Autoconnect (this);
=09=09web =3D new WebControl();
=09=09web.Show();
=09=09frame1.Add(web);
=09=09entry1.Activated +=3D load_url;=20
=09=09Application.Run();
        }

        /* Connect the Signals defined in Glade */
        public void OnWindowDeleteEvent (object o, DeleteEventArgs args)=20
        {
                Application.Quit ();
                args.RetVal =3D true;
        }=20
        void load_url (object source, EventArgs args )
        {
        =09Console.WriteLine("Load URL");
        =09web.LoadUrl(entry1.Text);
        }
        void go_back (object source, EventArgs args )
        {
        =09web.GoBack();
        =09Console.WriteLine("Back");
        }
        void go_forward (object source, EventArgs args )
        {
        =09web.GoForward();
        =09Console.WriteLine("Forward");
        }
}

------=_Part_101_10094944.1093289244986--