Author: danw
Date: 2005-04-21 11:12:12 -0400 (Thu, 21 Apr 2005)
New Revision: 43406
Modified:
trunk/gtk-sharp/ChangeLog
trunk/gtk-sharp/gdk/EventClient.cs
trunk/gtk-sharp/glib/Object.cs
trunk/gtk-sharp/glib/Value.cs
trunk/gtk-sharp/gnome/PrintContext.custom
trunk/gtk-sharp/gtk/NodeStore.cs
trunk/gtk-sharp/gtk/NodeView.cs
trunk/gtk-sharp/gtk/Widget.custom
trunk/gtk-sharp/pango/LayoutLine.custom
Log:
* gdk/EventClient.cs (gtksharp_gdk_event_client_get_time):
* glib/Object.cs (gtksharp_get_type_id):
* glib/Value.cs (gtksharp_object_get_ref_count,
g_value_take_boxed):
* gnome/PrintContext.custom (gnome_print_concat,
gnome_print_glyphlist, gnome_print_setdash):
* gtk/NodeStore.cs (gtksharp_node_store_new, stamp):
* gtk/NodeView.cs (gtk_tree_view_new_with_model):
* gtk/Widget.custom (gtksharp_gtk_widget_set_allocation):
* pango/LayoutLine.custom (g_free): Remove unused
prototypes/fields
Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog 2005-04-21 15:03:59 UTC (rev 43405)
+++ trunk/gtk-sharp/ChangeLog 2005-04-21 15:12:12 UTC (rev 43406)
@@ -1,3 +1,17 @@
+2005-04-21 Dan Winship <[EMAIL PROTECTED]>
+
+ * gdk/EventClient.cs (gtksharp_gdk_event_client_get_time):
+ * glib/Object.cs (gtksharp_get_type_id):
+ * glib/Value.cs (gtksharp_object_get_ref_count,
+ g_value_take_boxed):
+ * gnome/PrintContext.custom (gnome_print_concat,
+ gnome_print_glyphlist, gnome_print_setdash):
+ * gtk/NodeStore.cs (gtksharp_node_store_new, stamp):
+ * gtk/NodeView.cs (gtk_tree_view_new_with_model):
+ * gtk/Widget.custom (gtksharp_gtk_widget_set_allocation):
+ * pango/LayoutLine.custom (g_free): Remove unused
+ prototypes/fields
+
2005-04-21 Mike Kestner <[EMAIL PROTECTED]>
* Makefile.include : make mcs shaddup about 169.
Modified: trunk/gtk-sharp/gdk/EventClient.cs
===================================================================
--- trunk/gtk-sharp/gdk/EventClient.cs 2005-04-21 15:03:59 UTC (rev 43405)
+++ trunk/gtk-sharp/gdk/EventClient.cs 2005-04-21 15:12:12 UTC (rev 43406)
@@ -27,9 +27,6 @@
public class EventClient : Event {
[DllImport("gdksharpglue-2")]
- static extern uint gtksharp_gdk_event_client_get_time (IntPtr
evt);
-
- [DllImport("gdksharpglue-2")]
static extern IntPtr gtksharp_gdk_event_client_get_message_type
(IntPtr evt);
[DllImport("gdksharpglue-2")]
Modified: trunk/gtk-sharp/glib/Object.cs
===================================================================
--- trunk/gtk-sharp/glib/Object.cs 2005-04-21 15:03:59 UTC (rev 43405)
+++ trunk/gtk-sharp/glib/Object.cs 2005-04-21 15:12:12 UTC (rev 43406)
@@ -224,9 +224,6 @@
}
}
- [DllImport("glibsharpglue-2")]
- private static extern IntPtr gtksharp_get_type_id (IntPtr obj);
-
public static GLib.GType GType {
get {
return GType.Object;
Modified: trunk/gtk-sharp/glib/Value.cs
===================================================================
--- trunk/gtk-sharp/glib/Value.cs 2005-04-21 15:03:59 UTC (rev 43405)
+++ trunk/gtk-sharp/glib/Value.cs 2005-04-21 15:12:12 UTC (rev 43406)
@@ -149,9 +149,6 @@
}
- [DllImport("glibsharpglue")]
- static extern int gtksharp_object_get_ref_count (IntPtr obj);
-
[DllImport("libgobject-2.0-0.dll")]
static extern void g_value_set_object (ref Value val, IntPtr
data);
@@ -366,9 +363,6 @@
[DllImport("libgobject-2.0-0.dll")]
static extern bool g_type_is_a (IntPtr type, IntPtr is_a_type);
- [DllImport("libgobject-2.0-0.dll")]
- static extern void g_value_take_boxed (ref Value val, IntPtr
data);
-
public object Val
{
get {
Modified: trunk/gtk-sharp/gnome/PrintContext.custom
===================================================================
--- trunk/gtk-sharp/gnome/PrintContext.custom 2005-04-21 15:03:59 UTC (rev
43405)
+++ trunk/gtk-sharp/gnome/PrintContext.custom 2005-04-21 15:12:12 UTC (rev
43406)
@@ -141,11 +141,11 @@
return (PrintReturnCode)gnome_print_setlinecap (Handle,
captype);
}
- [DllImport("gnomeprint-2-2")]
+ // FIXME!
+ /*[DllImport("gnomeprint-2-2")]
static extern int gnome_print_setdash (IntPtr raw, int
n_values, IntPtr value, double offset);
- // FIXME!
- /*public PrintReturnCode SetDash (double values[], double
offset) {
+ public PrintReturnCode SetDash (double values[], double offset)
{
return (PrintReturnCode)gnome_print_setdash (Handle,
values.Length, values, offset);
}*/
@@ -171,9 +171,6 @@
}
[DllImport("gnomeprint-2-2")]
- static extern int gnome_print_concat (IntPtr raw, IntPtr
matrix);
-
- [DllImport("gnomeprint-2-2")]
static extern int gnome_print_scale (IntPtr raw, double sx,
double sy);
public PrintReturnCode Scale (double sx, double sy) {
@@ -236,9 +233,6 @@
}
[DllImport("gnomeprint-2-2")]
- static extern int gnome_print_glyphlist (IntPtr raw, IntPtr
glyphlist);
-
- [DllImport("gnomeprint-2-2")]
static extern int gnome_print_grayimage (IntPtr raw, IntPtr
data, int width, int height, int rowstride);
public PrintReturnCode GrayImage (string data, int width, int
height, int rowstride) {
Modified: trunk/gtk-sharp/gtk/NodeStore.cs
===================================================================
--- trunk/gtk-sharp/gtk/NodeStore.cs 2005-04-21 15:03:59 UTC (rev 43405)
+++ trunk/gtk-sharp/gtk/NodeStore.cs 2005-04-21 15:12:12 UTC (rev 43406)
@@ -90,7 +90,6 @@
public ParentDelegate parent;
}
- int stamp;
Hashtable node_hash = new IDHashtable ();
GLib.GType[] ctypes;
PropertyInfo[] getters;
@@ -285,9 +284,6 @@
gtksharp_node_store_set_tree_model_callbacks (Handle,
ref tree_model_iface);
}
- [DllImport("gtksharpglue-2")]
- static extern IntPtr gtksharp_node_store_new ();
-
public NodeStore (Type node_type) : base (IntPtr.Zero)
{
CreateNativeObject (new string [0], new GLib.Value [0]);
Modified: trunk/gtk-sharp/gtk/NodeView.cs
===================================================================
--- trunk/gtk-sharp/gtk/NodeView.cs 2005-04-21 15:03:59 UTC (rev 43405)
+++ trunk/gtk-sharp/gtk/NodeView.cs 2005-04-21 15:12:12 UTC (rev 43406)
@@ -30,9 +30,6 @@
public class NodeView : TreeView {
- [DllImport("libgtk-win32-2.0-0.dll")]
- static extern IntPtr gtk_tree_view_new_with_model(IntPtr model);
-
NodeStore store;
public NodeView (NodeStore store) : base (IntPtr.Zero)
Modified: trunk/gtk-sharp/gtk/Widget.custom
===================================================================
--- trunk/gtk-sharp/gtk/Widget.custom 2005-04-21 15:03:59 UTC (rev 43405)
+++ trunk/gtk-sharp/gtk/Widget.custom 2005-04-21 15:12:12 UTC (rev 43406)
@@ -56,9 +56,6 @@
[DllImport("gtksharpglue-2")]
static extern IntPtr gtksharp_gtk_widget_get_allocation (IntPtr style);
-[DllImport("gtksharpglue-2")]
-static extern void gtksharp_gtk_widget_set_allocation (IntPtr raw,
Gdk.Rectangle rect);
-
public Gdk.Rectangle Allocation {
get { return Gdk.Rectangle.New (gtksharp_gtk_widget_get_allocation
(Handle)); }
set { SizeAllocate (value); }
Modified: trunk/gtk-sharp/pango/LayoutLine.custom
===================================================================
--- trunk/gtk-sharp/pango/LayoutLine.custom 2005-04-21 15:03:59 UTC (rev
43405)
+++ trunk/gtk-sharp/pango/LayoutLine.custom 2005-04-21 15:12:12 UTC (rev
43406)
@@ -55,17 +55,16 @@
}
-[DllImport("libglib-2.0-0.dll")]
-static extern void g_free (IntPtr raw);
-
+#if NOT_BROKEN
[DllImport("libpango-1.0-0.dll")]
static extern void pango_layout_line_get_x_ranges(IntPtr raw, int start_index,
int end_index, out IntPtr ranges_handle, out int n_ranges);
+#endif
public void GetXRanges(int start_index, int end_index, out int[][] ranges)
{
- // FIXME: this is broke
+ // FIXME: this is broken
throw new NotImplementedException ();
- /*
+#if NOT_BROKEN
int count;
IntPtr array_ptr;
pango_layout_line_get_x_ranges(Handle, start_index, end_index, out
array_ptr, out count);
@@ -78,6 +77,6 @@
}
Marshal.Copy (array_ptr, ranges, 0, count);
g_free (array_ptr);
- */
+#endif
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches