RE: [gtkmm] gtkmm api design question



> Hi there,
> throughout gtkmm API here and there scattered methods which accept
> references to objects, but frequently they require zero value to be
> passed.
> 
> For instance
> Gtk::TreeView::set_cursor (const TreeModel::Path& path,	
> TreeViewColumn&
> focus_column, bool start_editing = false);
> 
> takes reference to focus column, and documentation tells that 
> if focus_column
> is not 0 (!!!how c++ reference can be zero?) and 
> start_editing = true we start
> to edit this column. I'm wandering how one can pass focus 
> column = 0 to this 
> function? Is there some NULL gtkmm object, whith gobj() 
> method returning 0,
> which i can pass instead of "zero" reference or it is 
> completely impossible
> with gtkmm?

It's
1. A bug in the documentation. Please report/patch them in bugzilla.
2. Maybe a bug in gtkmm if there is no overload of the method that does not
have that parameter.

Murray Cumming
murrayc usa net
www.murrayc.com 



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