[nautilus/wip/ernestask/gtk4-continued: 2/50] canvas-container: Remove unused signal



commit c3daf46fadf16698cf3616bfb0446ea4dfeaeeda
Author: Ernestas Kulik <ernestask gnome org>
Date:   Mon Jul 23 18:56:48 2018 +0300

    canvas-container: Remove unused signal

 src/nautilus-canvas-container.c | 12 ------------
 src/nautilus-canvas-view.c      | 11 -----------
 2 files changed, 23 deletions(-)
---
diff --git a/src/nautilus-canvas-container.c b/src/nautilus-canvas-container.c
index 976cf1116..db91e84a3 100644
--- a/src/nautilus-canvas-container.c
+++ b/src/nautilus-canvas-container.c
@@ -191,7 +191,6 @@ enum
     ACTIVATE_PREVIEWER,
     BAND_SELECT_STARTED,
     BAND_SELECT_ENDED,
-    CAN_ACCEPT_ITEM,
     CONTEXT_CLICK_BACKGROUND,
     CONTEXT_CLICK_SELECTION,
     MIDDLE_CLICK,
@@ -3590,17 +3589,6 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
                         NULL, NULL,
                         g_cclosure_marshal_generic,
                         G_TYPE_STRING, 0);
-    signals[CAN_ACCEPT_ITEM]
-        = g_signal_new ("can-accept-item",
-                        G_TYPE_FROM_CLASS (class),
-                        G_SIGNAL_RUN_LAST,
-                        G_STRUCT_OFFSET (NautilusCanvasContainerClass,
-                                         can_accept_item),
-                        NULL, NULL,
-                        g_cclosure_marshal_generic,
-                        G_TYPE_INT, 2,
-                        G_TYPE_POINTER,
-                        G_TYPE_STRING);
     signals[BAND_SELECT_STARTED]
         = g_signal_new ("band-select-started",
                         G_TYPE_FROM_CLASS (class),
diff --git a/src/nautilus-canvas-view.c b/src/nautilus-canvas-view.c
index 00f0b0810..6d532f80f 100644
--- a/src/nautilus-canvas-view.c
+++ b/src/nautilus-canvas-view.c
@@ -1228,15 +1228,6 @@ nautilus_canvas_view_sort_directories_first_changed (NautilusFilesView *director
     nautilus_canvas_container_sort (get_canvas_container (canvas_view));
 }
 
-static gboolean
-canvas_view_can_accept_item (NautilusCanvasContainer *container,
-                             NautilusFile            *target_item,
-                             const char              *item_uri,
-                             NautilusFilesView       *view)
-{
-    return nautilus_drag_can_accept_item (target_item, item_uri);
-}
-
 static char *
 canvas_view_get_container_uri (NautilusCanvasContainer *container,
                                NautilusFilesView       *view)
@@ -1347,8 +1338,6 @@ initialize_canvas_container (NautilusCanvasView      *canvas_view,
                              G_CALLBACK (canvas_view_move_copy_items), canvas_view, 0);
     g_signal_connect_object (canvas_container, "get-container-uri",
                              G_CALLBACK (canvas_view_get_container_uri), canvas_view, 0);
-    g_signal_connect_object (canvas_container, "can-accept-item",
-                             G_CALLBACK (canvas_view_can_accept_item), canvas_view, 0);
 
     gtk_container_add (GTK_CONTAINER (content_widget),
                        GTK_WIDGET (canvas_container));


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