[nautilus/gnome-3-20] notebook: removed unused ifdef code



commit 39c55e2f1807e7d1e8b028f483484498c5c82f69
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Mar 17 16:32:05 2016 +0100

    notebook: removed unused ifdef code

 src/nautilus-notebook.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c
index db31124..ec6aa31 100644
--- a/src/nautilus-notebook.c
+++ b/src/nautilus-notebook.c
@@ -46,12 +46,6 @@ static int  nautilus_notebook_insert_page     (GtkNotebook *notebook,
 static void nautilus_notebook_remove    (GtkContainer *container,
                                          GtkWidget *tab_widget);
 
-static const GtkTargetEntry url_drag_types[] = 
-{
-       { NAUTILUS_ICON_DND_GNOME_ICON_LIST_TYPE, 0, NAUTILUS_ICON_DND_GNOME_ICON_LIST },
-       { NAUTILUS_ICON_DND_URI_LIST_TYPE, 0, NAUTILUS_ICON_DND_URI_LIST },
-};
-
 enum
 {
        TAB_CLOSE_REQUEST,
@@ -173,19 +167,6 @@ nautilus_notebook_init (NautilusNotebook *notebook)
 
        g_signal_connect (notebook, "button-press-event",
                          (GCallback)button_press_cb, NULL);
-
-       /* Set up drag-and-drop target */
-       /* TODO this would be used for opening a new tab.
-        * It will only work properly as soon as GtkNotebook 
-        * supports to find out whether a particular point
-        * is on a tab button or not.
-        */
-#if 0
-       gtk_drag_dest_set (GTK_WIDGET (notebook), 0,
-                          url_drag_types, G_N_ELEMENTS (url_drag_types),
-                          GDK_ACTION_LINK);
-       gtk_drag_dest_set_track_motion (GTK_WIDGET (notebook), TRUE);
-#endif
 }
 
 gboolean


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