From: Thomas Debesse Date: Thu, 11 Mar 2021 08:23:00 +0000 (+0100) Subject: gtkutil: fix gtk3 compilation (produced build still doesn't work anyway) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e3f1d496e01b8294f27b4d90d68929a6e6f4c55d;p=xonotic%2Fnetradiant.git gtkutil: fix gtk3 compilation (produced build still doesn't work anyway) --- diff --git a/libs/gtkutil/glwidget.cpp b/libs/gtkutil/glwidget.cpp index 52cec49c..53478d0d 100644 --- a/libs/gtkutil/glwidget.cpp +++ b/libs/gtkutil/glwidget.cpp @@ -78,7 +78,7 @@ GdkGLContext *glwidget_context_created(ui::GLArea self) ui::GLArea glwidget_new(bool zbuffer) { - auto self = ui::GLArea(GTK_GL_AREA(gtk_gl_area_new())); + auto self = ui::GLArea::from(GTK_GL_AREA(gtk_gl_area_new())); gtk_gl_area_set_has_depth_buffer(self, zbuffer); gtk_gl_area_set_auto_render(self, false);