[Gtk-sharp-list] Can someone apply this to gtk-sharp?
Pablo Baena
pbaena@uol.com.ar
16 Oct 2002 14:41:22 +0000
--=-KM0rYGq3rleBWhpdoo4p
Content-Type: multipart/alternative; boundary="=-v9SsjOlo8xQp2OJWdxW6"
--=-v9SsjOlo8xQp2OJWdxW6
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
It is just a small patch to access the entry member of a Gtk.Combo.
Tested and all.
combo.c is a new one for glue/
Makefile.am.patch is for glue/Makefile.am
Thank you!!
Pablo
--=-v9SsjOlo8xQp2OJWdxW6
Content-Type: text/html; charset=utf-8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/1.0.4">
</HEAD>
<BODY>
It is just a small patch to access the entry member of a Gtk.Combo. Tested and all.
<BR>
<BR>
combo.c is a new one for glue/
<BR>
Makefile.am.patch is for glue/Makefile.am
<BR>
<BR>
<BR>
Thank you!!
<BR>
Pablo
<BR>
<BR>
</BODY>
</HTML>
--=-v9SsjOlo8xQp2OJWdxW6--
--=-KM0rYGq3rleBWhpdoo4p
Content-Disposition: attachment; filename=Combo.custom.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=Combo.custom.patch; charset=ISO-8859-1
--- Combo.custom Fri Oct 11 15:45:02 2002
+++ ../../../gtk-sharp/gtk/Combo.custom Wed Oct 16 14:35:47 2002
@@ -5,3 +5,12 @@
list.Append (Marshal.StringToHGlobalAnsi (arg));
PopdownStrings =3D list;
}
+
+[DllImport("gtksharpglue")]
+static extern IntPtr gtksharp_combo_get_entry(IntPtr i);
+
+public Gtk.Entry Entry {
+ get {
+ return new Gtk.Entry (gtksharp_combo_get_entry(this.Handle));
+ }
+}
--=-KM0rYGq3rleBWhpdoo4p
Content-Disposition: attachment; filename=combo.c
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-c; name=combo.c; charset=ISO-8859-1
/* combo.c : Glue for accessing fields in the GtkCombo widget.
*
* Author: Pablo Baena (pbaena@uol.com.ar)
*
*/
#include <gtk/gtkcombo.h>
GtkWidget*=20
gtksharp_combo_get_entry (GtkCombo* combo)
{
return combo->entry;
}
--=-KM0rYGq3rleBWhpdoo4p
Content-Disposition: attachment; filename=Makefile.am.patch
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-makefile; name=Makefile.am.patch; charset=ISO-8859-1
--- Makefile.am Wed Sep 4 05:25:57 2002
+++ ../../../gtk-sharp/glue/Makefile.am Wed Oct 16 12:25:45 2002
@@ -6,6 +6,7 @@
fileselection.c \
dialog.c \
colorseldialog.c \
+ combo.c \
error.c \
event.c \
slist.c \
--=-KM0rYGq3rleBWhpdoo4p--