[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-user
Subject:    Re: [Gambas-user] FileView and Files ".desktop"
From:       <gambas () users ! sourceforge ! net>
Date:       2015-05-24 19:04:55
Message-ID: 556220D7.20807 () users ! sourceforge ! net
[Download RAW message or body]

Le 24/05/2015 20:35, herberth guzman a =E9crit :
> Hi Benoit
>
> Benoit,  Fabien created a class called DesktopApps, that class is what
> allows me to show my panel applications ("Innova").

I don't know what that class is.

>
> I am a rookie and I find it hard.
> My work is slow and long.
> I want to convert  ("Innova") at a Desktop in the future.
>
> To display the contents of my Desktop unify Class_FileView with
> Class_DesktopApps to make it more attractive for the user.
>
> Attached a picture.
>
> Questions?
>
> 1.- FileView  can show the icons("png") related of one file ".desktop", a=
nd
> Run.
> If this is possible could you give me an example of how to do please.

The example is the Gambas source code of FileView.

To get the desktop file associated with a file you use the =

DesktopMime.FromFile() method.

It returns a DesktopMime object that represents the desktop file. Then =

you have a GetIcon() method to get the icon associated with that desktop =

file.

You should run carefully the freedesktop desktop file specifications to =

understand everything.

Regards,

-- =

Beno=EEt Minisini

---------------------------------------------------------------------------=
---
One dashboard for servers and applications across Physical-Virtual-Cloud =

Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic