Re: Removing global variables





On Wed, Nov 26, 2014 at 3:16 PM, Alexandre Bique <bique alexandre gmail com> 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 this way it would be possible to run many gtk main loop in
different threads but in the same process.

You can run any number of event loops in a process. You can only run 1 GTK main loop.
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]