Re: Removing global variables



On Wed, Nov 26, 2014 at 3:17 PM, Emmanuele Bassi <ebassi gmail com> 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_widget_set_ctx(window, gtk_ctx);
gtk_main_loop_ctx(gtk_ctx);

Would that work without breaking the actual interface?
Then yes the internals would not an update pass.

-- 
Alexandre Bique


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