Hi, I recently started to need to open 2 different instances of geany on windows to fit the two monitors and realized that the right click on tab --> Open in New Window does not work in windows os.
I also tried the nightly build and the bug is still not fixed.
I wanted to ask you if you plan to fix it for the next release and otherwise if there is a howto about building geany on windows (or how to cross compile it from linux) so that I can fix the bug myself and send you the patch.
Thank you for your work, All the Best, Giuseppe.
On 17 March 2015 at 10:21, Giuseppe Penone giuspen@gmail.com wrote:
Hi, I recently started to need to open 2 different instances of geany on windows to fit the two monitors and realized that the right click on tab --> Open in New Window does not work in windows os.
I also tried the nightly build and the bug is still not fixed.
I wanted to ask you if you plan to fix it for the next release
Is it reported as a bug, don't see it in github issues although it might be in saucefudge but like some other Geany devs I can't/won't access that any more.
and otherwise if there is a howto about building geany on windows (or how to cross compile it from linux)
I understand cross compile works but its new and I don't know if its documented yet, @b4n?
Building on windows is addressed on the website and HACKING IIRC.
Cheers Lex
so that I can fix the bug myself and send you the patch.
Thank you for your work, All the Best, Giuseppe.
Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Le 17/03/2015 01:52, Lex Trotman a écrit :
[…]
and otherwise if there is a howto about building geany on windows (or how to cross compile it from linux)
I understand cross compile works but its new and I don't know if its documented yet, @b4n?
It's as straightforward as any cross-compiltaion -- so it's not really. It's actually relatively easy, but as we have extra library dependencies, the boring part is to collect the Windows libraries and setup the various environment variables so the tools find them. Apart that it's the standard mechanism for the build system you use, e.g. for Autotools it'd be --host=i686-w64-mingw32 (or similar depending on what host you actually want to build for).
There is some docs at http://www.geany.org/Support/CrossCompile -- it's a bit outdated, but the basis are there.
Building on windows is addressed on the website and HACKING IIRC.
Indeed, see http://www.geany.org/Support/BuildingOnWin32 This uses Windows makefiles, but you can also use Waf if you prefer. The environment setup step is the same in both cases anyway.
Regards, Colomban
Many thanks for the replies, I found the guide to build for win32 I'll do it soon.
To Jiri thanks for the tip I tried to add geany.exe to the system path but this does not fix the issue in the current release, I'll try Colomban fix.
One more thing that I'll play with is that when you close a maximized window, the size stored in the preferences is the maximized one which is wrong. If I unmaxize the window the next time it still keeps the whole monitor size so you don't almost realize if the window is maximized or not. Furthermore a window closed on second monitors opens then anyway on the first. I have this working fine in an application of mine will try to port the code and submit a patch.
Cheers, Giuseppe. On 17 Mar 2015 13:30, "Colomban Wendling" lists.ban@herbesfolles.org wrote:
Le 17/03/2015 01:52, Lex Trotman a écrit :
[…]
and otherwise if there is a howto about building geany on windows (or how to cross
compile
it from linux)
I understand cross compile works but its new and I don't know if its documented yet, @b4n?
It's as straightforward as any cross-compiltaion -- so it's not really. It's actually relatively easy, but as we have extra library dependencies, the boring part is to collect the Windows libraries and setup the various environment variables so the tools find them. Apart that it's the standard mechanism for the build system you use, e.g. for Autotools it'd be --host=i686-w64-mingw32 (or similar depending on what host you actually want to build for).
There is some docs at http://www.geany.org/Support/CrossCompile -- it's a bit outdated, but the basis are there.
Building on windows is addressed on the website and HACKING IIRC.
Indeed, see http://www.geany.org/Support/BuildingOnWin32 This uses Windows makefiles, but you can also use Waf if you prefer. The environment setup step is the same in both cases anyway.
Regards, Colomban _______________________________________________ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
On Tue, Mar 17, 2015 at 1:21 AM, Giuseppe Penone giuspen@gmail.com wrote:
Hi, I recently started to need to open 2 different instances of geany on windows to fit the two monitors and realized that the right click on tab --> Open in New Window does not work in windows os.
I also tried the nightly build and the bug is still not fixed.
I wanted to ask you if you plan to fix it for the next release and otherwise if there is a howto about building geany on windows (or how to cross compile it from linux) so that I can fix the bug myself and send you the patch.
Thank you for your work, All the Best, Giuseppe.
Hi Giuseppe,
I don't use Windows myself but did some work in this area recently to make it work it on os x so I'm familiar with the code a bit. I think the only thing you need to do is to put the location of geany.exe into your PATH environment variable so geany can find it (it just tries to run geany without checking any additional paths).
Cheers,
Jiri
Le 17/03/2015 11:16, Jiří Techet a écrit :
[…]
I don't use Windows myself but did some work in this area recently to make it work it on os x so I'm familiar with the code a bit. I think the only thing you need to do is to put the location of geany.exe into your PATH environment variable so geany can find it (it just tries to run geany without checking any additional paths).
What about this?
void utils_start_new_geany_instance(const gchar *doc_path) { gchar *exec_path = g_build_filename(utils_resource_dir(RESOURCE_DIR_PREFIX), "bin", "geany", NULL); gchar *argv[] = { exec_path, "-i", doc_path, NULL }; GError *err = NULL;
if (!utils_spawn_async(NULL, argv, NULL, 0, NULL, NULL, NULL, &err)) { g_printerr("Unable to open new window: %s", err->message); g_error_free(err); } g_free(exec_path); }
It should work on Windows, and has one additional advantage: it spawns the same Geany installation as the running one, no matter the PATH. Would something like this work on OSX? If it doesn't, we probably could keep the current thing there.
What do you think?
Regards, Colomban
Le 17/03/2015 13:37, Colomban Wendling a écrit :
Le 17/03/2015 11:16, Jiří Techet a écrit :
[…]
I don't use Windows myself but did some work in this area recently to make it work it on os x so I'm familiar with the code a bit. I think the only thing you need to do is to put the location of geany.exe into your PATH environment variable so geany can find it (it just tries to run geany without checking any additional paths).
What about this?
[…]
What do you think?