[Gtk-sharp-list] gtkglext-sharp

Mike Kestner mkestner@speakeasy.net
Mon, 01 Sep 2003 19:34:43 -0400


On Sun, 2003-08-31 at 16:55, Bruno Fernandez-Ruiz wrote:

> I have just started creating C# bindings for gtkglext. gtkglext adds
> methods to GtkWidget, GdkWindow and GdkPixmap. For example,
> gtkglwidget.h contains:
> 
> GdkGLConfig  *gtk_widget_get_gl_config     (GtkWidget    *widget);

That's fairly evil.

> Any suggestions on how to get this done more cleanly, possibly using
> gapi? I would like to see:
> 
> namespace Gtk 
> {
>  public class Widget 
>  {
>   public GdkGL.Config GetGLConfig() { ... }
>  }
> }

Nah, no way we're going to take these kind of changes into the core
gtk-sharp.dll assembly, which is what would have to happen to get the
method onto widget.  It sucks that they've intruded into the gtk_widget
namespace, but I think your GtkGL namespaced static method is the best
approach.

-- 
Mike Kestner <mkestner@speakeasy.net>