Re: Gtk3::Application and vfuncs causing segfault

Hi Jeffrey,

On Sun, Jun 3, 2018 at 9:28 PM Jeffrey Ratcliffe <jffry posteo net> wrote:
However, if I rewrite the vfunc version to build the UI in the startup method, it segfaults during the Gtk3::ApplicationWindow->new($app) call.

Call SUPER::STARTUP before that; quoting Gtk-3.0→Application→Constructors→new docs:
Concretely, gtk_init() is called in the default handler for the GApplication::startup signal. Therefore, GtkApplication subclasses should chain up in their GApplication::startup handler before using any GTK+ API.


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