Hello!

PCMan has written on Thursday,  6 June, at 18:33:
>On Thu, Jun 6, 2013 at 6:05 PM, Andrej N. Gritsenko <[email protected]> wrote:
>>     I've got a brilliant idea about menu plugins (both applications menu
>> and directories menu): both can be done via LibFM. What advantages we'll
>> get from such move:

>> 1) no own code to handle things, only widget representations (Gtk or Qt),
>> and you all know that code duplication isn't good to support;
>> 2) handler (i.e. LibFM) not depends on graphic toolkit, so it can be very
>> easily implemented either for Gtk or for Qt;
>> 3) easy implementation for drag&drop menu editing with LibFM 1.2 because
>> those menu-change operations will be implemented in it;
>> 4) drop LXShortcut dependency - in LibFM 1.2 there will be an _external_
>> plugin to edit the desktop entry properties which depends only on Gtk and
>> LibFM (i.e. no libfm-gtk dependency), and it's easily portable to Qt.

>>     What do you think about it? I believe it's easy to implement and to
>> replace old fat LXPanel plugins in next LXPanel version. :)

>Actually, that's exactly one of my plans.
>That's why I linked lxpanel2 and lxpanel-qt against libfm.
>I did not do it in lxpanel2 because it's gtk3-based and libfm-gtk at
>that time supports gtk2 only. Since gtk2 and gtk3 cannot be used in
>the same program, it's not possible to do this.

    LibFM at the time you experimented with lxpanel2 has no own VFS yet
so it had no advantages at that time but do it via libfm-gtk has a lot of
disadvantages too. Now it can be done without any libfm-gtk touch at all,
as I said above. :)

>Now, since we stop moving to gtk3 and will keep gtk2 for quite a long
>time, it's a good idea to do it for lxpanel. So please do it.

    As soon I finish my work on libfm-1.2, I'll make lxshortcut2 as the  
demo how to use it - I believe it will be a very simple application as
it will just make a dialog-container and all work on it will be done by
libfm, so it will do: a) parse commandline options; b) create an empty
dialog with GtkBuilder; c) activate plugin; d) run dialog; e) exit. ;)

>For me, I already link lxpanel-qt against libfm and will utilize it to
>implement some applets later. FYI, a Qt based desktop panel,
>lxpanel-qt, is now under development.

    You can base menu plugin in lxpanel-qt on FmFolder already, using
menu://applications/ as root, it should work even with libfm-1.1, just
menu editing will not work yet - that will work only with libfm-1.2. :)

    Cheers!
    Andriy.

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to