using Gtk::Bin::get_child() to test for contents



Is it a good or reliable use of Gtk::Bin::get_child() to see if a widget currently contains another widget?

if (frame.get_child() != NULL)
{
    g_print("we got something here\n");
}
else
{
    g_print("empty\n");
}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]