Re: Invisible GtkImage

2013-06-26 Thread Kip Warner
On Mon, 2013-06-24 at 13:56 -0700, Andrew Potter wrote: Actually, it occurs to me that Kip is almost certainly going to want to change the size request methods to: def do_get_preferred_width(self): pw = self.pb.get_width() return (0, pw) def

Set Focus to GtkEntry when GtkNotebook Tab selected

2013-06-26 Thread Thomas A. Moulton
I have the following object: GtkWindow GtkNotebook GtkBox GtkScrolledWindow, GtkTextArea GtkEntry I am trying to have the Entry get focus when I change Tabs When the program starts it does focus on Tab 1's entry but I can not get it to keep focus without clicking the

Re: Contribute to Pango source.

2013-06-26 Thread Behdad Esfahbod
On 13-06-25 01:43 PM, Pranay Samanta wrote: Hello, I have implemented a few features (like Monospace and PANGO_WRAP_HYPHEN) using pango and pangoft2. I was wondering if I could get that code reviewed and contribute in the next update of Pango. However, I could not find any guidelines or

Waiting forGMainLoop events

2013-06-26 Thread Bogdan Lotko
Hello, Is it possible to wait for GMainLoop event without processing them? the following pseudo-code illustrates the problem: while( notEndLoop ) { waitForEvent(); lockMutex; // Run a single iteration g_main_context_iteration( context, false ); unlockMutex } Please note,

Cannot compile Gtk# v2.8.5

2013-06-26 Thread Orton, Steven J (IS)
Hello listers, This is my first post here. I'll explain my situation, while trying not to forget any important details. Then I'll pose my question. I am on a project that has many GUIs running on Linux boxes written in Motif. We are switching everything to Windows and C#. The look and

Re: Cannot compile Gtk# v2.8.5

2013-06-26 Thread Paul Davis
On Wed, Jun 26, 2013 at 5:12 PM, Orton, Steven J (IS) steve.or...@ngc.comwrote: I am on a project that has many GUIs running on Linux boxes written in Motif. We are switching everything to Windows and C#. The look and feel of the GUIs must remain the same. My task is to find a way to

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Wed, 2013-06-26 at 19:02 +0200, Bogdan Lotko wrote: Hello, Is it possible to wait for GMainLoop event without processing them? the following pseudo-code illustrates the problem: while( notEndLoop ) { waitForEvent(); lockMutex; // Run a single iteration

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Wed, 2013-06-26 at 14:32 -0700, Kip Warner wrote: On Wed, 2013-06-26 at 19:02 +0200, Bogdan Lotko wrote: Hello, Is it possible to wait for GMainLoop event without processing them? the following pseudo-code illustrates the problem: while( notEndLoop ) { waitForEvent();

Re: Waiting forGMainLoop events

2013-06-26 Thread Bogdan Lotko
Hello Kip, Thank you for the answer. Unfortunately this will not help. If the method Runs a single iteration of the mainloop as stated in the documentation it's not OK - I won't be able to lock the mutex. By the way, if I correctly understand the documentation the g_main_context_iteration(

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Thu, 2013-06-27 at 00:33 +0200, Bogdan Lotko wrote: Hello, unfortunately the gtk_events_pending() does not block. I'd like to avoid the loop with sleep(). with best regards, bogdan Hey Bogdan. Yes, you are right. Could you maybe tell us a little bit more about what it is that you

Re: Waiting forGMainLoop events

2013-06-26 Thread Paul Davis
geez, does nobody read docs any more ? https://developer.gnome.org/glib/2.30/glib-The-Main-Event-Loop.html#g-main-context-pending On Wed, Jun 26, 2013 at 6:38 PM, Kip Warner k...@thevertigo.com wrote: On Thu, 2013-06-27 at 00:33 +0200, Bogdan Lotko wrote: Hello, unfortunately the

Re: Waiting forGMainLoop events

2013-06-26 Thread Paul Davis
sorry wrong link. same page, near top, see Customizing the main loop iteration On Wed, Jun 26, 2013 at 6:43 PM, Paul Davis p...@linuxaudiosystems.comwrote: geez, does nobody read docs any more ? https://developer.gnome.org/glib/2.30/glib-The-Main-Event-Loop.html#g-main-context-pending On

Re: Waiting forGMainLoop events

2013-06-26 Thread Bogdan Lotko
Hello, geez, does nobody read docs any more ? yes: :-) Checks if any sources have pending events for the given context. What about blocking? regards, b On 6/27/2013 00:43, Paul Davis wrote: geez, does nobody read docs any more ?

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Wed, 2013-06-26 at 18:43 -0400, Paul Davis wrote: geez, does nobody read docs any more ? Chill. https://developer.gnome.org/glib/2.30/glib-The-Main-Event-Loop.html#g-main-context-pending sorry wrong link. same page, near top, see Customizing the main loop iteration I am probably just

Re: Waiting forGMainLoop events

2013-06-26 Thread Paul Davis
On Wed, Jun 26, 2013 at 6:49 PM, Kip Warner k...@thevertigo.com wrote: On Wed, 2013-06-26 at 18:43 -0400, Paul Davis wrote: geez, does nobody read docs any more ? Chill. https://developer.gnome.org/glib/2.30/glib-The-Main-Event-Loop.html#g-main-context-pending sorry wrong link. same

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Wed, 2013-06-26 at 19:04 -0400, Paul Davis wrote: while (1) { call prepare call query, which will block. do stuff. then call dispatch. do more stuff. } g_main_context_query () polls. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred

Re: Waiting forGMainLoop events

2013-06-26 Thread Paul Davis
the OP asked: Is it possible to wait for GMainLoop event without processing them? query polls but does not process events. only dispatch does that. On Wed, Jun 26, 2013 at 7:09 PM, Kip Warner k...@thevertigo.com wrote: On Wed, 2013-06-26 at 19:04 -0400, Paul Davis wrote: while (1) {

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Wed, 2013-06-26 at 19:16 -0400, Paul Davis wrote: the OP asked: Is it possible to wait for GMainLoop event without processing them? He said after that that he'd like to avoid a loop with sleep (polling). query polls but does not process events. only dispatch does that. Maybe that's

Re: Waiting forGMainLoop events

2013-06-26 Thread Paul Davis
by definition you cannot determine if events are ready without something semantically equivalent to poll(2). whether or not you block in that poll-equivalent thing is a different story. using a main loop that never blocks is a design error. it implies burning cpu time for no reason, which

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Wed, 2013-06-26 at 19:23 -0400, Paul Davis wrote: by definition you cannot determine if events are ready without something semantically equivalent to poll(2). whether or not you block in that poll-equivalent thing is a different story. You knew what I meant. -- Kip Warner -- Software

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Thu, 2013-06-27 at 01:41 +0200, Bogdan Lotko wrote: poll() is not sleep()! Hey Bogdan. It depends what you mean. I think we're all saying the same thing, but differently. All polling that doesn't hammer a resource has to sleep, but the caller doesn't explicitly have to do this because the

Re: Waiting forGMainLoop events

2013-06-26 Thread Jasper St. Pierre
So, Bogdan, I'm going to ask the question: why do you want to do this? It's a very unusual use of GMainLoop. What problem are you trying to solve? On Wed, Jun 26, 2013 at 7:45 PM, Kip Warner k...@thevertigo.com wrote: On Thu, 2013-06-27 at 01:41 +0200, Bogdan Lotko wrote: poll() is not

Re: Waiting forGMainLoop events

2013-06-26 Thread Kip Warner
On Wed, 2013-06-26 at 20:00 -0400, Jasper St. Pierre wrote: So, Bogdan, I'm going to ask the question: why do you want to do this? It's a very unusual use of GMainLoop. What problem are you trying to solve? Something else I'd like to preface Jasper's question with is another one. Bogdon, are

Re: Fwd: [rt.cpan.org #83490] options.t fails for non-utf8 locale

2013-06-26 Thread intrigeri
Hi, Brian Manning wrote (25 Jun 2013 18:30:56 GMT) : Please try the attached patch and let me know if it works. It does, thanks! Cheers, -- intrigeri | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc | OTR fingerprint @