Re: gio async usage from gtk+ ...

2011-03-25 Thread Michael Meeks
Hi there, On Fri, 2011-03-25 at 14:47 +, Michael Meeks wrote: > I'll build a package to test your patch in a second too. Well - the patch solves the problem for me; inasmuch as I can no longer make it crash (or assert fail) like it used to. Also - if I tweak it to: $name

Re: GtkApplication and argc/arv

2011-03-25 Thread Matthias Clasen
On Fri, Mar 25, 2011 at 1:08 PM, Colin Walters wrote: > On Fri, Mar 25, 2011 at 12:39 PM, Petr Tomasek wrote: >> >> Wait... So it won't be possible with gnome-shell/gtk3 applications >> to have two instances of the same program started with two different >> locales? > > By default, yes, that is c

Re: GtkApplication and argc/arv

2011-03-25 Thread Colin Walters
On Fri, Mar 25, 2011 at 12:39 PM, Petr Tomasek wrote: > > Wait... So it won't be possible with gnome-shell/gtk3 applications > to have two instances of the same program started with two different > locales? By default, yes, that is correct. Application authors can do whatever they want to suppor

Re: GtkApplication and argc/arv

2011-03-25 Thread Petr Tomasek
On Thu, Mar 10, 2011 at 09:01:51AM -0500, Morten Welinder wrote: > > What global state, for instance? > > locale? > > As a reminder, setlocale is not thread-safe. > > M. Wait... So it won't be possible with gnome-shell/gtk3 applications to have two instances of the same program started with two

Re: GtkApplication and argc/arv

2011-03-25 Thread Colin Walters
On Mon, Mar 21, 2011 at 6:03 AM, Murray Cumming wrote: > > I very much like the re-show-instead-of-reopening idea, and miss it > since I stopped using MacOS 7.3. However, I don't understand why this > should require a single process. How do you recommend apps implement this then?

Re: decrease widget show time

2011-03-25 Thread czk
Thanks, I ever use oprofile, but it didn't help me much. May I to try sysprof. 2011/3/25 Tomeu Vizoso > 2011/3/21 czk : > > Following is my test program and test result: > > As someone else said on this thread, most of the time is likely going > into some lazy initializations and not on showing

Re: gio async usage from gtk+ ...

2011-03-25 Thread Michael Meeks
Hi Alex, On Fri, 2011-03-25 at 12:28 +0100, Alexander Larsson wrote: > I had a look, and its not true that none take the lock, they just call > gdk_threads_enter() directly, not the GDK_THREADS_ENTER macro. However, > there were quite a few places that had it missing. Ah - fair enough; I

Re: gio async usage from gtk+ ...

2011-03-25 Thread Alexander Larsson
On Thu, 2011-03-24 at 12:53 +, Michael Meeks wrote: > Hi guys, > And I wonder where the GDK_THREADS_ENTER / GDK_THREADS_LEAVE that we > need when entering from an idle handler is. > > Presumably this is necessary for every '_async' callback that occurs > [ and lets hope they are 1

Re: decrease widget show time

2011-03-25 Thread Tomeu Vizoso
2011/3/21 czk : > Following is my test program and test result: As someone else said on this thread, most of the time is likely going into some lazy initializations and not on showing widgets. If you are going to do any work that may require looking at performance issues then you are going to nee

Re: gio async usage from gtk+ ...

2011-03-25 Thread Alexander Larsson
On Thu, 2011-03-24 at 12:53 +, Michael Meeks wrote: > Hi guys, > > I was just digging into a libreoffice assertion failure when using the > gtk+ file selector: > > Gtk:ERROR:gtkfilesystemmodel.c:746:gtk_file_system_model_sort: assertion > failed: (r == n_visible_rows) > > which l