How do I check if Gtk.CheckButton is checked?
c#, gtk, gtk#
Solution
Despite I fail to see advantage of QA site which answers with: google is your friend, I will answer this question for people who are (googling) looking for the same...
The property `Active` of `Gtk.CheckButton` is alternative of `Checked` in checkbox
so
if (checkbox.Active)
{
// the checkbox was checked
} else
{
// it wasn't checked
}
Problem
I am using GTK and I have inserted a `CheckButton` (GTK version of checkbox) to a window. Now I need to get if it's checked or not. How do I do that?