From afe6f502c326350cc31d34646d5000a964321525 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 17 Sep 2010 18:39:59 -0400 Subject: Use new GDK keysym names if available. In GTK+ 2.21.8, the keysym names were renamed from GDK_* to GDK_KEY_*. I've added backward-compatibility macors to gtk-compat.h, which can be dumped as soon as we require GTK+ >= 2.22.0. --- widgets/misc/e-signature-manager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'widgets/misc/e-signature-manager.c') diff --git a/widgets/misc/e-signature-manager.c b/widgets/misc/e-signature-manager.c index e9a04b8641..d6d021cd3d 100644 --- a/widgets/misc/e-signature-manager.c +++ b/widgets/misc/e-signature-manager.c @@ -28,6 +28,9 @@ #include "e-signature-tree-view.h" #include "e-signature-script-dialog.h" +/* backward-compatibility cruft */ +#include "e-util/gtk-compat.h" + #define E_SIGNATURE_MANAGER_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ ((obj), E_TYPE_SIGNATURE_MANAGER, ESignatureManagerPrivate)) @@ -81,7 +84,7 @@ static gboolean signature_manager_key_press_event_cb (ESignatureManager *manager, GdkEventKey *event) { - if (event->keyval == GDK_Delete) { + if (event->keyval == GDK_KEY_Delete) { e_signature_manager_remove_signature (manager); return TRUE; } -- cgit v1.2.3