[Gtk-sharp-list] combo widget
John Luke
jluke@users.sourceforge.net
Fri, 12 Mar 2004 12:30:36 -0500
On Fri, 2004-03-12 at 18:09 +0100, Borja Sanchez Zamorano wrote:
string[] is correct now, the docs in cvs will reflect this but the old
moethods were not quite removed in time for the release. This is one of
the wonderful API improvements that we got in 0.17 (i.e. the removal of
GLib.GList and GSList from the public API)
> In the implementation of gtk-sharp only exist PopdownStrings for
> string[], but in the monodoc exist two. I don't understand it. Sorry.
>
> In gtk-sharp-0.16 exist only Combo.PopdownStrings for GLib.List
> In gtk-sharp-0.17 exist only Combo.PopdownStrings for string[]
>
> BorSanZa
>
> El vie, 12-03-2004 a las 16:03, Roberto DÃaz escribió:
> > Hello,
> >
> > I'm using Mono 0.30 and gtk-sharp 0.17 and I'm trying to compile this
> > code:
> >
> > using System;
> > using System.Runtime.InteropServices;
> > using Gtk;
> > using GLib;
> >
> > class ComboSample{
> > Combo combo;
> > OptionMenu opt;
> > static void Main ()
> > {
> > new ComboSample ();
> > }
> > ComboSample ()
> > {
> > Application.Init ();
> > Window win = new Window ("ComboSample");
> > win.DeleteEvent += new DeleteEventHandler (OnWinDelete);
> >
> > GLib.List l = new GLib.List (IntPtr.Zero,
> > typeof(string));
> > l.Append("hello");
> >
> > combo = new Combo ();
> > combo.PopdownStrings = l;
> > combo.DisableActivate ();
> > combo.Entry.Activated += new EventHandler
> > (OnEntryActivated);
> >
> > win.Add (combo);
> > win.ShowAll ();
> > Application.Run ();
> > }
> > }
> >
> > I get on the line "combo.PopdownStrings = l" this error :
> >
> > error CS0029: Cannot convert implicitly from `GLib.List' to `string[]'
> >
> > I've seen on monodoc that combo.PopdownStrings accepts string input and
> > GLib.List input, right?
> >
> > How can I put GLib.List inside Gtk.Combo?
> >
> > any idea?
> >
> > Best regards.
> >
> > Roberto.
> >
> >
> >
> > _______________________________________________
> > Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> --
> Borja Sanchez Zamorano <borsanza@terra.es>
>
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list