2003-10-30 Ken Foster <kenfoster@tampabay.rr.com>

* glue/button.c: initial creating of glue file for GdkButton
	* glue/Makefile.am: added button.c to glue make
	* glue/makefile.win32: added button.c to win32 glue make
	* gtk/Button.custom: expose in_button GdkButton member

svn path=/trunk/gtk-sharp/; revision=19486
This commit is contained in:
Mike Kestner 2003-10-30 18:19:59 +00:00
parent d5a4cdb689
commit 7cf6671bce
5 changed files with 44 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2003-10-30 Ken Foster <kenfoster@tampabay.rr.com>
* glue/button.c: initial creating of glue file for GdkButton
* glue/Makefile.am: added button.c to glue make
* glue/makefile.win32: added button.c to win32 glue make
* gtk/Button.custom: expose in_button GdkButton member
2003-10-29 Martin Willemoes Hansen <mwh@sysrq.dk>
* generator/Method.cs: marked Is and Has methods,

View file

@ -2,6 +2,7 @@ lib_LTLIBRARIES = libgtksharpglue.la
BASESOURCES = \
adjustment.c \
button.c \
clipboard.c \
colorseldialog.c \
combo.c \

21
glue/button.c Normal file
View file

@ -0,0 +1,21 @@
/*
* button.c : Glue for utility functions for GtkButton
*/
#include <gtk/gtkbutton.h>
/* Forward declarations */
int gtksharp_button_get_in_button (GtkButton* button);
void gtksharp_button_set_in_button (GtkButton* button, int b);
int
gtksharp_button_get_in_button (GtkButton* button)
{
return button->in_button;
}
void
gtksharp_button_set_in_button (GtkButton* button, int b)
{
button->in_button = b;
}

View file

@ -5,6 +5,7 @@ DLLWRAP=dllwrap -mno-cygwin -mms-bitfields --target i386-mingw32 --export-all-sy
GLUE_OBJS = \
adjustment.o \
button.o \
clipboard.o \
colorseldialog.o \
combo.o \

14
gtk/Button.custom Normal file
View file

@ -0,0 +1,14 @@
[DllImport("gtksharpglue")]
static extern int gtksharp_button_get_in_button (IntPtr button);
[DllImport("gtksharpglue")]
static extern void gtksharp_button_set_in_button (IntPtr button, int b);
public bool InButton {
get {
return gtksharp_button_get_in_button (Handle) == 1 ? true : false;
}
set {
gtksharp_button_set_in_button (Handle, value ? 1 : 0);
}
}