[gimp/gimp-2-10] app: didn't push my latest version of the previous fix



commit 70611cb06a59851bb22112cb58b91181541a942c
Author: Michael Natterer <mitch gimp org>
Date:   Sat Oct 13 17:35:53 2018 +0200

    app: didn't push my latest version of the previous fix

 app/widgets/gimpdeviceinfo.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/widgets/gimpdeviceinfo.c b/app/widgets/gimpdeviceinfo.c
index 1f6af89a6d..c82340dafb 100644
--- a/app/widgets/gimpdeviceinfo.c
+++ b/app/widgets/gimpdeviceinfo.c
@@ -190,7 +190,7 @@ gimp_device_info_constructed (GObject *object)
         info->axes[i] = gdk_device_get_axis_use (info->device, i);
 
       info->n_keys = gdk_device_get_n_keys (info->device);
-      info->keys = g_new0 (GimpDeviceKey, info->n_keys);
+      info->keys = g_new0 (GdkDeviceKey, info->n_keys);
       for (i = 0; i < info->n_keys; i++)
         gdk_device_get_key (info->device, i,
                             &info->keys[i].keyval,
@@ -279,8 +279,8 @@ gimp_device_info_set_property (GObject      *object,
                                      gdk_device_get_n_keys (device));
 
             info->n_keys = n_device_values;
-            info->keys   = g_renew (GimpDeviceKey, info->keys, info->n_keys);
-            memset (info->keys, 0, info->n_keys * sizeof (GimpDeviceKey));
+            info->keys   = g_renew (GdkDeviceKey, info->keys, info->n_keys);
+            memset (info->keys, 0, info->n_keys * sizeof (GdkDeviceKey));
 
             for (i = 0; i < n_device_values; i++)
               {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]