gtklock: update to 1.4.0
This commit is contained in:
parent
b77fd27513
commit
52347c0a2c
2 changed files with 3 additions and 34 deletions
|
@ -1,31 +0,0 @@
|
||||||
From 45877d5083b28ae955352710a2daf30d3497d229 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Jovan Lanik <jox969@gmail.com>
|
|
||||||
Date: Thu, 22 Sep 2022 00:33:01 +0200
|
|
||||||
Subject: [PATCH] fix old glib2 versions
|
|
||||||
|
|
||||||
---
|
|
||||||
src/gtklock.c | 8 +++++++-
|
|
||||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/src/gtklock.c b/src/gtklock.c
|
|
||||||
index cc047ce..2faf66d 100644
|
|
||||||
--- a/src/gtklock.c
|
|
||||||
+++ b/src/gtklock.c
|
|
||||||
@@ -94,10 +94,16 @@ void gtklock_idle_show(struct GtkLock *gtklock) {
|
|
||||||
gtklock->idle_hide_source = g_timeout_add_seconds(gtklock->idle_timeout, gtklock_idle_handler, gtklock);
|
|
||||||
}
|
|
||||||
|
|
||||||
+#if GLIB_CHECK_VERSION(2, 74, 0)
|
|
||||||
+ #define GTKLOCK_FLAGS G_APPLICATION_DEFAULT_FLAGS
|
|
||||||
+#else
|
|
||||||
+ #define GTKLOCK_FLAGS G_APPLICATION_FLAGS_NONE
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
struct GtkLock* create_gtklock(void) {
|
|
||||||
struct GtkLock *gtklock = g_malloc0(sizeof(struct GtkLock));
|
|
||||||
if(!gtklock) report_error_and_exit("Failed allocation");
|
|
||||||
- gtklock->app = gtk_application_new(NULL, G_APPLICATION_DEFAULT_FLAGS);
|
|
||||||
+ gtklock->app = gtk_application_new(NULL, GTKLOCK_FLAGS);
|
|
||||||
if(gtklock->use_layer_shell) g_application_hold(G_APPLICATION(gtklock->app));
|
|
||||||
gtklock->windows = g_array_new(FALSE, TRUE, sizeof(struct Window *));
|
|
||||||
gtklock->messages = g_array_new(FALSE, TRUE, sizeof(char *));
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'gtklock'
|
# Template file for 'gtklock'
|
||||||
pkgname=gtklock
|
pkgname=gtklock
|
||||||
version=1.3.7
|
version=1.4.0
|
||||||
revision=2
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_use_env=yes
|
make_use_env=yes
|
||||||
hostmakedepends="pkg-config wayland-devel scdoc"
|
hostmakedepends="pkg-config wayland-devel scdoc"
|
||||||
|
@ -11,7 +11,7 @@ maintainer="Jovan Lanik <jox969@gmail.com>"
|
||||||
license="GPL-3.0-or-later"
|
license="GPL-3.0-or-later"
|
||||||
homepage="https://github.com/jovanlanik/gtklock"
|
homepage="https://github.com/jovanlanik/gtklock"
|
||||||
distfiles="https://github.com/jovanlanik/gtklock/archive/refs/tags/v${version}.tar.gz"
|
distfiles="https://github.com/jovanlanik/gtklock/archive/refs/tags/v${version}.tar.gz"
|
||||||
checksum=38dd6a37311aa080eb9508a8f485c290edbd5b8baeb2e43cdbdc268004a85833
|
checksum=4aebf519c187eaf9dbfa1e4ecef69a806324ed287553a7a17ee8bbe7d555de29
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# copying CSS example provided
|
# copying CSS example provided
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue