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
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
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
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,
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
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
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
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();
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(
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
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
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
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 ?
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
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
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
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) {
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
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
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
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
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
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
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 @
24 matches
Mail list logo