Re: Not able to call set_accept_focus(bool) member function



On Tue, 2007-07-10 at 18:01 +0530, SaiKamesh Rathinasabapathy wrote:
> Hi,
> I am trying to call the method set_accept_focus ( false ) on an object
> of Gtk::Window.
> that is: Gtk::Window* win;
>             win->set_accept_focus ( false );
> 
> But the compiler says : 'class Gtk::Window' has no member named
> 'set_accept_focus'. 
> 
> set_accept_focus ( bool ) method is presented in the documentation.
> The documentation clearly says that this is a member function of
> Gtk::Window. I am not able to understand what is going wrong.
> 
> please clarify this! 

The API documentation is wrong (and I will try to remember to fix it):
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Window.html#9fc2a01d8aa1ab126060d9f363b5d8c5

This function was actually added in gtkmm 2.11 and will be in the future
stable gtkmm 2.12.

For now, you can probably just do
gtk_window_set_accept_focus(window->gobj(), true/false).


-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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