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:
parent
88bc0b71d2
commit
ef47320ee2
4 changed files with 52 additions and 1 deletions
|
@ -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.
|
||||||
|
|
|
@ -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
20
glue/paned.c
Normal 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
23
gtk/Paned.custom
Normal 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)); }
|
||||||
|
}
|
Loading…
Reference in a new issue