Re: $list->selection

From: Date: Tue, 13 Mar 2001 18:13:30 +0000
Subject: Re: $list->selection
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-797@lists.php.net to get a copy of this message
Em Seg 12 Mar 2001 14:17, Edward A. McLain escreveu: > should be: > $list->connect('select-row', 'function name to call'); > that's it.. it then passes the GTK Widget, row, column, and event.. so > forinstance: > > $list->connect('select-row', 'hanlde_select'); > > function handle_select($gtkwidget, $row, $column, $even) > { > $blah = $gtkwidget->get_text($row, 0, $bleh); > if ($blah) { > print "you clicked on $bleh\n"; > } > print "value could not be retrieved.\n"; > } > } > > Well, I've changed my list to clist. But I'm having a problem, $gtkwidget->get_text($row, 0, $bleh); returns 1 everytime. $row is all right. What is the 3th argument on get_text? On perl-gtk there only two, row and col. Any clues? -- Iuri Fiedoruk Santa Maria, RS, Brazil

« previous php.gtk (#797) next »