Re: Flickering with Socket and Plug

2017-09-30 Thread René Hansen
Hey Eric, > I usually just test on ubuntu16.04 with GTK3.18. Now you have me > checking a few things with GTK3.22. I have been working on a small > drawing program that doesn't use sockets or plugs and it does the same > flickering on GTK3.22 especially with animation but it works fine with >

Re: Flickering with Socket and Plug

2017-09-30 Thread René Hansen
> If the GtkSocket and GtkPlug can be fixed they should be. They have > worked at least through version 3.18 and have never been deprecated. It > would be a good thing if they worked for all of GTK3 and the last stable > version of 3.22 for consistency. Ok, I've reported the bug here:

Re: Flickering with Socket and Plug

2017-09-29 Thread René Hansen
You are right! > Looking around it looks like the GtkPlug and GtkSocket never got > deprecated but I don't see them in the master branch anymore. Look at this commit: https://git.gnome.org/browse/gtk+/commit/?id=021fe010b6cbf5119938efbad3122ef2854fc62b and this article:

Re: Flickering with Socket and Plug

2017-09-28 Thread René Hansen
* from a plugin and add that to our own Gtk::Window. On Tue, Sep 26, 2017 at 1:54 PM, René Hansen <r...@hansen-audio.de <mailto:r...@hansen-audio.de>> wrote: Hey Eric, It looks like you are trying to paint a surface 100 times every 16ms. Maybe not such a good

Re: Flickering with Socket and Plug

2017-09-28 Thread René Hansen
Hey Eric, > I looked at this a little more and can get the flicker. Testing on > Ubuntu16.04 with GTK3.18 it works without flicker and on Ubuntu16.04 > with a jhbuild of GTK3.22 it does flicker. I tweaked your code a little > so that I could test it a little easier. Good, that you can reproduce

Re: Flickering with Socket and Plug

2017-09-26 Thread René Hansen
Hey Eric, It looks like you are trying to paint a surface 100 times every 16ms. Maybe not such a good thing to do. Yes, I agree but that's on purpose in order to make the problem *very* obvious ;) In one of my projects I draw round about 25 bitmaps (which partly overlap) onto the

Re: Flickering with Socket and Plug

2017-09-24 Thread René Hansen
> But you seems to do the drawing completely wrong. > > Generally gtk_widget_queue_draw() is involved in the drawing process, > that is that your timer does not do the drawing directly, but only > invalidates the widget, which cause a indirect draw. True, you are right. I had a look at a bunch

Flickering with Socket and Plug

2017-09-24 Thread René Hansen
Hey GTK list, I've uploaded a demo app on https://github.com/rehans/GtkSocketPlugDemo It is very simple and just creates a GtkWindow with a GtkSocket child. A GtkPlug with an GtkDrawingArea attached is connected to the socket. The GtkDrawingArea redraws itself every 16ms and simply paints an