[Gtk-sharp-list] Help needed.

Fredrik Nilsson jymdman@home.se
Wed, 09 Mar 2005 23:24:59 +0100


Hi,

I'm trying to port e-sidebar from evolution to Gtk#.
Have ported most of the code but having problem with the following
method that overrides container_class->forall :


static void
impl_forall (GtkContainer *container,
	     gboolean include_internals,
	     GtkCallback callback,
	     void *callback_data)
{
	ESidebar *sidebar = E_SIDEBAR (container);
	GSList *p;

	if (sidebar->priv->selection_widget != NULL)
		(* callback) (sidebar->priv->selection_widget, callback_data);

	for (p = sidebar->priv->buttons; p != NULL; p = p->next) {
		GtkWidget *widget = ((Button *) p->data)->button_widget;
		(* callback) (widget, callback_data);
	}
}


How can I translate the (* callback)(foo, baa) to C# code??

Thanks,

/Fredrik