summaryrefslogtreecommitdiff
path: root/bin/display.c
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2024-11-24 01:31:48 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2024-11-24 01:31:48 +0100
commit4b7da2645370361dfdb175129a24369e0cc0f977 (patch)
tree8f7531ad6b68b5bcc9c1b7f0146fedcd9b15e6f1 /bin/display.c
parentcc8792b3150f7b7f0a5a297dedd78295d4031c68 (diff)
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
Diffstat (limited to 'bin/display.c')
-rw-r--r--bin/display.c30
1 files changed, 0 insertions, 30 deletions
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 @@
1#include <gtk/gtk.h>
2#include <stdio.h>
3#include <string.h>
4
5
6static void activate(GtkApplication *app, gpointer user_data) {
7 // Create a new application window
8 GtkWidget *window = gtk_application_window_new(app);
9 gtk_window_set_title(GTK_WINDOW(window), "I2C CONTROLLER");
10 gtk_window_set_default_size(GTK_WINDOW(window), 400, 200);
11
12 // Show the window
13 gtk_window_present(GTK_WINDOW(window));
14}
15
16int main(int argc, char *argv[]) {
17 // Create a new GtkApplication
18 GtkApplication *app = gtk_application_new("com.example.GTK4Test", G_APPLICATION_FLAGS_NONE);
19
20 // Connect the activate signal
21 g_signal_connect(app, "activate", G_CALLBACK(activate), NULL);
22
23 // Run the application
24 int status = g_application_run(G_APPLICATION(app), argc, argv);
25
26 // Clean up
27 g_object_unref(app);
28
29 return status;
30}