Thread: GTKmm: Porting to GTK3
im porting gtk2 codebase gtk3 gtkmm. tried compiling , reduced errors 35 22 , 11.
don't know how fix section of code, appreciate on it.
php code:
app->size_allocate().connect(sigc::mem_fun(*this, &mainwindow::on_size_allocate));
void mainwindow::on_size_allocate(gtk::requisition* req)
{
std::cout << "in on_size_request" << std::endl;
int width, height;
app->get_size(width, height);
gtk::hpaned* pane;
refbuilder->get_widget("hpaned1", pane);
pane->set_position(width - 200);
}
may of help: http://developer.gnome.org/gtkmm/stable/deprecated.html
im sure function call expecting parameter , hpaned should paned. use helping hand on one.errors:
mainwindow.cc: in member function ‘gtk::window* mainwindow::init()’:
mainwindow.cc:74:21: error: no matching function call ‘gtk::window::size_allocate()’
mainwindow.cc:74:21: note: candidate is:
/usr/include/gtkmm-3.0/gtkmm/widget.h:460:8: note: void gtk::widget::size_allocate(const allocation&)
/usr/include/gtkmm-3.0/gtkmm/widget.h:460:8: note: candidate expects 1 argument, 0 provided
that function expects allocation object. tried google , had trash.
seems me have create or allocation object somehow.
more careful in api methods return allocation.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] GTKmm: Porting to GTK3
Ubuntu
Comments
Post a Comment