Re: GtkApplication and argc/arv
- From: Morten Welinder <mortenw gnome org>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkApplication and argc/arv
- Date: Thu, 10 Mar 2011 09:41:10 -0500
> Sorry, I don't understand. Could you explain in more detail?
If you need to run two different windows in two different locales, then
single-instance is not possible. For Gnumeric this happens regularly
due to the world's decimal separator mess.
The reason you cannot do this in a single instance is that (a) setlocale
is not thread safe, and (b) libraries like gtk+ like to start their own
threads out of your control.
> Why would
> two separate instances (separate processes) of the same app care if
> setlocale is not thread safe?
They wouldn't. I didn't mean to imply that.
Morten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]