~ubuntu-branches/ubuntu/trusty/gimp/trusty

« back to all changes in this revision

Viewing changes to app/widgets/gimpcontainertreeview-dnd.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-08 13:26:03 UTC
  • mfrom: (1.1.28) (0.4.19 sid)
  • Revision ID: package-import@ubuntu.com-20130308132603-h14fmrgazi3roobr
Tags: 2.8.4-1ubuntu1
* Synchronize with Debian (LP: #1132767). Remaining changes:
  - debian/patches/02_help-message.patch,
    debian/patches/03_gimp.desktop.in.in.patch:
    + Update some strings for Ubuntu
  - debian/control:
    + Update description
  - debian/rules:
    + Set gettext domain and update translation templates
* Dropped changes:
  - CVE-2012-5576.patch: Applied in new version
  - fix-python-multiarch-includes.patch: No longer needed
* debian/patches/link-against-lm.patch:
  - Link against lm to fix underlinking build failure
* debian/control, debian/rules:
  - Run autoreconf for above patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
            drop_pos = GTK_TREE_VIEW_DROP_BEFORE;
143
143
        }
144
144
    }
 
145
  else
 
146
    {
 
147
      GtkTreeIter iter;
 
148
      gint        n_children;
 
149
 
 
150
      n_children = gtk_tree_model_iter_n_children (tree_view->model, NULL);
 
151
 
 
152
      if (n_children > 0 &&
 
153
          gtk_tree_model_iter_nth_child (tree_view->model, &iter,
 
154
                                         NULL, n_children - 1))
 
155
        {
 
156
          GimpViewRenderer *renderer;
 
157
 
 
158
          gtk_tree_model_get (tree_view->model, &iter,
 
159
                              GIMP_CONTAINER_TREE_STORE_COLUMN_RENDERER,
 
160
                              &renderer,
 
161
                              -1);
 
162
 
 
163
          drop_path     = gtk_tree_model_get_path (tree_view->model, &iter);
 
164
          dest_viewable = renderer->viewable;
 
165
          drop_pos      = GTK_TREE_VIEW_DROP_AFTER;
 
166
 
 
167
          g_object_unref (renderer);
 
168
        }
 
169
    }
145
170
 
146
171
  if (dest_viewable || tree_view->priv->dnd_drop_to_empty)
147
172
    {