[MonoDevelop] Cross-platform GUI application with MonoDevelop

Luciano _ lnc19 at hotmail.com
Wed Jul 2 23:02:56 EDT 2008


Hi All, 
I'm changing the Gtk# Target like you told me (In a previous
message, with the MonoDevelop Gtk# Compilation Support Plugin), but
after some test, i'm having other problem, I'm trying to use Gecko
WebControl within my app (OT: Actually doesn't show anything :) but i
will Investigate a little more latter, it works but it doesn't show the
WebControl, the same happen with the Gecko samples from SVN), and when
i build my solution with  Gtk# 2.8.3 or 2.10.0 target (Both are available
version for Windows) that aren't present at my Ubuntu, it says that
Gtk.Window is defined multiple times , if i target to  2.12 (that is present on my Ubuntu 8.04 version) it succefully compile. The exact accurate error is: "The
imported type `Gtk.Window' is defined multiple times(CS0433)".  (If i 
¿Any clue to solve this?

My Code looks like this:


using Gtk;
using System;
using Gecko;
using Gdk;

public partial class MyWindow:Gtk.Window
{
    public MainWindow (): base (Gtk.WindowType.Toplevel)
    {
        Build ();
        Gecko.WebControl w = new Gecko.WebControl ();
        this.myVBox3.PackStart (w, true, true, 0);
    }
}

Thanks!
Luciano

> Date: Mon, 30 Jun 2008 15:57:16 -0400
> From: m.j.hutchinson at gmail.com
> To: lnc19 at hotmail.com
> Subject: Re: [MonoDevelop] Cross-platform GUI application with MonoDevelop
> CC: monodevelop-list at lists.ximian.com
> 
> On Mon, Jun 30, 2008 at 3:28 PM, Luciano _ <lnc19 at hotmail.com> wrote:
> > Michael:
> >
> >> For your particular problem, an easier fix would be to go to Tools ->
> >> Add-in manager, and install the GTK# 2.8 addin. Chnage the project's
> >> GTK# options to target GTK 2.8, then your binaries should work on
> >> windows directly.
> >
> > Excelent, i didn't know this, i think that this is the best solution right
> > now. It is a present in some repository?
> 
> Assuming you're running MonoDevelop 1.0, it's in the default
> repository registered with MD's  addin manager.
> 
> >
> >> Project -> Export can export to VS slns, and #develop 1.0 format.
> >>
> > I didn't found this, i will look a again.
> >
> >
> > Another question is, there is some chance to get MonoDevelop (last release)
> > in Windows? I try it, the experimental package, and didn't go, i cannot
> > compile by hand and even i cannot use it the default one.
> 
> AFAIK it works in Mono but not the .NET runtime, dues to marshalling
> issues in GTK#. The platform work we did for OS X certainly has helped
> to make it work better on Windows. But we haven't really put any time
> into testing it on Windows.
> 
> -- 
> Michael Hutchinson
> http://mjhutchinson.com

_________________________________________________________________
Send funny voice messages packed with tidbits from MSN. Everyone wants to be ready.
http://www.noonewantstolookdumb.com?OCID=T001MSN54N1613A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20080703/c305564d/attachment.html 


More information about the Monodevelop-list mailing list