Re: Where I put the realize function?



Only for knowledge, I solved the problem creating a signal at the main gtkmm class. Like this:

signal_realize().connect(sigc::mem_fun(*this, &PlayerWindow::setWindowID));

And then put the following code in the function:

int wid;
Glib::RefPtr<Gdk::Window> wid = get_window();
wid = GDK_WINDOW_XID(Glib::unwrap(get_window()));
std::cout << "WID: " << wid << std::endl;

--
P.F.Smorigo


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