[Sugar-devel] [Dextrose] How to disable launching an activity, by clicking its icon, in listview ?

Ajay Garg ajay at activitycentral.com
Mon Apr 30 05:58:53 EDT 2012


Thanks a ton !!!!!!!!!!

It worked !!!!!
Like a charm !!!!!

Thanks, Thanks, Thanks.

Regards,
Ajay


On Mon, Apr 30, 2012 at 3:01 PM, Anish Mangal <anish at activitycentral.com>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Fri 27 Apr 2012 03:47:06 AM IST, Ajay Garg wrote:
> > Hi all.
> >
> > How can we disable launching an activity from the listview, by
> > merely clicking its icon? I am wanting to know the code-location,
> > where this is being  handled.
> >
> > Looking forward to a reply.
> >
> > Thanks and Regards, Ajay
> >
> >
> > _______________________________________________ Dextrose mailing
> > list Dextrose at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/dextrose
>
> I believe the relevant code is in jarabe/journal/listview.py
>
> """
> class ListView(BaseListView):
> ...
> ...
>    def __icon_clicked_cb(self, cell, path):
>        row = self.tree_view.get_model()[path]
>        metadata = model.get(row[ListModel.COLUMN_UID])
>        misc.resume(metadata)
>
> """
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJPnlvlAAoJEBoxUdDHDZVp2IgH/RBZ4cm5vu9X50ey906Ysos/
> 2bLxtJVaW1CU2ICE+8OY9miHY5ZL+Y3n+Okx+2Te0klVcOwmaoNZ9fLojE3Jrvcx
> R1GFb0Qj/JhwvC/3SteYCcz+ePyPepLiU1Y1jCoUQdLPIpZZi4/9KXS9BXTe1906
> Qp7hVzJuRQjiWHgaChoPvv6odwZ/09WzUENwSUR1QzemSeRz91ySEMipEFGT2eG0
> 9s/eo3ZM7OQ5u/yo2V55y7/LvpKg64Y1omUJQdt2eOFZr+6P18xPsLTYB78RIUK2
> 6ODDJKfyzND9JS3MdC3Q/odjJ6jWjmwYpDsWg19NvGhmS3fh5ESuF/VcNn4vztQ=
> =niTV
> -----END PGP SIGNATURE-----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120430/3a7083a7/attachment-0001.html>


More information about the Sugar-devel mailing list