NOOP, remove trailing tabs/whitespace.
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / dndtreeview.h
index 4a3eb7b5cfe8c7dc7099347df16033dca986b055..083fee6378a861330941c6602a349ab663e950f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis 
+    Copyright (C) 2000-2007 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 namespace Gtkmm2ext {
 
 template<class DataType>
-struct LIBGTKMM2EXT_API SerializedObjectPointers {
+struct /*LIBGTKMM2EXT_API*/ SerializedObjectPointers {
     uint32_t size;
     uint32_t cnt;
     char     type[32];
     DataType data[0];
 };
 
-class LIBGTKMM2EXT_API DnDTreeViewBase : public Gtk::TreeView 
+class LIBGTKMM2EXT_API DnDTreeViewBase : public Gtk::TreeView
 {
   private:
   public:
@@ -52,7 +52,7 @@ class LIBGTKMM2EXT_API DnDTreeViewBase : public Gtk::TreeView
                Gtk::TreeView::on_drag_begin (context);
                start_object_drag ();
        }
-       
+
        void on_drag_leave(const Glib::RefPtr<Gdk::DragContext>& context, guint time) {
                suggested_action = context->get_suggested_action();
                TreeView::on_drag_leave (context, time);
@@ -73,12 +73,12 @@ class LIBGTKMM2EXT_API DnDTreeViewBase : public Gtk::TreeView
 
        struct DragData {
            DragData () : source (0) {}
-               
+
            Gtk::TreeView* source;
            int            data_column;
            std::string    object_type;
        };
-       
+
        static DragData drag_data;
 
        void start_object_drag () {
@@ -89,10 +89,10 @@ class LIBGTKMM2EXT_API DnDTreeViewBase : public Gtk::TreeView
 };
 
 template<class DataType>
-class LIBGTKMM2EXT_API DnDTreeView : public DnDTreeViewBase
+class /*LIBGTKMM2EXT_API*/ DnDTreeView : public DnDTreeViewBase
 {
   public:
-       DnDTreeView() {} 
+       DnDTreeView() {}
        ~DnDTreeView() {}
 
        sigc::signal<void,const std::list<DataType>&,Gtk::TreeView*,int,int,Glib::RefPtr<Gdk::DragContext>&> signal_drop;
@@ -112,7 +112,7 @@ class LIBGTKMM2EXT_API DnDTreeView : public DnDTreeViewBase
                        selection_data.set (8, (guchar*)&c, 1);
                }
        }
-       
+
        void on_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, const Gtk::SelectionData& selection_data, guint info, guint time) {
                if (suggested_action) {
                        /* this is a drag motion callback. just update the status to
@@ -122,14 +122,14 @@ class LIBGTKMM2EXT_API DnDTreeView : public DnDTreeViewBase
                        TreeView::on_drag_data_received (context, x, y, selection_data, info, time);
                        return;
                }
-               
+
                if (selection_data.get_target() == "GTK_TREE_MODEL_ROW") {
-                       
+
                        TreeView::on_drag_data_received (context, x, y, selection_data, info, time);
-                       
+
 
                } else if (selection_data.get_target() == object_type) {
-                       
+
                        end_object_drag (const_cast<Glib::RefPtr<Gdk::DragContext>& > (context), x, y);
 
                } else {
@@ -147,16 +147,16 @@ class LIBGTKMM2EXT_API DnDTreeView : public DnDTreeViewBase
                if (drag_data.source == 0) {
                        return;
                }
-                       
+
                Glib::RefPtr<Gtk::TreeModel> model = drag_data.source->get_model();
                DataType v;
                Gtk::TreeSelection::ListHandle_Path selection = drag_data.source->get_selection()->get_selected_rows ();
-               
+
                for (Gtk::TreeSelection::ListHandle_Path::iterator x = selection.begin(); x != selection.end(); ++x) {
                        model->get_iter (*x)->get_value (drag_data.data_column, v);
                        l.push_back (v);
                }
-               
+
                *source = drag_data.source;
        }
 
@@ -171,5 +171,5 @@ class LIBGTKMM2EXT_API DnDTreeView : public DnDTreeViewBase
 };
 
 } // namespace
+
 #endif /* __gtkmm2ext_dndtreeview_h__ */