Re: gtk_widget_set_double_buffered() is deprecated, so what can replace it?

2014-11-26 Thread Paul Davis
On Thu, Nov 27, 2014 at 4:18 AM, Jasper St. Pierre wrote: > Hey, > > I just built Quickscope from source, and can't find any code that draws > using cairo inside it. Where is it? > i think that quickplot and quickscope are not the same thing. ___ gtk-d

Re: gtk_widget_set_double_buffered() is deprecated, so what can replace it?

2014-11-26 Thread Jasper St. Pierre
Hey, I just built Quickscope from source, and can't find any code that draws using cairo inside it. Where is it? On Wed, Nov 26, 2014 at 6:08 PM, Lance Arsenault wrote: > Hi Emmanuele, > > apps using X11 to draw directly should stop doing that, because this is >> not 1997 any more, and we hav

Re: gtk_widget_set_double_buffered() is deprecated, so what can replace it?

2014-11-26 Thread Lance Arsenault
Hi Emmanuele, apps using X11 to draw directly should stop doing that, because this is not 1997 any more, and we have better drawing API. Many many apps need a faster drawing API than Cairo in order to do high frame rate animations. Interactive games is the most popular example. I have an

Re: gtk_widget_set_double_buffered() is deprecated, so what can replace it?

2014-11-26 Thread Emmanuele Bassi
hi; On 26 November 2014 at 18:40, Lance Arsenault wrote: > Hello GTK developer, > > I've read the latest docs, looked at the latest (git) GTK+3 code, and > searched the archives, and found not direct answer to this question: > > 1. Is there a method, that is not deprecated, that can give the eff

Re: gtk_widget_set_double_buffered() is deprecated, so what can replace it?

2014-11-26 Thread Jasper St. Pierre
On Wed, Nov 26, 2014 at 10:40 AM, Lance Arsenault wrote: > Hello GTK developer, > > I've read the latest docs, looked at the latest (git) GTK+3 code, and > searched the archives, and found not direct answer to this question: > > 1. Is there a method, that is not deprecated, that can give the eff

gtk_widget_set_double_buffered() is deprecated, so what can replace it?

2014-11-26 Thread Lance Arsenault
Hello GTK developer, I've read the latest docs, looked at the latest (git) GTK+3 code, and searched the archives, and found not direct answer to this question: 1. Is there a method, that is not deprecated, that can give the effect of gtk_widget_set_double_buffered() for GTK3? There are a l

Re: Removing global variables

2014-11-26 Thread Alexandre Bique
On Wed, Nov 26, 2014 at 3:31 PM, Emmanuele Bassi wrote: > hi; > > On 26 November 2014 at 14:22, Alexandre Bique > wrote: >> On Wed, Nov 26, 2014 at 3:17 PM, Emmanuele Bassi wrote: >>> you mean apart from the major breakage of API, the massive >>> complication of the internals, and the portabili

Re: Removing global variables

2014-11-26 Thread Emmanuele Bassi
hi; On 26 November 2014 at 14:22, Alexandre Bique wrote: > On Wed, Nov 26, 2014 at 3:17 PM, Emmanuele Bassi wrote: >> you mean apart from the major breakage of API, the massive >> complication of the internals, and the portability issues? > > It is about adding a pointer to a context. > > GtkCtx

Re: Removing global variables

2014-11-26 Thread Alexandre Bique
On Wed, Nov 26, 2014 at 3:17 PM, Emmanuele Bassi wrote: > you mean apart from the major breakage of API, the massive > complication of the internals, and the portability issues? It is about adding a pointer to a context. GtkCtx *gtk_ctx = gtk_ctx_new(); GtkWindow *window = gtk_window_new(); gtk_

Re: Removing global variables

2014-11-26 Thread Emmanuele Bassi
hi; On 26 November 2014 at 14:15, Alexandre Bique wrote: > On Wed, Nov 26, 2014 at 3:12 PM, Emmanuele Bassi wrote: >> if you want to do: >> >> Thread 1: gtk_init() → GUI → gtk_main() >> Thread 2: gtk_init() → GUI → gtk_main() >> ... >> Thread N: gtk_init() → GUI → gtk_main() >> >> then n

Re: Removing global variables

2014-11-26 Thread Alexandre Bique
On Wed, Nov 26, 2014 at 3:12 PM, Emmanuele Bassi wrote: > if you want to do: > > Thread 1: gtk_init() → GUI → gtk_main() > Thread 2: gtk_init() → GUI → gtk_main() > ... > Thread N: gtk_init() → GUI → gtk_main() > > then no: you cannot achieve that with GTK+, and there are no plans to > all

Re: Removing global variables

2014-11-26 Thread Emmanuele Bassi
hi; On 26 November 2014 at 14:05, Alexandre Bique wrote: > On Wed, Nov 26, 2014 at 2:58 PM, Paul Davis > wrote: >> this is all part of the many reasons why these toolkits are problematic. Qt >> has similar issues. The correct answer would depend on the host, which is >> obviously not a desirab

Re: Removing global variables

2014-11-26 Thread Alexandre Bique
On Wed, Nov 26, 2014 at 2:58 PM, Paul Davis wrote: > this is all part of the many reasons why these toolkits are problematic. Qt > has similar issues. The correct answer would depend on the host, which is > obviously not a desirable condition to have to understand. And so what do you think of my

Re: Removing global variables

2014-11-26 Thread Alexandre Bique
On Wed, Nov 26, 2014 at 2:58 PM, Paul Davis wrote: > this is all part of the many reasons why these toolkits are problematic. Qt > has similar issues. The correct answer would depend on the host, which is > obviously not a desirable condition to have to understand. So I don't understand. Emmanue

Re: Removing global variables

2014-11-26 Thread Paul Davis
On Wed, Nov 26, 2014 at 3:52 PM, Alexandre Bique wrote: > > So the plugin has to initialize its UI toolkit and render it. But as > all the plugins are loaded in the same process, for performances > reason, it is unsafe to run gtk_main_loop() in each of them. > this is all part of the many reason

Re: Removing global variables

2014-11-26 Thread Emmanuele Bassi
hi; On 26 November 2014 at 13:52, Paul Davis wrote: >> > You can run any number of event loops in a process. You can only run 1 >> > GTK main loop. >> >> So can I run one event loop in a thread, do my UI without having a >> gtk_main_loop? > > > first of all, if the host is written with GTK then

Re: Removing global variables

2014-11-26 Thread Alexandre Bique
On Wed, Nov 26, 2014 at 2:46 PM, Bernhard Schuster wrote: > "VST like plugins" - elaborate please. > > I am sure one can handle pretty much anything using g_main_context fun, but > please provide more information on what you want to achieve exactly. A VST plugin is a virtual instrument or effect.

Re: Removing global variables

2014-11-26 Thread Paul Davis
On Wed, Nov 26, 2014 at 3:42 PM, Alexandre Bique wrote: > On Wed, Nov 26, 2014 at 2:35 PM, Paul Davis > wrote: > > You can run any number of event loops in a process. You can only run 1 > GTK main loop. > > So can I run one event loop in a thread, do my UI without having a > gtk_main_loop? > fi

Re: Removing global variables

2014-11-26 Thread Bernhard Schuster
"VST like plugins" - elaborate please. I am sure one can handle pretty much anything using g_main_context fun, but please provide more information on what you want to achieve exactly. Best Bernhard On Nov 26, 2014 2:42 PM, "Alexandre Bique" wrote: > On Wed, Nov 26, 2014 at 2:35 PM, Paul Davis

Re: Removing global variables

2014-11-26 Thread Alexandre Bique
On Wed, Nov 26, 2014 at 2:35 PM, Paul Davis wrote: > You can run any number of event loops in a process. You can only run 1 GTK > main loop. So can I run one event loop in a thread, do my UI without having a gtk_main_loop? On Wed, Nov 26, 2014 at 2:35 PM, Paul Davis wrote: > On Wed, Nov 26, 20

Re: Removing global variables

2014-11-26 Thread Paul Davis
On Wed, Nov 26, 2014 at 3:16 PM, Alexandre Bique wrote: > I need that for implement plugin's UI, like VST plugins. > GTK (and all other desktop, non-statically linkable toolkits) are a particularly poor engineering choice for these types of plugins. __

Re: Removing global variables

2014-11-26 Thread Paul Davis
On Wed, Nov 26, 2014 at 3:16 PM, Alexandre Bique wrote: > Hi, > > I wonder if it would be possible to remove gtk's global variables? > I'd like to do something like: > > GtkCtx *gtk_ctx = gtk_init(..); > GtkWindow *window = gtk_window_new(gtk_ctx, ...); > ... > gtk_main_loop(gtk_ctx); > > So in t

Removing global variables

2014-11-26 Thread Alexandre Bique
Hi, I wonder if it would be possible to remove gtk's global variables? I'd like to do something like: GtkCtx *gtk_ctx = gtk_init(..); GtkWindow *window = gtk_window_new(gtk_ctx, ...); ... gtk_main_loop(gtk_ctx); So in this way it would be possible to run many gtk main loop in different threads b

Re: GdkGLContext for Mac OS X Quartz backend patches

2014-11-26 Thread Emmanuel Briot
> The cairo patch is provisional and may need further work; basic problem is > that a quartz surface created for a window takes its device scale into > account on the Quartz (CGContext) side but the cairo side doesn't know about > it and treats it like a 1x-scaled surface. This was leading many