PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:set_cell_data_func callback (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:set_cell_data_func callback


#1316
stanleytberry (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
set_cell_data_func callback 1 Year, 8 Months ago Karma: 0  
Code:
function format_column($column, $cell, $model, $iter, $col_num) { ... }
is set up by
Code:
$column->set_cell_data_func($cell_renderer, "format_col", $col);
and the callback is
Code:
callback(GtkCellLayout cell_layout,GtkCellRenderer cell, 
GtkTreeModel tree_model, GtkTreeIter iter[, user_data]);
where cell_layout is the GtkTreeViewColumn object (since GtkCellLayout is an interface)? and user_data is the $col? In general, in Gtk, if a callback specifies optional user_data, will it always be what was specified as extra arguments on the method that set up the callback? Thanks,
 
  The administrator has disabled public write access.

#1317
kksou (Admin)
Admin
Posts: 1233
graph
User Online Now Click here to see the profile of this user
Re:set_cell_data_func callback 1 Year, 8 Months ago Karma: 20  
Code:
In general, in Gtk, if a callback specifies 
optional user_data, will it always be what was 
specified as extra arguments on the method that 
set up the callback?
Yes, you're right.
    Regards,
      /kksou
       
       
      Last Edit: 2008/12/22 00:23 By kksou.
        The administrator has disabled public write access.



      Go to top Post Reply
      Powered by FireBoardget the latest posts directly to your desktop

      Blog - Forum - Privacy Policy - Contact Us
      Copyright © 2006-2009. kksou.com. All Rights Reserved