PHP-GTK Client for Gemini Protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
828 B

#include "main.h"
void activate(
GtkApplication *application
) {
// Init default component
new app::Browser(
application
);
}
int main(
int argc,
char *argv[]
) {
// Create a new application
GtkApplication *application = gtk_application_new(
NULL,
G_APPLICATION_DEFAULT_FLAGS
);
// Connect events
g_signal_connect(
3 months ago
G_APPLICATION(
application
),
"activate",
G_CALLBACK(
activate
),
NULL
);
// Run the application
int status = g_application_run(
G_APPLICATION(
application
),
argc,
argv
);
// Clean up
g_object_unref(
G_APPLICATION(
application
)
);
// Result
return status;
}