Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Gtk2::SimpleList: msg#00204

gnome.gtk+.perl

Subject: Re: Gtk2::SimpleList

Hi ,

En ce jour du Sun, 30 May 2004 21:19:44 -0400,
muppet <scott@xxxxxxxxxxx> parlait ainsi :
> > Right. I'm just getting to the point where I want to use TreeViews
> > with editable data.
> > How do I know which row has been edited?
> > I can call a sub when a row_changed signal is fired, but the sub only
> > received 2 things: the simplelist that triggered the signal, and a
> > Gtk2::Gdk::Event::Button ( whatever that is ).
> > Am I supposed to do something with these to figure out which row has
> > changed?
> no, it's a little more involved than that.
Well , muppet , your answer is detailed and that was certainly the thing
to answer . But if Daniel asked for simpler things , here's what i took
back from my trip to the wnderful land of the SimpleList .

I may be mistaken but , if not , a simple

$list->set_column_editable($column,1);

will set the cell edtable in column $column and

$slist->get_model()->signal_connect("row-changed", \&somesub);

will send informations like a TreeIter and a TreePath to the callback sub
, and these things are sufficient to guess which row was edited .

No :) ?

--
David 'lacravate'
lacravate@xxxxxxxxxxxxx
tresorier@xxxxxxxxxxxxx

Perl en France
http://www.mongueurs.net


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    gcc.libstdc++.c...    solaris.opensol...    information-ret...    misc.misterhous...    web.catalyst.ge...    apache.webservi...    redhat.release....    hardware.lirc/2...    kernel.autofs/2...    technology.sust...    linux.vdr/2003-...    editors.lyx.gen...    org.user-groups...    netbsd.devel.pk...    xdg.devel/2004-...    version-control...    jakarta.slide.d...    debian.packages...    creativecommons...    ports.ppc.embed...    bug-tracking.bu...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe