Re: Panel changes for 4.4
Alexander Iliev <[email protected]>
| Newsgroups | gmane.comp.desktop.xfce.goodies.devel |
|---|---|
| Message-ID | <[email protected]> |
Jasper Huijsmans <[email protected]> wrote: > Alexander Iliev wrote: > > Hei, I thought of another addition to the new API: > > > > gboolean xfce_panel_plugin_test_availability(gchar > > **return_msg); > > > > Good idea, but I think it should be sufficient to have a > 'Unique = True' > field in the .desktop file for the plugin. I can't really > think of a > situation where this wouldn't work. > > Jasper > _______________________________________________ > xfce-goodies-dev mailing list > [email protected] > http://lists.berlios.de/mailman/listinfo/xfce-goodies-dev > Ok, since this is pretty similar to my previous suggestion some more explanation would be needed. First - the idea is pretty different here. It's not about plugin being unique or not, it's about cheching for certain conditions which should be fulfilled. Take for example the xkb plugin. If I run a Xvnc server and connect to the server there is no XKB extension available (Xvnc does not implement XKB). So the xkb plugin could not function at all. As a result the panel currently crashes. This is firstly plugin's fault and I'm working on a rewrite of this plugin which sould handle such situations more gracefully. I also know that with the new out-of-process plugins a crash in one plugin should not crash the whole panel. But nevertheless I think such API would be of help in making XFCE more user-oriented desktop. I think having such a function is a good thing, since the plugin writers can use it to check for certain conditions needed to run their plugins. If the plugin doesn't depend on any such conditions or the plugin writer doesn't want to implement it the simpliest thing is to "return TRUE;". I think it wouldn't be hard to implement this from the panel side. It might slow the add new item dialog (or whatever it will become in the future), but this is pretty rarely performed task. Hey, that's just my opinion. :-) It's up to you, I just think such an API would help in creating a more "usable" desktop environment. Best regards, Alexander -------------------------------------- Това писмо е изпратено от www.mail.bg Безплатната поща в mail.bg предлага: - Силна защита срещу СПАМ/рекламни писма - 30MB безплатно (SMS от 2лв=3GB!) - 30MB макс. размер на прикачен файл - SMS за ново писмо (всички оператори) - WAP достъп от GSM и без компютър - Безплатен POP3 достъп - 24 часов телефон за помощ/поддръжка ______________________________________ БЕЗ ИЗЛИШНИ ВЪПРОСИ РЕГИСТРИРАЙТЕ СВОЙ БЕЗПЛАТЕН АДРЕС НА http://www.mail.bg