enable completion on this now
svn path=/trunk/gtk-sharp/; revision=38006
This commit is contained in:
parent
b6b89a0633
commit
7535410958
3 changed files with 6 additions and 4 deletions
|
@ -9,15 +9,16 @@ namespace GtkDemo
|
|||
public DemoEntryCompletion () : base ("Demo Entry Completion", null, DialogFlags.DestroyWithParent)
|
||||
{
|
||||
this.BorderWidth = 10;
|
||||
this.Resizable = false;
|
||||
|
||||
Label label = new Label ("Completion demo, try writing <b>total</b> or <b>gnome</b> for example.");
|
||||
label.UseMarkup = true;
|
||||
this.VBox.PackStart (label, false, true, 0);
|
||||
|
||||
Entry entry = new Entry ();
|
||||
// FIXME: no way to set model
|
||||
//entry.Completion = new EntryCompletion ();
|
||||
//entry.SetModel (CreateCompletionModel ());
|
||||
entry.Completion = new EntryCompletion ();
|
||||
entry.Completion.Model = CreateCompletionModel ();
|
||||
entry.Completion.TextColumn = 0;
|
||||
this.VBox.PackStart (entry, false, true, 0);
|
||||
|
||||
this.AddButton (Stock.Close, ResponseType.Close);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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
|
||||
|
|
|
@ -3,6 +3,7 @@ General
|
|||
|
||||
DemoMain
|
||||
- syntax highlighting
|
||||
- display summary info page
|
||||
|
||||
DemoStockBrowser
|
||||
- underline _label properly
|
||||
|
|
Loading…
Reference in a new issue