Re: [Geany-devel] get build command from a plugin
On Sat, 4 Feb 2012 09:23:33 +1100 Lex Trotman ele...@gmail.com wrote: I tested with the following code in plugin_init(): build_set_menu_item(GEANY_BCS_PROJ, GEANY_GBG_EXEC, 1, GEANY_BC_LABEL, boza); Can you post the problem plugin, or better reproduce the problem with demoplugin so we can eliminate other issues. My mistake of some sort. With a clean clone (I'm using patched Geany) and the demoplugin, the problem is gone. -- E-gards: Jimmy ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] Opening unmounted GIO URIs
On Thu, 02 Feb 2012 14:46:03 +0100, Colomban wrote: if the mount won't finish in a short time, the user doesn't know what's happening and probably only notices that Geany doesn't start because no GUI is shown. So, I think at the very least we would need some sort of timeout, a short timeout, to cancel the mount operation if it takes too long. Not sure what exactly is 'too long', maybe a few seconds. Or even better (and more complex) we would show the user a dialog with a pulsing progressbar or so stating that a mount operation is in progress. A cancel button would be a big bonus but probabaly not necessarily needed. Good point, here you go with a dialog, pulse cancel: https://github.com/b4n/geany/commit/540e6b28d8ce461b44f6fd4dce32c38167bca99b Cool! Having a modal dialog also has the advantage of blocking user interaction on the main window, addressing a part of Lex's worries. Just as a funny note, implementing all this required some more hackery because GVfsDaemon (bridge of all remote FS) doesn't actually honor cancellation even though the API is supposed to provide it. Not so cool. So, here it is with a progress dialog cancellation support. I tested it a bit, particularly the opening a second URI from the CLI while waiting to mount a first one, and it looked like it worked fine: mounted the stuff and/or asked for details, each after the other, no weird concurrency. Though, if anyone wants to test it a bit more, it can't be wrong. Nice. I'll test it tomorrow maybe if I find time. One more thought, though this is less important and can be done later as well: we could move the GIO code into a separate file to have it separated from the rest. But as said, this is not that important and can be done later. Just an idea. Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.asc pgpllW32Jwjo6.pgp Description: PGP signature ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] Opening unmounted GIO URIs
Am 31.01.2012 01:30, schrieb Colomban Wendling: Hey Nick, Matthew, Lex, Frank, Enrico, whoever cares, https://github.com/b4n/geany/commit/01fd682674286dada6d6b77d0e3064c89a28df64 FWIW, I find it a strange feature for an IDE. While it provides conviniences, I'm not sure it should be core functionality. Perhaps a plugin would be a better fit? Best regards. ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
[Geany-devel] Running build commands on windows
Hi Colomban, RE your discussion on IRC about $subject To save you searching, some info about g_spawn not working (right) on windows, and that it won't be fixed: http://article.gmane.org/gmane.editors.geany.devel/583 and it appears that it was always recognised that splitting on space wasn't an elegant way of generating argv for windows, and the problems that causes for filenames containing spaces, but nobody has been concerned enough to fix it :) see: http://lists.uvena.de/geany/2007-November/002082.html There is no discussion on why windows commands were used in the first place, but given the first reference above I guess it might still not be possible to avoid it. Cheers Lex ___ Geany-devel mailing list Geany-devel@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel