Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-09 Thread Leszek Ciesielski
Unfortunately, the button does not appear to use native themes on my WinXP machine (SP3, GTK# installed with Mono 2.4.2.3). On Wed, Sep 9, 2009 at 5:05 PM, Christian Hoff wrote: > Hi folks, > > as you may have noticed, old Gtk# versions (< 2.12.8) did not use XP's > visual styles. Later versions h

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-09 Thread Christian Hoff
Hi folks, as you may have noticed, old Gtk# versions (< 2.12.8) did not use XP's visual styles. Later versions have a workaround: they call System.WIndows.Forms.Application.DoEvents which seems to enable XP's theming. This workaround is far from optimal as it created a Winforms dependency.

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-08 Thread Mike Kestner
On Sat, 2009-09-05 at 09:15 +0200, Christian Hoff wrote: > > In Windows I use 'mkbundle' [1] > > We should probably put that code in a try-block. What do you think, Mike? My question would be, what do you do in the catch block? The winforms reflection thing is a huge hack, we know that, and t

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-07 Thread Robert Jordan
Hi, Carlos Alberto Cortez wrote: >> But since Mono's System.Windows.Forms is Open Source [1], why was it >> again that no one has found out what DoEvents does? ;-) >> >> Andreas >> >> [1] >> http://anonsvn.mono-project.com/viewvc/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWi

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-07 Thread Carlos Alberto Cortez
Hey, > > But since Mono's System.Windows.Forms is Open Source [1], why was it > again that no one has found out what DoEvents does? ;-) > > Andreas > > [1] > http://anonsvn.mono-project.com/viewvc/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs?view=markup > > > We do

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-06 Thread Andreas Färber
Hey, Am 06.09.2009 um 11:55 schrieb Christian Hoff: > As I said, nobody has ever found out what DoEvents does and why > produces the desired results. We'd really like to avoid loading SWF at > runtime, but so far nobody has come up with a better solution :-) . My assumption would be that DoEvent

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-06 Thread Tom Spink
2009/9/6 Christian Hoff : > Unfortunately, I do not have an XP machine, either. In a few years when > nobody is using this OS any more, we can drop this hackish workaround > anyway. Until then, we will probably have to treat the whole thing as a > blackbox ;-) . Nevertheless, if someone comes up wi

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-06 Thread Christian Hoff
Tom Spink wrote: > 2009/9/6 Christian Hoff : > >> As I said, nobody has ever found out what DoEvents does and why >> produces the desired results. We'd really like to avoid loading SWF at >> runtime, but so far nobody has come up with a better solution :-) . >> > > Just to pitch in, I remem

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-06 Thread Tom Spink
2009/9/6 Christian Hoff : > As I said, nobody has ever found out what DoEvents does and why > produces the desired results. We'd really like to avoid loading SWF at > runtime, but so far nobody has come up with a better solution :-) . Just to pitch in, I remember *ages* ago when XP first introduce

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-06 Thread Christian Hoff
Vladimir Dimitrov wrote: > Hi, > > Or you can use something like this: > > try { > // This is needed in order for GTK# 2.12.8 to get the > proper theming > Assembly winForms = Assembly.Load > ("System.Windows.Forms, Version=2.0.0.0, Culture=ne

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-06 Thread Vladimir Dimitrov
- Vlad -Original Message- From: mono-devel-list-boun...@lists.ximian.com [mailto:mono-devel-list-boun...@lists.ximian.com] On Behalf Of Christian Hoff Sent: Saturday, September 05, 2009 10:16 AM To: Andoni Morales Cc: mono-devel-list@lists.ximian.com Subject: Re: [Mono-dev] Gtk depends on

Re: [Mono-dev] Gtk depends on Winforms ¿?

2009-09-05 Thread Christian Hoff
Andoni Morales wrote: > Hi, > > I have recently tried to upgrade from Mono 2.4 to 2.4.2.2 in Windows > XP, which comes with gtk-sharp-2.12.9 > In Windows I use 'mkbundle' [1] to generate from my c# app an > executable file that can be launched on a computer that doesn't not > have mono installed.

[Mono-dev] Gtk depends on Winforms ¿?

2009-09-04 Thread Andoni Morales
Hi, I have recently tried to upgrade from Mono 2.4 to 2.4.2.2 in Windows XP, which comes with gtk-sharp-2.12.9 In Windows I use 'mkbundle' [1] to generate from my c# app an executable file that can be launched on a computer that doesn't not have mono installed. mkbundle builds a new executable th