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



commit dd2bfc33153c5f9ba2ddfcd895de5a58176d1f8e
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 e1e4ad129..1550dc071 100644
--- a/src/nautilus-canvas-container.c
+++ b/src/nautilus-canvas-container.c
@@ -3856,9 +3856,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),
@@ -3866,9 +3866,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),
@@ -3878,7 +3878,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]