From 342b5cf7ddfae01289358c99ddc423d33e96e9c6 Mon Sep 17 00:00:00 2001 From: vhaudiquet Date: Sun, 23 Jul 2023 15:20:23 +0200 Subject: [PATCH] Refactor --- Makefile | 6 +++--- src/ui/main-window.c | 2 +- src/ui/panels/{empty_panel.c => empty-panel.c} | 2 +- src/ui/panels/{empty_panel.h => empty-panel.h} | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename src/ui/panels/{empty_panel.c => empty-panel.c} (96%) rename src/ui/panels/{empty_panel.h => empty-panel.h} (100%) diff --git a/Makefile b/Makefile index 76ea2a2..46c71ed 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ NAME=ginput CC=gcc -CFLAGS=$(shell pkg-config --cflags gtk4) $(shell pkg-config --cflags libadwaita-1) -O3 -I src -LDFLAGS=$(shell pkg-config --libs gtk4) $(shell pkg-config --libs libadwaita-1) +CFLAGS=$(shell pkg-config --cflags gtk4 libadwaita-1) -O3 -I src +LDFLAGS=$(shell pkg-config --libs gtk4 libadwaita-1) BUILD_DIR=build CMB := $(wildcard ui/*.cmb) @@ -43,4 +43,4 @@ clean: .PHONY: run .SILENT: run run: all - XDG_DATA_DIRS=./$(BUILD_DIR) ./$(BUILD_DIR)/ginput \ No newline at end of file + XDG_DATA_DIRS=./$(BUILD_DIR) ./$(BUILD_DIR)/ginput diff --git a/src/ui/main-window.c b/src/ui/main-window.c index be9c546..63cebe3 100644 --- a/src/ui/main-window.c +++ b/src/ui/main-window.c @@ -1,7 +1,7 @@ #define G_LOG_DOMAIN "main-window" #include "main-window.h" -#include "panels/empty_panel.h" +#include "panels/empty-panel.h" #include diff --git a/src/ui/panels/empty_panel.c b/src/ui/panels/empty-panel.c similarity index 96% rename from src/ui/panels/empty_panel.c rename to src/ui/panels/empty-panel.c index 67b92c1..d36595f 100644 --- a/src/ui/panels/empty_panel.c +++ b/src/ui/panels/empty-panel.c @@ -1,4 +1,4 @@ -#include "empty_panel.h" +#include "empty-panel.h" struct _EmptyPanel { diff --git a/src/ui/panels/empty_panel.h b/src/ui/panels/empty-panel.h similarity index 100% rename from src/ui/panels/empty_panel.h rename to src/ui/panels/empty-panel.h