2002-07-19 Duncan Mak <duncan@ximian.com>

* gtk/Paned.custom:
	* glue/paned.c: Glue code for getting child1 and child2 out from a Gtk.Paned.

	* glue/Makefile.am: Add paned.c

svn path=/trunk/gtk-sharp/; revision=5906
This commit is contained in:
Duncan Mak 2002-07-19 07:54:33 +00:00
parent 88bc0b71d2
commit ef47320ee2
4 changed files with 52 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2002-07-19 Duncan Mak <duncan@ximian.com>
* gtk/Paned.custom:
* glue/paned.c: Glue code for getting child1 and child2 out from a Gtk.Paned.
* glue/Makefile.am: Add paned.c
2002-07-19 Mike Kestner <mkestner@speakeasy.net> 2002-07-19 Mike Kestner <mkestner@speakeasy.net>
* generator/StructGen.cs : comment out GenField. It's broke. * generator/StructGen.cs : comment out GenField. It's broke.

View file

@ -8,7 +8,8 @@ BASESOURCES = \
colorseldialog.c \ colorseldialog.c \
error.c \ error.c \
event.c \ event.c \
slist.c slist.c \
paned.c
if ENABLE_GNOME if ENABLE_GNOME
libgtksharpglue_la_SOURCES = \ libgtksharpglue_la_SOURCES = \

20
glue/paned.c Normal file
View file

@ -0,0 +1,20 @@
/* paned.c : Glue for accessing fields in the GtkPaned widget.
*
* Author: Duncan Mak (duncan@ximian.com)
*
* (C) Ximian, INc.
*/
#include <gtk/gtkpaned.h>
GtkWidget*
gtksharp_paned_get_child1 (GtkPaned *paned)
{
return paned->child1;
}
GtkWidget*
gtksharp_paned_get_child2 (GtkPaned *paned)
{
return paned->child2;
}

23
gtk/Paned.custom Normal file
View file

@ -0,0 +1,23 @@
//
// Gtk.Paned.custom - Gtk Paned class customizations
//
// Author: Duncan Mak (duncan@ximian.com)
//
// Copyright (C) 2002 Ximian, Inc.
//
// This code is inserted after the automatically generated code.
//
[DllImport ("gtksharpglue")]
static extern IntPtr gtksharp_paned_get_child1 (IntPtr i);
public Gtk.Widget Child1 {
get { return new Widget (gtksharp_paned_get_child1 (this.Handle)); }
}
[DllImport ("gtksharpglue")]
static extern IntPtr gtksharp_paned_get_child2 (IntPtr i);
public Gtk.Widget Child2 {
get { return new Widget (gtksharp_paned_get_child2 (this.Handle)); }
}