Skip to main content

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::requisitionreq)
{
    
std::cout << "in on_size_request" << std::endl;
    
int widthheight;
    
app->get_size(widthheight);
    
    
gtk::hpanedpane;
    
refbuilder->get_widget("hpaned1"pane);
    
pane->set_position(width 200);


may of help: http://developer.gnome.org/gtkmm/stable/deprecated.html

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
im sure function call expecting parameter , hpaned should paned. use helping hand on one.

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

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support