[Github-comments] [geany] Fix for "Open in New Window". (#637)
zhekov
notifications at xxxxx
Fri Sep 4 18:05:14 UTC 2015
> @@ -52,6 +52,17 @@ CommandLineOptions;
> extern CommandLineOptions cl_options;
>
>
> +/* Information about command line entries that can not be stored in GOptionEntry. */
> +typedef struct
> +{
> + gboolean persistent; /* The option should be passed to "New Window" */
> +}
> +GeanyOptionEntryAux;
> +
> +extern GOptionEntry optentries[];
> +extern GeanyOptionEntryAux optentries_aux[];
The argv parsing happens in GLib. A function may be executed at any time after that. We can't simply get them from the original argv.
I'd rather export a function returning the reproduced GPtrArray (or simply char **). This way, we can extend it reproduce different sets of options, should need be. And GeanyOptionEntryAux is trivial to extend...
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/637/files#r38778268
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20150904/b0f744f5/attachment.html>
More information about the Github-comments
mailing list