problems when using g_main_loop_quit from different thread

2006-03-09 Thread Armin Bauer
Hi everyone, i am experiencing random problems here if i use g_main_loop_quit from a different thread than where the GMainLoop runs. my program looks like this: 1. in main: create a new context and a new loop 2. spawn a thread 3. call g_main_loop_run in the thread on the previously created loop

Left side widget of Evolution mail client

2006-03-09 Thread Carlos Savoretti
Hi all Can anyone tell me what kind of widget is used in the left side of the main window of Evolution mail client ? I found some probable stuff in the GAL library (e-shortcut-bar) but I would need that widget showing a treeview-like menu as evolution does. Waiting for some clue, many

Re: problems when using g_main_loop_quit from different thread

2006-03-09 Thread Tristan Van Berkom
Armin Bauer wrote: Hi everyone, i am experiencing random problems here if i use g_main_loop_quit from a different thread than where the GMainLoop runs. my program looks like this: 1. in main: create a new context and a new loop 2. spawn a thread 3. call g_main_loop_run in the thread on the

Re: problems when using g_main_loop_quit from different thread

2006-03-09 Thread Tristan Van Berkom
Tristan Van Berkom wrote: My guess is that it just doent make sence to remove the mainloop while the other thread is sleeping in poll(), sure the code will lock its mutex and everything; but when the other thread wakes up; how could it deal with a gone mainloop ? Scratch that; doesnt make any

Re: Left side widget of Evolution mail client

2006-03-09 Thread David Necas (Yeti)
On Thu, Mar 09, 2006 at 01:23:38PM -0500, Carlos Savoretti wrote: Hi all Can anyone tell me what kind of widget is used in the left side of the main window of Evolution mail client ? The source code of Evolution is freely available, so anyone can tell by looking there (but no, I did not look

Re: problems when using g_main_loop_quit from different thread

2006-03-09 Thread Tristan Van Berkom
Armin Bauer wrote: Is this a known problem or am i doing something wrong? Heh, I think I figured it out; I think that after calling g_main_loop_quit(); if the thread is sleeping, you'll have to call g_main_context_wakeup() on it for _run() to return; I wonder if that is a bug or should be

Re: problems when using g_main_loop_quit from different thread

2006-03-09 Thread Armin Bauer
Tristan Van Berkom wrote: Armin Bauer wrote: Is this a known problem or am i doing something wrong? Heh, I think I figured it out; I think that after calling g_main_loop_quit(); if the thread is sleeping, you'll have to call g_main_context_wakeup() on it for _run() to return; I

buffer locking for DMA?

2006-03-09 Thread Felix Kater
Hi, I use glib on windows to allocate memory for a camera. Its DLL then uses the memory and pass it to the kernel and fill it via DMA. I have to be sure that windows doesn't move my buffer(s) later since the kernel has built its allocation table using it. With windows there are functions to

Customizing multiple selection behavior in TreeView

2006-03-09 Thread Alexander Konovalenko
There is a TreeView widget whose TreeSelection's mode is SELECTION_MULTIPLE. I'd like to change how a single mouse click (and any of the equivalent actions from the keyboard and other input methods) on a row impacts the selection. The rest of the selection UI should behave as usual: Ctrl+click

Re: selected text is PRIMARY?

2006-03-09 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/9/2006 11:38 AM, Yevgen Muntyan wrote: Hello everybody, I opened a bug http://bugzilla.gnome.org/show_bug.cgi?id=334060 , about selected text == PRIMARY gtk thing. What do people think about enabling people use gtk in 'mozilla-like' mode,

Re: selected text is PRIMARY?

2006-03-09 Thread Yevgen Muntyan
Brian J. Tarricone wrote: It's not really gtk that's in the wrong here - IMHO mozilla/firefox is buggy. mozilla allows user having multiple selections, and it doesn't clear selection when you select something else. It's not buggy, it's correct (not for everyone, of course). The document you

Re: selected text is PRIMARY?

2006-03-09 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/9/2006 3:05 PM, Yevgen Muntyan wrote: Brian J. Tarricone wrote: It's not really gtk that's in the wrong here - IMHO mozilla/firefox is buggy. mozilla allows user having multiple selections, and it doesn't clear selection when you select

Re: selected text is PRIMARY?

2006-03-09 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/9/2006 3:51 PM, Yevgen Muntyan wrote: Brian J. Tarricone wrote: mozilla allows user having multiple selections, and it doesn't clear selection when you select something else. It's not buggy, it's correct (not for everyone, of course).

Re: selected text is PRIMARY?

2006-03-09 Thread Yevgen Muntyan
Brian J. Tarricone wrote: Well, we're arguing over what boils down to a personal opinion/aesthetics, which is useless. No agreement can be made here, so let's just drop it. We can't! This is what I am talking about: I like this, and you like that, and it's impossible to satisfy both. And

Re: selected text is PRIMARY?

2006-03-09 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/9/2006 5:31 PM, Yevgen Muntyan wrote: I agree. Can we please get entry in FileChooser? Try ctrl+L. Assuming that's what you mean. As a random example, a piece of software I maintain had an option for whether or not to show application