Author: jluke
Date: 2006-06-03 11:47:43 -0400 (Sat, 03 Jun 2006)
New Revision: 61430
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11DesktopColors.cs
Log:
2006-06-03 John Luke <[EMAIL PROTECTED]>
* X11DesktopColors.cs: dllimport the exact gtk and gdk versions
so the colors work without dev packages
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-06-03 12:30:53 UTC (rev 61429)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-06-03 15:47:43 UTC (rev 61430)
@@ -1,3 +1,8 @@
+2006-06-03 John Luke <[EMAIL PROTECTED]>
+
+ * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
+ so the colors work without dev packages
+
2006-06-02 Peter Dennis Bartok <[EMAIL PROTECTED]>
* Control.cs
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11DesktopColors.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11DesktopColors.cs
2006-06-03 12:30:53 UTC (rev 61429)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/X11DesktopColors.cs
2006-06-03 15:47:43 UTC (rev 61430)
@@ -128,7 +128,7 @@
}
catch (DllNotFoundException) {
- Console.WriteLine("Gtk not
found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so?), using built-in
colorscheme");
+ Console.WriteLine("Gtk not
found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so.0?), using built-in
colorscheme");
}
catch {
@@ -263,28 +263,31 @@
#endregion // Methods
#region DllImports
- [DllImport("libgtk-x11-2.0.so")]
+ const string libgdk = "libgdk-x11-2.0.so.0";
+ const string libgtk = "libgtk-x11-2.0.so.0";
+
+ [DllImport(libgtk)]
static extern bool gtk_init_check (out int argc, string argv);
- [DllImport("libgdk-x11-2.0.so")]
+ [DllImport(libgdk)]
internal static extern IntPtr gdk_display_manager_get ();
- [DllImport("libgdk-x11-2.0.so")]
+ [DllImport(libgdk)]
internal static extern IntPtr
gdk_display_manager_get_default_display (IntPtr display_manager);
- [DllImport("libgtk-x11-2.0.so")]
+ [DllImport(libgtk)]
static extern IntPtr gtk_invisible_new ();
- [DllImport("libgtk-x11-2.0.so")]
+ [DllImport(libgtk)]
static extern IntPtr gtk_menu_new ();
- [DllImport("libgtk-x11-2.0.so")]
+ [DllImport(libgtk)]
static extern IntPtr gtk_menu_item_new_with_label (string
label);
- [DllImport("libgtk-x11-2.0.so")]
+ [DllImport(libgtk)]
static extern void gtk_widget_ensure_style (IntPtr raw);
- [DllImport("libgtk-x11-2.0.so")]
+ [DllImport(libgtk)]
static extern IntPtr gtk_widget_get_style (IntPtr raw);
#endregion // DllImports
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches