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:
parent
66d0a287b3
commit
2ac0a2cc89
3 changed files with 24 additions and 7 deletions
|
@ -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>
|
2002-07-19 Duncan Mak <duncan@ximian.com>
|
||||||
|
|
||||||
* TestSizeGroup.cs: New test for GtkSizeGroup.
|
* TestSizeGroup.cs: New test for GtkSizeGroup.
|
||||||
|
|
|
@ -91,7 +91,7 @@ namespace WidgetViewer {
|
||||||
static void Add_Row (Table table, uint row, SizeGroup size_group,
|
static void Add_Row (Table table, uint row, SizeGroup size_group,
|
||||||
string label_text, string [] options)
|
string label_text, string [] options)
|
||||||
{
|
{
|
||||||
Label label = new Label (label_text);
|
Label label = Label.NewWithMnemonic (label_text);
|
||||||
label.SetAlignment (0, 1);
|
label.SetAlignment (0, 1);
|
||||||
|
|
||||||
table.Attach (label,
|
table.Attach (label,
|
||||||
|
|
|
@ -62,25 +62,35 @@ namespace WidgetViewer {
|
||||||
|
|
||||||
static void pop_clicked (object o, EventArgs args)
|
static void pop_clicked (object o, EventArgs args)
|
||||||
{
|
{
|
||||||
Console.WriteLine ("Pop");
|
if (counter < -1)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Console.WriteLine ("Pop: " + counter);
|
||||||
statusbar.Pop (context_id);
|
statusbar.Pop (context_id);
|
||||||
|
|
||||||
|
counter --;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void statusbar_popped (object o, TextPoppedArgs args)
|
static void statusbar_popped (object o, TextPoppedArgs args)
|
||||||
{
|
{
|
||||||
Console.WriteLine ("statusbar_popped signal");
|
Console.WriteLine ("Popped: " + counter);
|
||||||
Console.WriteLine (args.Text);
|
|
||||||
Console.WriteLine (args.ContextId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void statusbar_pushed (object o, EventArgs args)
|
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);
|
context_id = statusbar.GetContextId (content);
|
||||||
statusbar.Push (context_id, content);
|
statusbar.Push (context_id, content);
|
||||||
|
|
||||||
counter ++;
|
counter ++;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Close_Button (object o, EventArgs args)
|
static void Close_Button (object o, EventArgs args)
|
||||||
|
|
Loading…
Reference in a new issue