2009-05-12 Mike Kestner <mkestner@novell.com>
* gtk/Application.cs: add the theme initialization workaround for windows. Hopefully we can find a better solution that doesn't involve loading SWF. [Fixes #471682] svn path=/trunk/gtk-sharp/; revision=134008
This commit is contained in:
parent
64d2064d48
commit
bf6b4299e5
2 changed files with 21 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-05-12 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtk/Application.cs: add the theme initialization workaround for
|
||||
windows. Hopefully we can find a better solution that doesn't
|
||||
involve loading SWF. [Fixes #471682]
|
||||
|
||||
2009-05-06 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtk/RadioMenuItem.custom: implement subclassing for group/label
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
namespace Gtk {
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using Gdk;
|
||||
|
||||
|
@ -37,6 +38,20 @@ namespace Gtk {
|
|||
{
|
||||
if (!GLib.Thread.Supported)
|
||||
GLib.Thread.Init ();
|
||||
|
||||
switch (Environment.OSVersion.Platform) {
|
||||
case PlatformID.Win32NT:
|
||||
case PlatformID.Win32S:
|
||||
case PlatformID.Win32Windows:
|
||||
case PlatformID.WinCE:
|
||||
Assembly assm = Assembly.Load ("System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
|
||||
Type swfapp = assm.GetType ("System.Windows.Forms.Application");
|
||||
MethodInfo method = swfapp.GetMethod ("DoEvents", BindingFlags.Public | BindingFlags.Static);
|
||||
method.Invoke (null, null);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
|
|
Loading…
Reference in a new issue