app: some forgotten s/GDK_foo/GDK_KEY_foo/

This commit is contained in:
Michael Natterer 2011-03-29 18:53:02 +02:00
parent 7c60bb5181
commit 1cdaa2846f
5 changed files with 10 additions and 9 deletions

View File

@ -21,7 +21,6 @@
#include <gegl.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "libgimpbase/gimpbase.h"
#include "libgimpmath/gimpmath.h"

View File

@ -410,7 +410,7 @@ crop_tool_can_crop (GimpTestFixture *fixture,
0 /*modifiers*/);
/* Crop */
gimp_test_utils_synthesize_key_event (GTK_WIDGET (shell), GDK_Return);
gimp_test_utils_synthesize_key_event (GTK_WIDGET (shell), GDK_KEY_Return);
gimp_test_run_mainloop_until_idle ();
/* Make sure the new image has the expected size */

View File

@ -285,7 +285,7 @@ keyboard_zoom_focus (GimpTestFixture *fixture,
factor_before_zoom = gimp_zoom_model_get_factor (shell->zoom);
/* Do the zoom */
gimp_test_utils_synthesize_key_event (GTK_WIDGET (window), GDK_plus);
gimp_test_utils_synthesize_key_event (GTK_WIDGET (window), GDK_KEY_plus);
gimp_test_run_mainloop_until_idle ();
/* Make sure the zoom focus point remained fixed */
@ -299,7 +299,7 @@ keyboard_zoom_focus (GimpTestFixture *fixture,
/* First of all make sure a zoom happend at all. If this assert
* fails, it means that the zoom didn't happen. Possible causes:
*
* * gdk_test_simulate_key() failed to map 'GDK_plus' to the proper
* * gdk_test_simulate_key() failed to map 'GDK_KEY_plus' to the proper
* 'plus' X keysym, probably because it is mapped to a keycode
* with modifiers like 'shift'. Run "xmodmap -pk | grep plus" to
* find out. Make sure 'plus' is the first keysym for the given

View File

@ -946,7 +946,7 @@ gimp_curve_view_key_press (GtkWidget *widget,
switch (kevent->keyval)
{
case GDK_Left:
case GDK_KEY_Left:
for (i = i - 1; i >= 0 && ! handled; i--)
{
gimp_curve_get_point (curve, i, &x, NULL);
@ -960,7 +960,7 @@ gimp_curve_view_key_press (GtkWidget *widget,
}
break;
case GDK_Right:
case GDK_KEY_Right:
for (i = i + 1; i < curve->n_points && ! handled; i++)
{
gimp_curve_get_point (curve, i, &x, NULL);
@ -974,7 +974,7 @@ gimp_curve_view_key_press (GtkWidget *widget,
}
break;
case GDK_Up:
case GDK_KEY_Up:
if (y < 1.0)
{
y = y + (kevent->state & GDK_SHIFT_MASK ?
@ -986,7 +986,7 @@ gimp_curve_view_key_press (GtkWidget *widget,
}
break;
case GDK_Down:
case GDK_KEY_Down:
if (y > 0)
{
y = y - (kevent->state & GDK_SHIFT_MASK ?
@ -998,7 +998,7 @@ gimp_curve_view_key_press (GtkWidget *widget,
}
break;
case GDK_Delete:
case GDK_KEY_Delete:
gimp_curve_delete_point (curve, i);
break;

View File

@ -58,6 +58,8 @@
#define GDK_KEY_v GDK_v
#define GDK_KEY_plus GDK_plus
#define GDK_KEY_minus GDK_minus
#define GDK_KEY_Delete GDK_Delete
#define GDK_KEY_plus GDK_plus
#endif