[balsa/gtk4: 292/294] Various: Build with GTK < 4.4




commit 50e8f29f07ec1f30c62582a9477debc3a6241672
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jul 20 12:19:14 2021 -0400

    Various: Build with GTK < 4.4
    
    modified:   src/balsa-mblist.c
    modified:   src/main-window.c
    modified:   src/sendmsg-window.c

 src/balsa-mblist.c   | 4 ++++
 src/main-window.c    | 4 ++++
 src/sendmsg-window.c | 4 ++++
 3 files changed, 12 insertions(+)
---
diff --git a/src/balsa-mblist.c b/src/balsa-mblist.c
index f24e77e10..cbe997b80 100644
--- a/src/balsa-mblist.c
+++ b/src/balsa-mblist.c
@@ -814,7 +814,11 @@ bmbl_drag_drop(GtkDropTarget *drop_target,
 {
     GdkDrop *drop;
 
+#if       GTK_CHECK_VERSION(4, 4, 0)
     drop = gtk_drop_target_get_current_drop(drop_target);
+#else  /* GTK_CHECK_VERSION(4, 4, 0) */
+    drop = gtk_drop_target_get_drop(drop_target);
+#endif /* GTK_CHECK_VERSION(4, 4, 0) */
     if (drop == NULL)
         return FALSE;
 
diff --git a/src/main-window.c b/src/main-window.c
index 898dbc7fa..dfac2259c 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -2799,7 +2799,11 @@ bw_notebook_tab_drag_drop(GtkDropTarget *drop_target,
 {
     GdkDrop *drop;
 
+#if       GTK_CHECK_VERSION(4, 4, 0)
     drop = gtk_drop_target_get_current_drop(drop_target);
+#else  /* GTK_CHECK_VERSION(4, 4, 0) */
+    drop = gtk_drop_target_get_drop(drop_target);
+#endif /* GTK_CHECK_VERSION(4, 4, 0) */
     if (drop == NULL)
         return FALSE;
 
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 6932817af..c4081e8c1 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -2380,7 +2380,11 @@ sw_address_view_drop(GtkDropTarget *drop_target,
     GdkDrop *drop;
     const char *address;
 
+#if       GTK_CHECK_VERSION(4, 4, 0)
     drop = gtk_drop_target_get_current_drop(drop_target);
+#else  /* GTK_CHECK_VERSION(4, 4, 0) */
+    drop = gtk_drop_target_get_drop(drop_target);
+#endif /* GTK_CHECK_VERSION(4, 4, 0) */
 
     if (drop == NULL || !G_VALUE_HOLDS_STRING(value))
         return FALSE;


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