]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/gtkutil/cursor.cpp
Fix MSYS2 issues
[xonotic/netradiant.git] / libs / gtkutil / cursor.cpp
index c524e5ea36c1e1e61232727f58b1cc93de631ad6..69e95e88aa392c37d9734c0509ed30885cfef143 100644 (file)
@@ -110,7 +110,7 @@ void FreezePointer::freeze_pointer(ui::Window window, FreezePointer::MotionDelta
        m_function = function;
        m_data = data;
 
-       handle_motion = g_signal_connect( G_OBJECT( window ), "motion_notify_event", G_CALLBACK( motion_delta ), this );
+       handle_motion = window.connect( "motion_notify_event", G_CALLBACK( motion_delta ), this );
 }
 
 void FreezePointer::unfreeze_pointer(ui::Window window)