Discussion:
[PHP-GTK] treeview toggle
(too old to reply)
suomaf
2006-09-05 14:05:32 UTC
Permalink
Hello Christian Weiske,

You are a life saver.. this now works..
$selection->connect('changed',array($this,'toDoTreeView_selection_clicked'));

so do i do the same for the cell renderer? like this ?

$bool_cell_renderer->connect('toggled',array($this,'done_toggled',$store));

where can i read up more on connect so i can understand what i am doing.

Kind regards,
Suomaf
--
View this message in context: http://www.nabble.com/treeview-toggle-tf2218198.html#a6152614
Sent from the Php - GTK - General forum at Nabble.com.
Ron Tarrant
2006-09-05 14:14:05 UTC
Permalink
Post by suomaf
Hello Christian Weiske,
You are a life saver.. this now works..
$selection->connect('changed',array($this,'toDoTreeView_selection_clicked'));
so do i do the same for the cell renderer? like this ?
$bool_cell_renderer->connect('toggled',array($this,'done_toggled',$store));
where can i read up more on connect so i can understand what i am doing.
Kind regards,
Suomaf
Besides the manual, there are some entries in the PHP-Gtk2 Blog on signals:


http://www.writingup.com/phpgtk2/0006_widget_interaction_events_signals_masks_and_callbacks

http://www.writingup.com/phpgtk2/0007_widget_interaction_revisited

http://www.writingup.com/phpgtk2/0008_php_gtk2_gui_programming_multiple_signals

http://www.writingup.com/phpgtk2/0009_passing_arguments_to_callback_functions

http://www.writingup.com/phpgtk2/0010_widget_interaction_connect_simple

http://www.writingup.com/phpgtk2/0015_variations_on_signal_connections

Take care.

-Ron T.
--
Ron Tarrant
Blog:<A HREF="http://www.writingup.com/blog/phpgtk2">PHP-Gtk2</A>
Loading...