Author: danw
Date: 2005-04-11 17:34:15 -0400 (Mon, 11 Apr 2005)
New Revision: 42808
Modified:
trunk/stetic/ChangeLog
trunk/stetic/glue/custom.c
trunk/stetic/libstetic/wrapper/Custom.cs
trunk/stetic/stetic/Grid.cs
Log:
* glue/custom.c (custom_new): new method
* libstetic/wrapper/Custom.cs (Stetic.Custom.ctor()): call
custom_new()
* stetic/Grid.cs (ForAll): use new signature
Modified: trunk/stetic/ChangeLog
===================================================================
--- trunk/stetic/ChangeLog 2005-04-11 21:23:41 UTC (rev 42807)
+++ trunk/stetic/ChangeLog 2005-04-11 21:34:15 UTC (rev 42808)
@@ -1,5 +1,7 @@
2005-04-11 Dan Winship <[EMAIL PROTECTED]>
+ * glue/custom.c (custom_new): new method
+
* libstetic/RadioGroupManager.cs (this[Gtk.Widget]): track the
Destroyed event on radio widgets and update everything
appropriately when a radio widget is destroyed.
@@ -9,6 +11,11 @@
* libstetic/wrapper/Container.cs (UnSelect): clear the Project
selection when unselecting.
+ * libstetic/wrapper/Custom.cs (Stetic.Custom.ctor()): call
+ custom_new()
+
+ * stetic/Grid.cs (ForAll): use new signature
+
* TODO: misc updates
2005-04-07 Dan Winship <[EMAIL PROTECTED]>
Modified: trunk/stetic/glue/custom.c
===================================================================
--- trunk/stetic/glue/custom.c 2005-04-11 21:23:41 UTC (rev 42807)
+++ trunk/stetic/glue/custom.c 2005-04-11 21:34:15 UTC (rev 42808)
@@ -14,6 +14,7 @@
} CustomClass;
GType custom_get_type (void);
+Custom *custom_new (void);
static void custom_realize (GtkWidget *widget);
G_DEFINE_TYPE (Custom, custom, GTK_TYPE_DRAWING_AREA)
@@ -32,6 +33,12 @@
;
}
+Custom *
+custom_new (void)
+{
+ return g_object_new (custom_get_type (), NULL);
+}
+
/* from glade */
static char * custom_bg_xpm[] = {
"8 8 4 1",
Modified: trunk/stetic/libstetic/wrapper/Custom.cs
===================================================================
--- trunk/stetic/libstetic/wrapper/Custom.cs 2005-04-11 21:23:41 UTC (rev
42807)
+++ trunk/stetic/libstetic/wrapper/Custom.cs 2005-04-11 21:34:15 UTC (rev
42808)
@@ -10,8 +10,15 @@
}
public Custom (IntPtr raw) : base(raw) {}
- public Custom () : base (IntPtr.Zero) {}
+ [DllImport("libsteticglue")]
+ static extern IntPtr custom_new();
+
+ public Custom () : base (IntPtr.Zero)
+ {
+ Raw = custom_new ();
+ }
+
~Custom () { Dispose (); }
[DllImport("libsteticglue")]
Modified: trunk/stetic/stetic/Grid.cs
===================================================================
--- trunk/stetic/stetic/Grid.cs 2005-04-11 21:23:41 UTC (rev 42807)
+++ trunk/stetic/stetic/Grid.cs 2005-04-11 21:34:15 UTC (rev 42808)
@@ -186,18 +186,18 @@
tips = new Gtk.Tooltips ();
}
- protected override void ForAll (bool include_internals,
CallbackInvoker invoker)
+ protected override void ForAll (bool include_internals,
Gtk.Callback callback)
{
if (!include_internals)
return;
foreach (object obj in lines) {
if (obj is Widget)
- invoker.Invoke ((Widget)obj);
+ callback ((Widget)obj);
else if (obj is Pair) {
Pair p = (Pair)obj;
- invoker.Invoke (p.Label);
- invoker.Invoke (p.Editor);
+ callback (p.Label);
+ callback (p.Editor);
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches