Re: Dual Drop on to GtkTreeView



Ali Akcaagac wrote:
yes this looks pretty ok so far from what i wanted to tell you now could
you gimme a peek in the drag_audio_rcv_cb ?

void
drag_audio_rcv_cb (GtkWidget *widget, GdkDragContext *context,
                gint x, gint y, GtkSelectionData *data, guint info,
                guint time, GtkListStore *store)
{
        GList *list;
        
        if (! ((data->length >= 0) && (data->format == 8)))
        {
                gtk_drag_finish (context, FALSE, FALSE, time);
                return;
        }
        
        gtk_drag_finish (context, TRUE, FALSE, time);
        
        list = get_file_list_from_url_list ((char *)data->data);
        if (list == NULL)
                return;
        
        audio_add_files (list, store);
        
        return;
}

i also have a bit
understanding problem with:

"This almost works--if I manually add an item to the view, I can drag
other items over it and then add them to the view. However, you can't
drag the first item into the view, and you can't drag any item into the
empty space at the bottom of the list."

can you describe a bit more in detail ?


I can try. What happens is that I start my application (a CD creator) and it displays an empty window (a GtkTreeView) which you can drag files onto. After following your advice, I can not drag files onto the empty space. I have an "Add" button to add files without using drag and drop. I can add one or two files this way, and then drag files onto them, thus making them appear in the GtkTreeView.

So, it appears that I can drag files onto the rows of the GtkTreeView, not the GtkTreeView itself.

Todd




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