[Fix?] Compilation of src/toolbar-factory broken after recent changes



Hi Peter:

your recent patch set (commit 8835d788ad2c8c4cf7000f4464f1e94c25304f2e) breaks the compilation of 
src/toolbar-factory.c on Ubuntu 16.04 LTS and Debian stable, as the GdkEvent structure does not have a time 
field.

A hopefully correct patch is attached.

Cheers,
Albrecht.
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,

Attachment: pgpJic8Vo8TMk.pgp
Description: PGP signature



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