Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-05 Thread John Emmas
I've taken a quick look at gdk_window_flush() and gdk_window_process_updates() but they both require me to pass a pointer to GdkWindow. My top level 'widget' is a Gnome::Canvas (essentially an enhancement of GktLayout, from what I can tell). My now line is a Gnome::Canvas::Line which is

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-05 Thread Tadej Borovšak
Hi. But how/where do I acquire a pointer to the canvas's GdkWindow?? gtk_widget_get_window() function is probably what you're looking for. Call this on your canvas and then force updates on it. I'm not sure how this is called in gtkmm though, but I'm sure you'll be able to find it. Tadej --

GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread John Emmas
Anyone who's familiar with the MS Windows API will know that it contains a function called UpdateWindow(). A call to UpdateWindow() forces the specified window's client area to be repainted immediately (i.e. bypassing any other messages or operations that may be pending for the window). Is

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread Alexander Nagel
Hi, i'm using gtk_events_pending to realize this. HTH Alexander Am 04.07.2010 15:38, schrieb John Emmas: Anyone who's familiar with the MS Windows API will know that it contains a function called UpdateWindow(). A call to UpdateWindow() forces the specified window's client area to be

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread Nader Morshed
I believe you're looking for: gtk_widget_queue_draw() On Sun, 4 Jul 2010 14:38:57 +0100 John Emmas john...@tiscali.co.uk wrote: Anyone who's familiar with the MS Windows API will know that it contains a function called UpdateWindow(). A call to UpdateWindow() forces the specified window's

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread John Emmas
On 4 Jul 2010, at 16:11, Nader Morshed wrote: I believe you're looking for: gtk_widget_queue_draw() On 4 Jul 2010, at 15:02, Alexander Nagel wrote: i'm using gtk_events_pending to realize this. Thanks guys - but if I'm reading the documentation correctly I don't think either of those

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread jcupitt
On 4 July 2010 16:50, John Emmas john...@tiscali.co.uk wrote: operation being processed.  Neither of those is quite what I need.  I'm looking for is a function that will force a window to be repainted at once, before any other pending events get processed. There's

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread Claudio Saavedra
On Sun, 2010-07-04 at 16:50 +0100, John Emmas wrote: I'm looking for is a function that will force a window to be repainted at once, before any other pending events get processed. There is hardly any reason why you would want to do that, unless you want to write very bad code. But if you

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread Lance Dillon
- Original Message From: jcup...@gmail.com jcup...@gmail.com To: John Emmas john...@tiscali.co.uk Cc: gtk-app-devel-list gtk-app-devel-list@gnome.org Sent: Sun, July 4, 2010 12:51:52 PM Subject: Re: GTK/GDK equivalent to UpdateWindow() ? On 4 July 2010 16:50, John Emmas href

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread John Emmas
On 4 Jul 2010, at 17:51, jcup...@gmail.com wrote: What are you trying to achieve? Perhaps there's some other way to get the effect you need. Actually John, it's the same problem that I had in my other thread (where I was trying to draw a now line onto a scrolling canvas). Here's what I