[Monodevelop-patches-list] r1867 - trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Jun 30 21:24:58 EDT 2004
Author: jluke
Date: 2004-06-30 21:24:58 -0400 (Wed, 30 Jun 2004)
New Revision: 1867
Modified:
trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog
trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/Glue.cs
trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/MonoDevelop.Gui.Utils.dll.config
Log:
add hack to check for Gtk 2.4
Modified: trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog 2004-06-30 23:19:06 UTC (rev 1866)
+++ trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/ChangeLog 2004-07-01 01:24:58 UTC (rev 1867)
@@ -1,3 +1,8 @@
+2004-06-30 John Luke <jluke at cfl.rr.com>
+
+ * Glue.cs: add IsGtk24 property for potential FileChooser hack
+ * MonoDevelop.Gui.Utils.dll.config: add gtk config mapping
+
2004-05-28 Todd Berman <tberman at sevenl.net>
* MonoDevelop.Gui.Utils.prjx: update to new ICSharpCode.SharpZipLib
Modified: trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/Glue.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/Glue.cs 2004-06-30 23:19:06 UTC (rev 1866)
+++ trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/Glue.cs 2004-07-01 01:24:58 UTC (rev 1867)
@@ -18,6 +18,20 @@
{
lmd_propagate_eventkey (Handle, ref key);
}
+
+ [DllImport ("gtk-x11-2.0")]
+ static extern IntPtr gtk_check_version (uint maj, uint min, uint mic);
+
+ // check for gtk 2.4 or newer
+ public bool IsGtk24 {
+ get {
+ string res = Marshal.PtrToStringAnsi (gtk_check_version (2, 4, 0));
+ if (res == null || res == String.Empty)
+ return true;
+ else
+ return false;
+ }
+ }
}
Modified: trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/MonoDevelop.Gui.Utils.dll.config
===================================================================
--- trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/MonoDevelop.Gui.Utils.dll.config 2004-06-30 23:19:06 UTC (rev 1866)
+++ trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Utils/MonoDevelop.Gui.Utils.dll.config 2004-07-01 01:24:58 UTC (rev 1867)
@@ -1,3 +1,4 @@
<configuration>
+ <dllmap dll="libgtk-2.0-0.dll" target="libgtk-x11-2.so.0"/>
<dllmap dll="gnomevfs-2" target="libgnomevfs-2.so.0"/>
</configuration>
More information about the Monodevelop-patches-list
mailing list