[nautilus] Remove dead code.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Remove dead code.
- Date: Mon, 26 Apr 2010 14:36:51 +0000 (UTC)
commit 2d64615521d9d6a090ef9a296e7783a73edc1f68
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Apr 11 15:07:22 2010 +0200
Remove dead code.
src/nautilus-places-sidebar.c | 21 +--------------------
1 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/src/nautilus-places-sidebar.c b/src/nautilus-places-sidebar.c
index ed507b1..15ac322 100644
--- a/src/nautilus-places-sidebar.c
+++ b/src/nautilus-places-sidebar.c
@@ -729,8 +729,6 @@ clicked_eject_button (NautilusPlacesSidebar *sidebar,
button_event->x - total_width <= eject_button_size) {
return TRUE;
}
- } else if (event->type == GDK_BUTTON_RELEASE) {
- g_object_set_data (G_OBJECT (sidebar->tree_view), "myrect", NULL);
}
if (*path != NULL) {
@@ -879,7 +877,7 @@ get_drag_data (GtkTreeView *tree_view,
unsigned int time)
{
GdkAtom target;
-
+
target = gtk_drag_dest_find_target (GTK_WIDGET (tree_view),
context,
NULL);
@@ -934,14 +932,6 @@ can_accept_items_as_bookmarks (const GList *items)
return TRUE;
}
-static void
-drag_data_delete_callback (GtkWidget *widget,
- GdkDragContext *context,
- NautilusPlacesSidebar *sidebar)
-{
- g_signal_stop_emission_by_name (widget, "drag-data-delete");
-}
-
static gboolean
drag_motion_callback (GtkTreeView *tree_view,
GdkDragContext *context,
@@ -1378,13 +1368,6 @@ check_visibility (GMount *mount,
if (mount == NULL)
*show_mount = g_volume_can_mount (volume);
}
-
-#ifdef TODO_GIO
- if (something &&
- g_find_program_in_path ("gfloppy")) {
- *show_format = TRUE;
- }
-#endif
}
static void
@@ -2623,8 +2606,6 @@ nautilus_places_sidebar_init (NautilusPlacesSidebar *sidebar)
g_signal_connect (tree_view, "key-press-event",
G_CALLBACK (bookmarks_key_press_event_cb), sidebar);
- g_signal_connect (tree_view, "drag-data-delete",
- G_CALLBACK (drag_data_delete_callback), sidebar);
g_signal_connect (tree_view, "drag-motion",
G_CALLBACK (drag_motion_callback), sidebar);
g_signal_connect (tree_view, "drag-leave",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]