2002-07-20 Duncan Mak <duncan@ximian.com>

* TestSizeGroup.cs: Minor aesthetic changes.

	* TestStatusbar.cs: Some changes in the output to figure out why
	it is behaving like this.

svn path=/trunk/gtk-sharp/; revision=5946
This commit is contained in:
Duncan Mak 2002-07-19 19:05:11 +00:00
parent 66d0a287b3
commit 2ac0a2cc89
3 changed files with 24 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2002-07-20 Duncan Mak <duncan@ximian.com>
* TestSizeGroup.cs: Minor aesthetic changes.
* TestStatusbar.cs: Some changes in the output to figure out why
it is behaving like this.
2002-07-19 Duncan Mak <duncan@ximian.com>
* TestSizeGroup.cs: New test for GtkSizeGroup.

View file

@ -91,7 +91,7 @@ namespace WidgetViewer {
static void Add_Row (Table table, uint row, SizeGroup size_group,
string label_text, string [] options)
{
Label label = new Label (label_text);
Label label = Label.NewWithMnemonic (label_text);
label.SetAlignment (0, 1);
table.Attach (label,

View file

@ -62,25 +62,35 @@ namespace WidgetViewer {
static void pop_clicked (object o, EventArgs args)
{
Console.WriteLine ("Pop");
if (counter < -1)
return;
Console.WriteLine ("Pop: " + counter);
statusbar.Pop (context_id);
counter --;
}
static void statusbar_popped (object o, TextPoppedArgs args)
{
Console.WriteLine ("statusbar_popped signal");
Console.WriteLine (args.Text);
Console.WriteLine (args.ContextId);
Console.WriteLine ("Popped: " + counter);
}
static void statusbar_pushed (object o, EventArgs args)
{
string content = String.Format ("Push #{0}", counter);
string content = null;
if (counter < 0)
content = String.Empty;
else
content = String.Format ("Push #{0}", counter);
Console.WriteLine ("Push: " + counter);
context_id = statusbar.GetContextId (content);
statusbar.Push (context_id, content);
counter ++;
return;
}
static void Close_Button (object o, EventArgs args)