[Fix?] Compilation of src/toolbar-factory broken after recent changes
Albrecht Dreß <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.balsa |
|---|---|
| Message-ID | <[email protected]> |
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. _______________________________________________ balsa-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/balsa-list
fix_toolbar_factory.diff
(text/x-patch, 599 B)
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,
signature.asc
(application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJZQ+w9AAoJEEypbw5n59n4A8YH/0Yx3QqBzOIf14a+lVRFHigP iF++aDzMAALolf82KgZ8CanA0Y/nrlGwE5YiG1T0BJC6IBLQwpZKZoXNtZHpctqr anHzKZY4MmWxm/jzpslyaOKE5+65EUzFy6GoXezhmqnsPEjO0uq1e4McQOqiol2L +eSx/kYo7FXtDuNFLxNY2MomFO9Be032bd241G+4lkdiM9Rn308yiVtRH04XeEnO RqBZC1SmJY+pCiU94VID0NUKCT41Llw2/EJ9ofI5N/+rw0DVBJbjVeJ8Pg0eUHco p2vtpzKvtTCXhs7tTHHrxscweh0uhIYMhsn3Qndw7xDO3ux4ki/xoRl5E9M2ats= =kOee -----END PGP SIGNATURE-----