Re: How to subclass Gtk::Bin




I solve my problem with :


void Timeline::on_size_allocate(Gtk::Allocation &allocation)
{
    Gtk::Bin::on_size_allocate(allocation);

    // instead of
    //get_child()->set_allocation(allocation);
    // use
    get_child()->size_allocate(allocation);
}

Now, the child of the Gtk::Bin assume all widgets :-)


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