Rename some Wintab-related functions
authorLuca Bacci <luca.bacci982@gmail.com>
Fri, 18 Jun 2021 09:36:08 +0000 (11:36 +0200)
committerLuca Bacci <luca.bacci982@gmail.com>
Thu, 19 Aug 2021 13:57:36 +0000 (15:57 +0200)
gdk/win32/gdkdevicemanager-win32.c
gdk/win32/gdkdevicemanager-win32.h
gdk/win32/gdkevents-win32.c

index d12666eed9dc70f71705edad01afefddfa571b9c..110991cc5a2fdd26702ad1dc4f5f08cc090cfbf1 100644 (file)
@@ -752,7 +752,7 @@ gdk_device_manager_win32_class_init (GdkDeviceManagerWin32Class *klass)
 }
 
 void
-_gdk_input_set_tablet_active (void)
+_gdk_wintab_set_tablet_active (void)
 {
   GList *tmp_list;
   HCTX *hctx;
@@ -763,7 +763,7 @@ _gdk_input_set_tablet_active (void)
   if (!wintab_contexts)
     return; /* No tablet devices found, or Wintab not initialized yet */
 
-  GDK_NOTE (INPUT, g_print ("_gdk_input_set_tablet_active: "
+  GDK_NOTE (INPUT, g_print ("_gdk_wintab_set_tablet_active: "
                             "Bringing Wintab contexts to the top of the overlap order\n"));
 
   tmp_list = wintab_contexts;
@@ -866,7 +866,7 @@ gdk_device_manager_find_wintab_device (GdkDeviceManagerWin32 *device_manager,
 }
 
 GdkEvent *
-gdk_input_other_event (GdkDisplay *display,
+gdk_wintab_make_event (GdkDisplay *display,
                        MSG        *msg,
                        GdkSurface  *window)
 {
@@ -894,7 +894,7 @@ gdk_input_other_event (GdkDisplay *display,
 
   if (window != wintab_window)
     {
-      g_warning ("gdk_input_other_event: not wintab_window?");
+      g_warning ("gdk_wintab_make_event: not wintab_window?");
       return NULL;
     }
 
@@ -905,7 +905,7 @@ gdk_input_other_event (GdkDisplay *display,
     g_object_ref (window);
 
   GDK_NOTE (EVENTS_OR_INPUT,
-           g_print ("gdk_input_other_event: window=%p %+g%+g\n",
+           g_print ("gdk_wintab_make_event: window=%p %+g%+g\n",
                window ? GDK_SURFACE_HWND (window) : NULL, x, y));
 
   if (msg->message == WT_PACKET || msg->message == WT_CSRCHANGE)
index 003be32a446435bca82e421b362dfd6943c3da24..5a93a2df41c35613d34ffb33719ced76bcad4909 100644 (file)
@@ -56,8 +56,8 @@ struct _GdkDeviceManagerWin32Class
 
 GType gdk_device_manager_win32_get_type (void) G_GNUC_CONST;
 
-void     _gdk_input_set_tablet_active (void);
-GdkEvent * gdk_input_other_event      (GdkDisplay *display,
+void     _gdk_wintab_set_tablet_active (void);
+GdkEvent * gdk_wintab_make_event      (GdkDisplay *display,
                                        MSG        *msg,
                                        GdkSurface  *window);
 
index d0bcdff8d68963ad53e397069eae91e8f85b9314..c469a886a20b666c1bbd64e3544e5e7cc47c4c84 100644 (file)
@@ -3061,7 +3061,7 @@ gdk_event_translate (MSG *msg,
            * NOTE: It doesn't seem to work well if it is done in WM_ACTIVATEAPP
            * instead
            */
-          _gdk_input_set_tablet_active ();
+          _gdk_wintab_set_tablet_active ();
         }
 
       break;
@@ -3100,7 +3100,7 @@ gdk_event_translate (MSG *msg,
       /* Fall through */
     wintab:
 
-      event = gdk_input_other_event (display, msg, window);
+      event = gdk_wintab_make_event (display, msg, window);
       if (event)
         {
           _gdk_win32_append_event (event);