From 6f04d85cee9e67c50930931b2b95cf3bc9553d4e Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 9 Jul 2003 03:59:28 +0000 Subject: [PATCH] * gtk/Layout.custom: New file, adding the Layout::BinWindow property. * glue/layout.c: New file, adding glue for getting the bin_window of a GtkLayout. svn path=/trunk/gtk-sharp/; revision=16048 --- ChangeLog | 8 ++++++++ glue/Makefile.am | 19 ++++++++++--------- glue/layout.c | 19 +++++++++++++++++++ gtk/Layout.custom | 27 +++++++++++++++++++++++++++ 4 files changed, 64 insertions(+), 9 deletions(-) create mode 100644 glue/layout.c create mode 100644 gtk/Layout.custom diff --git a/ChangeLog b/ChangeLog index e276c6582..fdcd34fd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-07-08 Ettore Perazzoli + + * gtk/Layout.custom: New file, adding the Layout::BinWindow + property. + + * glue/layout.c: New file, adding glue for getting the bin_window + of a GtkLayout. + 2003-07-06 Mike Kestner * api/gtk-api.xml : regenerated diff --git a/glue/Makefile.am b/glue/Makefile.am index dc366d67c..afb310bbc 100644 --- a/glue/Makefile.am +++ b/glue/Makefile.am @@ -1,23 +1,24 @@ lib_LTLIBRARIES = libgtksharpglue.la -BASESOURCES = \ +BASESOURCES = \ adjustment.c \ - value.c \ - fileselection.c \ + clipboard.c \ + colorseldialog.c \ combo.c \ dialog.c \ - colorseldialog.c \ error.c \ event.c \ - slist.c \ + fileselection.c \ + layout.c \ + list.c \ object.c \ paned.c \ + slist.c \ style.c \ type.c \ - widget.c \ - list.c \ - clipboard.c \ - # + value.c \ + widget.c + GNOMESOURCES = \ canvasitem.c \ diff --git a/glue/layout.c b/glue/layout.c new file mode 100644 index 000000000..dbba8a20d --- /dev/null +++ b/glue/layout.c @@ -0,0 +1,19 @@ +/* layout.c: Glue to access fields in GtkLayout. + * + * Author: Ettore Perazzoli + * + * Copyright (C) 2003 Ettore Perazzoli + */ + +#include + + +GdkWindow *gtksharp_gtk_layout_get_bin_window (GtkLayout *layout); + +GdkWindow * +gtksharp_gtk_layout_get_bin_window (GtkLayout *layout) +{ + return layout->bin_window; +} + + diff --git a/gtk/Layout.custom b/gtk/Layout.custom new file mode 100644 index 000000000..a3b2d4d58 --- /dev/null +++ b/gtk/Layout.custom @@ -0,0 +1,27 @@ +// +// Gtk.Widget.custom - Gtk Widget class customizations +// +// Author: Ettore Perazzoli +// Rachel Hestilow +// +// Copyright (C) 2003 Ettore Perazzoli, Rachel Hestilow +// +// This code is inserted after the automatically generated code. +// + +[DllImport("gtksharpglue")] +static extern IntPtr gtksharp_gtk_layout_get_bin_window (IntPtr layout); + +public Gdk.Window BinWindow { + get { + IntPtr raw = gtksharp_gtk_layout_get_bin_window (Handle); + + if (raw != (IntPtr) 0) { + Gdk.Window ret = (Gdk.Window) GLib.Object.GetObject (raw); + ret.Ref (); + return ret; + } + + return null; + } +} \ No newline at end of file