[nautilus/wip/ernestask/gtk4-continued: 145/272] canvas-container: Fix signal parameter types



commit 977f896a333c0249f6764652f09ca34284ab0306
Author: Ernestas Kulik <ernestask gnome org>
Date:   Fri Jun 22 14:10:15 2018 +0300

    canvas-container: Fix signal parameter types
    
    Currently, G_TYPE_POINTER is used, but GdkEvent defines a type of its
    own.

 src/nautilus-canvas-container.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-canvas-container.c b/src/nautilus-canvas-container.c
index 37fc2db63..ec031088d 100644
--- a/src/nautilus-canvas-container.c
+++ b/src/nautilus-canvas-container.c
@@ -3855,9 +3855,9 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
                         G_STRUCT_OFFSET (NautilusCanvasContainerClass,
                                          context_click_selection),
                         NULL, NULL,
-                        g_cclosure_marshal_VOID__POINTER,
+                        g_cclosure_marshal_generic,
                         G_TYPE_NONE, 1,
-                        G_TYPE_POINTER);
+                        GDK_TYPE_EVENT);
     signals[CONTEXT_CLICK_BACKGROUND]
         = g_signal_new ("context-click-background",
                         G_TYPE_FROM_CLASS (class),
@@ -3865,9 +3865,9 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
                         G_STRUCT_OFFSET (NautilusCanvasContainerClass,
                                          context_click_background),
                         NULL, NULL,
-                        g_cclosure_marshal_VOID__POINTER,
+                        g_cclosure_marshal_generic,
                         G_TYPE_NONE, 1,
-                        G_TYPE_POINTER);
+                        GDK_TYPE_EVENT);
     signals[MIDDLE_CLICK]
         = g_signal_new ("middle-click",
                         G_TYPE_FROM_CLASS (class),
@@ -3877,7 +3877,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
                         NULL, NULL,
                         g_cclosure_marshal_VOID__POINTER,
                         G_TYPE_NONE, 1,
-                        G_TYPE_POINTER);
+                        GDK_TYPE_EVENT);
     signals[GET_ICON_URI]
         = g_signal_new ("get-icon-uri",
                         G_TYPE_FROM_CLASS (class),


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