From 3f07a660f58886d78cf5503d0d0a9fc27c3717ea Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Fri, 11 Oct 2002 15:45:02 +0000 Subject: [PATCH] 2002-10-11 Martin Baulig * gtk/Combo.custom: New file. (Combo.SetPopdownStrings): New method to set the popdown strings from a string array. svn path=/trunk/gtk-sharp/; revision=8169 --- ChangeLog | 6 ++++++ gtk/Combo.custom | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 gtk/Combo.custom diff --git a/ChangeLog b/ChangeLog index 26e7ac9d9..afc0cab36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-10-11 Martin Baulig + + * gtk/Combo.custom: New file. + (Combo.SetPopdownStrings): New method to set the popdown strings + from a string array. + 2002-10-11 Martin Baulig * glib/ListBase.cs (ListBase.Append): New public method. diff --git a/gtk/Combo.custom b/gtk/Combo.custom new file mode 100644 index 000000000..906b04656 --- /dev/null +++ b/gtk/Combo.custom @@ -0,0 +1,7 @@ + +public void SetPopdownStrings (params string[] args) { + GLib.List list = new GLib.List (IntPtr.Zero, typeof (string)); + foreach (string arg in args) + list.Append (Marshal.StringToHGlobalAnsi (arg)); + PopdownStrings = list; +}