commit bb9ff083b3b2ca72151b19e4d12a4adde00663f0
parent de1e608d067b237fc8738afc50a1d7cb04b7348f
Author: NunoSempere <nuno.semperelh@protonmail.com>
Date: Sat, 20 Jul 2024 18:09:50 -0400
GTK4: validate compilation with gtk3
Diffstat:
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/config.h b/config.h
@@ -2,7 +2,7 @@
#include <gdk/gdk.h> // <gdk/gdkenums.h>, <gdk/gdkkeysyms.h>
// GKG 3 or GKG 4
-# define GKG_NUM 4
+# define GKG_NUM 3
// Key user config
#define WIDTH 1920 // 960 for half-width, 1920 for full width
diff --git a/makefile b/makefile
@@ -7,8 +7,8 @@ DEBUG= # -g
STD=-std=c99 # maybe consider moving to c11 and using safer string handling
# Dependencies
-# DEPS='webkit2gtk-4.1'
-DEPS='webkitgtk-6.0'
+DEPS='webkit2gtk-4.1'
+# DEPS='webkitgtk-6.0'
INCS=`pkg-config --cflags ${DEPS}`
LIBS=`pkg-config --libs ${DEPS}`
diff --git a/rosenrot.c b/rosenrot.c
@@ -2,14 +2,12 @@
#include <stdlib.h>
#include <string.h>
+#include "config.h"
#if GKG_NUM == 3
#include <webkit2/webkit2.h>
#elif GKG_NUM == 4
#include <webkit/webkit.h>
#endif
-
-
-#include "config.h"
#include "plugins/plugins.h"
/* Global declarations */