From 4b7da2645370361dfdb175129a24369e0cc0f977 Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Sun, 24 Nov 2024 01:31:48 +0100 Subject: worked on the GUI for the application, added a couple of new features, updated the readme, added a quotes file for making a daily quote feature thats going to reset at midnight, also did some small bug fixing --- bin/display.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 bin/display.c (limited to 'bin/display.c') diff --git a/bin/display.c b/bin/display.c deleted file mode 100644 index b960ff1..0000000 --- a/bin/display.c +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include - - -static void activate(GtkApplication *app, gpointer user_data) { - // Create a new application window - GtkWidget *window = gtk_application_window_new(app); - gtk_window_set_title(GTK_WINDOW(window), "I2C CONTROLLER"); - gtk_window_set_default_size(GTK_WINDOW(window), 400, 200); - - // Show the window - gtk_window_present(GTK_WINDOW(window)); -} - -int main(int argc, char *argv[]) { - // Create a new GtkApplication - GtkApplication *app = gtk_application_new("com.example.GTK4Test", G_APPLICATION_FLAGS_NONE); - - // Connect the activate signal - g_signal_connect(app, "activate", G_CALLBACK(activate), NULL); - - // Run the application - int status = g_application_run(G_APPLICATION(app), argc, argv); - - // Clean up - g_object_unref(app); - - return status; -} -- cgit v1.2.3-70-g09d2