how to use get_geometry correctlly



Hi, all,

I inherit Gtk::Button, and wonna change the position of my widget internally.
And I use following steps to achieve this, but segmentation fault.
Please correct me, thanks!

/* in my widget */
int x, y, tmp=0;
get_window()->get_geometry( x, y, tmp, tmp, tmp );// get current position, but segmentation fault



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