mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-23 06:51:06 +00: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)
|
||||
{
|
||||
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 a new issue