[balsa] Build with Gtk version < 3.22



commit 762c3309230697a84ab41f31e9d111dab180c6b0
Author: Albrecht Dreß <albrecht dress arcor de>
Date:   Fri Jun 16 10:44:56 2017 -0400

    Build with Gtk version < 3.22
    
        * src/toolbar-factory.c (tm_popup_context_menu_cb): GdkEvent has
        no member "time"; use gtk_get_current_event_time.
    
    Signed-off-by: Peter Bloomfield <PeterBloomfield bellsouth net>

 ChangeLog             |    7 +++++++
 src/toolbar-factory.c |    6 +-----
 2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 95669f0..65ba99c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-06-16  Albrecht Dreß
+
+       Build with Gtk version < 3.22
+
+       * src/toolbar-factory.c (tm_popup_context_menu_cb): GdkEvent has
+       no member "time"; use gtk_get_current_event_time.
+
 2017-06-15  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Use gdk_event_triggers_context_menu instead of checking event
diff --git a/src/toolbar-factory.c b/src/toolbar-factory.c
index ed68cf1..8a824d4 100644
--- a/src/toolbar-factory.c
+++ b/src/toolbar-factory.c
@@ -813,11 +813,7 @@ tm_popup_context_menu_cb(GtkWidget    * toolbar,
                                  NULL);
     }
 #else                           /*GTK_CHECK_VERSION(3, 22, 0) */
-    if (event) {
-        event_time = event->time;
-    } else {
-        event_time = gtk_get_current_event_time();
-    }
+    event_time = gtk_get_current_event_time();
 
     if (button >= 0)
         gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, button,


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