Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
GTK.Moonlight
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
breeve  
View profile  
 More options Oct 1 2007, 2:09 pm
From: breeve <brock.re...@gmail.com>
Date: Mon, 01 Oct 2007 18:09:41 -0000
Local: Mon, Oct 1 2007 2:09 pm
Subject: GTK.Moonlight
Hello,

I was playing around with the GTKSilver control to try to host
silverlight (XAML) content on the desktop. I was following the
documentation from here
http://www.go-mono.com/docs/index.aspx?tlink=6@N%3aGtk.Moonlight

I couldn't get it to work and looking at the source in gtk.cs, it
looks like there is an old P-Invoke for xaml_create_from_file. The
args have since changed and it currently fails. I changed the
definition and recompiled GTKSilver and  xaml_create_from_file
succeeded but I get other issues.

I recently tried re-syncing to see if this issue has been fixed. I
built Mono and Olive but cannot build Moon due to the error:

smcs -debug -out:moonlight.exe ./moonlight.cs -pkg:silver -
pkg:agmonosilver
./moonlight.cs(49,22): error CS0234: The type or namespace name `Xaml'
does not exist in the namespace `Mono'. Are you missing an assembly
reference?
Compilation failed: 1 error(s), 0 warnings

Any help getting GTKSilver to work would be appreciated.

Brock


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel de Icaza  
View profile  
 More options Oct 1 2007, 7:41 pm
From: "Miguel de Icaza" <miguel.de.ic...@gmail.com>
Date: Mon, 1 Oct 2007 19:41:28 -0400
Local: Mon, Oct 1 2007 7:41 pm
Subject: Re: GTK.Moonlight

What are you trying to build?

The stuff on SVN seems to work, can you give an example?

On 10/1/07, breeve <brock.re...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
breeve  
View profile  
 More options Oct 2 2007, 11:19 am
From: breeve <brock.re...@gmail.com>
Date: Tue, 02 Oct 2007 15:19:37 -0000
Local: Tues, Oct 2 2007 11:19 am
Subject: Re: GTK.Moonlight
I was able to get my build working, but am still having problems with
the GTKSilver stuff. Here is my XAML

<Canvas
        xmlns="http://schemas.microsoft.com/client/2007"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="640" Height="480"
        Background="#FFE6D7D7"
        x:Name="Page"
        >
        <Rectangle Width="463.5" Height="302" Fill="#FFB2EEE8"
Stroke="#FF000000" Canvas.Left="51" Canvas.Top="56"/>
</Canvas>

Here is my test.cs file

using Gtk;
using Gtk.Moonlight;
using System.Runtime.InteropServices;
using System;

class X {

        /*[DllImport ("moon")]
        extern static IntPtr xaml_create_from_file (IntPtr xml_loader, string
file, bool create_namescope, ref int kind_type);
        [DllImport ("moon")]
        extern static IntPtr xaml_create_from_file (string file, ref int
kind_type);*/

     static void Main ()
     {
        Application.Init ();
        GtkSilver.Init ();
        Window w = new Window ("Sample XAML Content");
        GtkSilver silver = new GtkSilver (500, 500);
        string fileName = "Page.xaml";
        /*int k = 1;
        IntPtr x = xaml_create_from_file(IntPtr.Zero, fileName, false, ref
k);
        IntPtr x = xaml_create_from_file(fileName, ref k);
        if(x != IntPtr.Zero)
                Console.WriteLine("PInvoke Success");
        else
                Console.WriteLine("PInvoke failure");*/

        w.Add (silver);
        w.ShowAll ();
        bool loaded = silver.LoadFile (fileName);
        Console.WriteLine(loaded);

        Application.Run ();
     }

}

On Oct 1, 6:41 pm, "Miguel de Icaza" <miguel.de.ic...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel de Icaza  
View profile  
 More options Oct 2 2007, 12:48 pm
From: "Miguel de Icaza" <miguel.de.ic...@gmail.com>
Date: Tue, 2 Oct 2007 12:48:38 -0400
Local: Tues, Oct 2 2007 12:48 pm
Subject: Re: GTK.Moonlight

You should not be calling the internal Moonlight API, we provide a managed
library that you can access with -pkg:gtksilver or something like that.

On 10/2/07, breeve <brock.re...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
breeve  
View profile  
 More options Oct 2 2007, 1:53 pm
From: breeve <brock.re...@gmail.com>
Date: Tue, 02 Oct 2007 17:53:02 -0000
Local: Tues, Oct 2 2007 1:53 pm
Subject: Re: GTK.Moonlight
The code is using GtkSilver. That internal Moonlight code above is
commented out. I was just calling the internal Moonlight API as a test
to debug issues (sorry this is confusing, my bad).

You should be able to test by compiling test.cs above doing

gmcs test.cs -pkg:gtksilver -pkg:gtk-sharp-2.0

Brock

On Oct 2, 11:48 am, "Miguel de Icaza" <miguel.de.ic...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Toshok  
View profile  
 More options Oct 2 2007, 3:01 pm
From: "Chris Toshok" <tos...@gmail.com>
Date: Tue, 2 Oct 2007 12:01:23 -0700
Local: Tues, Oct 2 2007 3:01 pm
Subject: Re: GTK.Moonlight

the trouble is that there is code presently in tools/mopen/mopen.cs
(LoadXaml) that should really live in the gtksilver stuff.  None of our
examples, tools, or anything, uses GtkSilver.LoadFile

On 10/2/07, breeve <brock.re...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Roadmap, Project Plan et al." by Shawn Wildermuth
Shawn Wildermuth  
View profile  
 More options Oct 2 2007, 3:08 pm
From: "Shawn Wildermuth" <swilderm...@adoguy.com>
Date: Tue, 2 Oct 2007 15:08:34 -0400
Local: Tues, Oct 2 2007 3:08 pm
Subject: Roadmap, Project Plan et al.

I am considering contributing to the Moonlight Project and have been looking
at daily builds in comparison with lots of demos that I am doing on my
Silverlight Tour.  I can't tell from the build what is considered done and
what isn't (or where to list bugs if its that late in the process yet). Can
someone point me to the right place, perhaps a Bugzilla instance?

Thanks,

Shawn Wildermuth

http://adoguy.com <http://adoguy.com/>

http://wildermuthconsulting.com <http://wildermuthconsulting.com/>

Microsoft MVP (C#), MCSD.NET, Author and Speaker

The Silverlight Tour <http://www.silverlight-tour.com/>  is coming to a city
near you!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "GTK.Moonlight" by breeve
breeve  
View profile  
 More options Oct 2 2007, 4:57 pm
From: breeve <brock.re...@gmail.com>
Date: Tue, 02 Oct 2007 20:57:30 -0000
Local: Tues, Oct 2 2007 4:57 pm
Subject: Re: GTK.Moonlight
Hey Chris,

As I stated before, I was trying to follow the documentation from
http://www.go-mono.com/docs/index.aspx?tlink=6@N%3aGtk.Moonlight

This mopen thing works. That is what I was trying to do. It seems to
me that right now it will only work with Silverlight 1.0 stuff (.xaml
file only). Meaning I can do [fopen Page.xaml] for example and it
works. There doesn't seem to be any way currently to use the code
behind model of Silverlight 1.1 with mopen. I did see the --host
option but it isn't implemented yet. Is this supposed to work like
[fopen --host http://onioncreeksoftware.com/] and be able to host
Silverlight 1.1 apps?

Brock

On Oct 2, 2:01 pm, "Chris Toshok" <tos...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Miguel de Icaza  
View profile  
 More options Oct 2 2007, 11:40 pm
From: "Miguel de Icaza" <miguel.de.ic...@gmail.com>
Date: Tue, 2 Oct 2007 23:40:12 -0400
Local: Tues, Oct 2 2007 11:40 pm
Subject: Re: GTK.Moonlight

See the manual page for mopen for details on how its supposed to work, or
check the various examples in the moon distribution.

That being said, Moonlight is under development at this point, and things
will continue to change in the next few months, it is not something whose
API is ready to be used.

On 10/2/07, breeve <brock.re...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Roadmap, Project Plan et al." by Marcos Cobeña Morián
Marcos Cobeña Morián  
View profile  
 More options Oct 3 2007, 11:40 am
From: "Marcos Cobeña Morián" <marcoscob...@gmail.com>
Date: Wed, 3 Oct 2007 17:40:59 +0200
Local: Wed, Oct 3 2007 11:40 am
Subject: Re: Roadmap, Project Plan et al.
Hello Shawn,

I'm not the right folk to answer but, just in case, you can get some info from:
+ Miguel's API status pages: http://primates.ximian.com/~miguel/silverpages/.
+ Moonlight page at Mono wiki: http://www.mono-project.com/Moonlight.
+ Novell's Bugzilla:
https://bugzilla.novell.com/buglist.cgi?product=Moonlight&bug_status=....

HTH.

Regards,

2007/10/2, Shawn Wildermuth <swilderm...@adoguy.com>:

--
Marcos - http://www.youcannoteatbits.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "GTK.Moonlight" by Chris Toshok
Chris Toshok  
View profile  
 More options Oct 3 2007, 2:26 pm
From: "Chris Toshok" <tos...@gmail.com>
Date: Wed, 3 Oct 2007 11:26:43 -0700
Local: Wed, Oct 3 2007 2:26 pm
Subject: Re: GTK.Moonlight

--host doesn't mean an http url.  it's meant to provide a single hosting
environment for potentially many local .xaml files to run in.  so we
wouldn't start multiple mono vms.

mopen definitely does work for 1.1 silverlight things.  Unfortunately, we
have sort of a busted build requirement for the code.  You'll have to
compile the code locally to use it with mopen.  Mopen requires that your
silverlight code is compiled with gmcs.  If you want to compile assemblies
that are compatible with MS's silverlight 1.1 (and can be used by the
plugin), you must compile with smcs.

Chris

On 10/2/07, breeve <brock.re...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »