Merge pull request #33 from bl8/fix-combobox-entry

gtk: Fix creation of ComboBox and ComboBoxText subclasses with entry
This commit is contained in:
Mike Kestner 2011-12-06 08:44:26 -08:00
commit ef6b0afc89
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,7 @@
protected ComboBox (bool with_entry) : base (IntPtr.Zero)
{
if (GetType () != typeof (ComboBox)) {
CreateNativeObject (new string [0], new GLib.Value[0]);
CreateNativeObject (new string[] { "has-entry" }, new GLib.Value[] { new GLib.Value (with_entry) });
return;
}

View file

@ -27,7 +27,8 @@ namespace Gtk {
protected ComboBoxText (bool has_entry) : base (IntPtr.Zero)
{
if (GetType () != typeof (ComboBoxText)) {
CreateNativeObject (new string[] { "has-entry" }, new GLib.Value[] { new GLib.Value (has_entry) });
CreateNativeObject (new string[] { "has-entry", "entry-text-column", "id-column" },
new GLib.Value[] { new GLib.Value (has_entry), new GLib.Value (0), new GLib.Value (1) });
return;
}