~ubuntu-branches/ubuntu/maverick/brasero/maverick

« back to all changes in this revision

Viewing changes to src/brasero-video-tree-model.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-01-04 17:45:17 UTC
  • mfrom: (1.1.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20100104174517-vz0avr4o1vdfusrf
Tags: 2.29.4-0ubuntu1
* New upstream release:
  - Bug fixes
  - Fixes for Video DVD
  - Updated translations.
* Add 001_nautilus_lazy_init.patch: Do not call brasero_*_start() at
  nautilus startup, they are very expensive; lazily initialize those
  instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
852
852
        target = gtk_selection_data_get_target (selection_data);
853
853
        if (target == gdk_atom_intern (BRASERO_DND_TARGET_SELF_FILE_NODES, TRUE)) {
854
854
                BraseroDNDVideoContext *context;
 
855
                GtkTreeRowReference *dest;
855
856
                GList *iter;
856
857
 
857
858
                context = (BraseroDNDVideoContext *) gtk_selection_data_get_data (selection_data);
858
859
                if (context->model != GTK_TREE_MODEL (drag_dest))
859
860
                        return TRUE;
860
861
 
 
862
                dest = gtk_tree_row_reference_new (GTK_TREE_MODEL (drag_dest), dest_path);
861
863
                /* That's us: move the row and its children. */
862
864
                for (iter = context->references; iter; iter = iter->next) {
863
865
                        GtkTreeRowReference *reference;
 
866
                        GtkTreePath *destination;
864
867
                        GtkTreePath *treepath;
865
868
                        GtkTreeIter tree_iter;
866
869
 
871
874
                                                 treepath);
872
875
                        gtk_tree_path_free (treepath);
873
876
 
 
877
                        destination = gtk_tree_row_reference_get_path (dest);
874
878
                        brasero_video_tree_model_move_before (BRASERO_VIDEO_TREE_MODEL (drag_dest),
875
879
                                                              &tree_iter,
876
 
                                                              dest_path);
 
880
                                                              destination);
 
881
                        gtk_tree_path_free (destination);
877
882
                }
 
883
                gtk_tree_row_reference_free (dest);
878
884
        }
879
885
        else if (target == gdk_atom_intern ("text/uri-list", TRUE)) {
880
886
                gint i;