Re: [gtkmm] How to make a toplevel window visible with a popup window
- From: Paul Davis <paul linuxaudiosystems com>
- To: "Find All" <find_all hotmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] How to make a toplevel window visible with a popup window
- Date: Mon, 23 Feb 2004 07:51:30 -0500
>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]