[gtk+] coloreditor: Update to using GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] coloreditor: Update to using GdkEvent API
- Date: Tue, 19 Sep 2017 17:12:18 +0000 (UTC)
commit a46173980e68e936431ac7cac0bba8e35603e427
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Aug 25 16:44:29 2017 +0200
coloreditor: Update to using GdkEvent API
gtk/gtkcoloreditor.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c
index e23fcab..b43a0f2 100644
--- a/gtk/gtkcoloreditor.c
+++ b/gtk/gtkcoloreditor.c
@@ -232,7 +232,10 @@ popup_key_press (GtkWidget *popup,
GdkEventKey *event,
GtkColorEditor *editor)
{
- if (event->keyval == GDK_KEY_Escape)
+ guint keyval;
+
+ if (gdk_event_get_keyval ((GdkEvent *) event, &keyval) &&
+ keyval == GDK_KEY_Escape)
{
dismiss_current_popup (editor);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]