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:
parent
d5a4cdb689
commit
7cf6671bce
5 changed files with 44 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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
21
glue/button.c
Normal 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;
|
||||
}
|
|
@ -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
14
gtk/Button.custom
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue