[balsa] toolbar-factory: Stop using direct access
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] toolbar-factory: Stop using direct access
- Date: Sat, 6 Jun 2020 19:48:04 +0000 (UTC)
commit 57f138a8b4853c5041ebf2a2ed5efc17935d0581
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sat Jun 6 15:36:25 2020 -0400
toolbar-factory: Stop using direct access
Stop using direct access to GdkEvent structs. Use
gdk_event_get_event_type instead of directly accessing event->type.
* src/toolbar-factory.c (tm_popup_context_menu_cb):
ChangeLog | 9 +++++++++
src/toolbar-factory.c | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index d03489a10..fcf87d2c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2020-06-06 Peter Bloomfield <pbloomfield bellsouth net>
+
+ toolbar-factory: Stop using direct access to GdkEvent structs
+
+ Use gdk_event_get_event_type instead of directly accessing
+ event->type.
+
+ * src/toolbar-factory.c (tm_popup_context_menu_cb):
+
2020-06-06 Peter Bloomfield <pbloomfield bellsouth net>
Find in message: Make it work again
diff --git a/src/toolbar-factory.c b/src/toolbar-factory.c
index bc43f6cff..d79378112 100644
--- a/src/toolbar-factory.c
+++ b/src/toolbar-factory.c
@@ -726,7 +726,7 @@ tm_popup_context_menu_cb(GtkWidget * toolbar,
gtk_menu_attach_to_widget(GTK_MENU(menu), toolbar, NULL);
event = gtk_get_current_event();
- if (event != NULL && event->type == GDK_BUTTON_PRESS) {
+ if (event != NULL && gdk_event_get_event_type(event) == GDK_BUTTON_PRESS) {
gtk_menu_popup_at_pointer(GTK_MENU(menu), event);
} else {
gtk_menu_popup_at_widget(GTK_MENU(menu),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]