enable completion on this now

svn path=/trunk/gtk-sharp/; revision=38006
This commit is contained in:
John Luke 2004-12-20 23:39:59 +00:00
parent b6b89a0633
commit 7535410958
3 changed files with 6 additions and 4 deletions

View file

@ -9,15 +9,16 @@ namespace GtkDemo
public DemoEntryCompletion () : base ("Demo Entry Completion", null, DialogFlags.DestroyWithParent) public DemoEntryCompletion () : base ("Demo Entry Completion", null, DialogFlags.DestroyWithParent)
{ {
this.BorderWidth = 10; this.BorderWidth = 10;
this.Resizable = false;
Label label = new Label ("Completion demo, try writing <b>total</b> or <b>gnome</b> for example."); Label label = new Label ("Completion demo, try writing <b>total</b> or <b>gnome</b> for example.");
label.UseMarkup = true; label.UseMarkup = true;
this.VBox.PackStart (label, false, true, 0); this.VBox.PackStart (label, false, true, 0);
Entry entry = new Entry (); Entry entry = new Entry ();
// FIXME: no way to set model entry.Completion = new EntryCompletion ();
//entry.Completion = new EntryCompletion (); entry.Completion.Model = CreateCompletionModel ();
//entry.SetModel (CreateCompletionModel ()); entry.Completion.TextColumn = 0;
this.VBox.PackStart (entry, false, true, 0); this.VBox.PackStart (entry, false, true, 0);
this.AddButton (Stock.Close, ResponseType.Close); this.AddButton (Stock.Close, ResponseType.Close);

View file

@ -1,5 +1,5 @@
This port of gtk-demo.c is still INCOMPLETE. If you can contribute to it This port of gtk-demo.c is still INCOMPLETE. If you can contribute to it
don't hesistate to mail your patches at the gtk-sharp-list@lists.ximian.com don't hesitate to mail your patches to gtk-sharp-list@lists.ximian.com
To compile it just type Make To compile it just type Make

View file

@ -3,6 +3,7 @@ General
DemoMain DemoMain
- syntax highlighting - syntax highlighting
- display summary info page
DemoStockBrowser DemoStockBrowser
- underline _label properly - underline _label properly