[Github-comments] [geany] Fix for "Open in New Window". (#637)

Matthew Brush notifications at xxxxx
Thu Sep 3 23:52:57 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[];

We could add a function in libmain.c which could be called at argv parsing time and save a GPtrArray containing the `argv` to be forwarded into the already global `GeanyApp` structure. It would have the advantage of keeping all of the `argv`/GOption parsing code in the same file/place too.

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/637/files#r38709998
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20150903/d746307e/attachment.html>


More information about the Github-comments mailing list