[nautilus] window: Remove unused code for sidebar



commit 1e2a07e0b2b71aa706a70574f92ffa00182ba1b6
Author: Corey Berla <corey berla me>
Date:   Mon Apr 25 12:34:12 2022 -0700

    window: Remove unused code for sidebar
    
    Remove code that now exists in src/gtk/nautilusgtkplacessidebar.c

 src/nautilus-window.c | 43 -------------------------------------------
 1 file changed, 43 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index f8b1a9110..88f9a581f 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -901,16 +901,6 @@ open_location_cb (NautilusWindow             *window,
                                              NULL, window, NULL);
 }
 
-static void
-places_sidebar_unmount_operation_cb (NautilusWindow  *window,
-                                     GMountOperation *mount_operation)
-{
-    g_signal_connect (mount_operation, "show-unmount-progress",
-                      G_CALLBACK (show_unmount_progress_cb), NULL);
-    g_signal_connect (mount_operation, "aborted",
-                      G_CALLBACK (show_unmount_progress_aborted_cb), NULL);
-}
-
 /* Callback used when the places sidebar needs us to present an error message */
 static void
 places_sidebar_show_error_message_cb (NautilusGtkPlacesSidebar *sidebar,
@@ -1134,33 +1124,6 @@ get_window_xid (NautilusWindow *window)
     return 0;
 }
 
-static void
-add_menu_separator (GtkWidget *menu)
-{
-    GtkWidget *separator;
-
-    separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
-    gtk_box_append (GTK_BOX (menu), separator);
-    gtk_widget_show (separator);
-}
-
-#if 0 && SIDEBAR_MENU_ITEMS_NEEDS_GTK4_REIMPLEMENTATION
-static void
-places_sidebar_populate_popup_cb (NautilusGtkPlacesSidebar *sidebar,
-                                  GtkWidget                *menu,
-                                  GFile                    *selected_file,
-                                  GVolume                  *selected_volume,
-                                  gpointer                  user_data)
-{
-    NautilusWindow *window = NAUTILUS_WINDOW (user_data);
-    GtkWidget *menu_item;
-    GAction *action;
-
-    g_clear_object (&window->selected_file);
-    g_clear_object (&window->selected_volume);
-}
-#endif
-
 static void
 nautilus_window_set_up_sidebar (NautilusWindow *window)
 {
@@ -1187,12 +1150,6 @@ nautilus_window_set_up_sidebar (NautilusWindow *window)
     g_signal_connect (window->places_sidebar, "drag-perform-drop",
                       G_CALLBACK (places_sidebar_drag_perform_drop_cb), window);
 #endif
-#if 0 && SIDEBAR_MENU_ITEMS_NEEDS_GTK4_REIMPLEMENTATION
-    g_signal_connect (window->places_sidebar, "populate-popup",
-                      G_CALLBACK (places_sidebar_populate_popup_cb), window);
-#endif
-    g_signal_connect (window->places_sidebar, "unmount",
-                      G_CALLBACK (places_sidebar_unmount_operation_cb), window);
 }
 
 void


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