mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-17 03:44:53 +02:00
make the sample 2.4 friendly
svn path=/trunk/gtk-sharp/; revision=46842
This commit is contained in:
parent
3c531aa299
commit
762a1576fd
@ -53,7 +53,10 @@ namespace WidgetViewer {
|
|||||||
|
|
||||||
static void OnComboActivated (object o, EventArgs args)
|
static void OnComboActivated (object o, EventArgs args)
|
||||||
{
|
{
|
||||||
Console.WriteLine ((o as ComboBox).ActiveText);
|
ComboBox combo = o as ComboBox;
|
||||||
|
TreeIter iter;
|
||||||
|
combo.GetActiveIter (out iter);
|
||||||
|
Console.WriteLine ((string)combo.Model.GetValue (iter, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user