#include static void app_activate (GtkApplication *app, gpointer *user_data){ GtkBuilder *builder = gtk_builder_new_from_file("builder.ui"); GObject* window = gtk_builder_get_object(builder, "window"); gtk_window_set_application(GTK_WINDOW(window),app); g_object_unref(builder); gtk_window_present(GTK_WINDOW(window)); g_print("Started\n"); } int main (int argc, char **argv){ GtkApplication *app = gtk_application_new ("file.manager", G_APPLICATION_DEFAULT_FLAGS); g_signal_connect (app, "activate", G_CALLBACK(app_activate),NULL); int status = g_application_run (G_APPLICATION (app), argc, argv); g_object_unref(app); return status; }