bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix gtk check for gdk_display_get_monitor_at_window


From: Nikolas Nyby
Subject: [PATCH] Fix gtk check for gdk_display_get_monitor_at_window
Date: Sat, 18 May 2024 12:48:51 -0400

This method was introduced in gtk 3.22, so fix the conditional to
account for older versions of gtk 3.
---
 gtkwindows.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtkwindows.c b/gtkwindows.c
index ea768fe8..c731f5a5 100644
--- a/gtkwindows.c
+++ b/gtkwindows.c
@@ -105,7 +105,7 @@ dialog_mapped(GtkWidget * window, gpointer UNUSED(data))
 
     gtk_widget_get_allocation(window, &allocation);
 
-#if GTK_CHECK_VERSION(3,0,0)
+#if GTK_CHECK_VERSION(3,22,0)
     GdkDisplay *display = gtk_widget_get_display(window);
     if (!display || gdk_display_get_n_monitors(display) == 1) {
         monitorrect.x = 0;
-- 
2.45.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]