Re: [gtkmm] How to make a toplevel window visible with a popup window



>I've tried to use the Gtk::Window::set_transient_for but as the main window 
>is a derived class of Gtk::Window when a use:
>
>this->toplevel_window->set_transient_for(popup_window);

its rather unusual in C++ programming to make use of the "this"
pointer except where referring to the object as a whole. 

	toplevel_window->set_tran....

works just the same.

>the compiler says that it can't  find a function like 
>toplevel_window->set_transient_for(popup_window*&) and that the candidates 
>are Gtk::Window::set_transient_for(Gtk::Window*&).

thats because you are passing in a ptr-to-Gtk::Window, as the error
indicates. try

       toplevel_window->set_transient_for (*popup_window);	   




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