FmDndSrc

FmDndSrc — Libfm support for drag&drop source.

Synopsis

struct              FmDndSrc;
struct              FmDndSrcClass;
enum                FmDndSrcTarget;
#define             fm_dnd_src_add_targets              (widget,
                                                         targets,
                                                         n)
FmDndSrc *          fm_dnd_src_new                      (GtkWidget *w);
void                fm_dnd_src_set_file                 (FmDndSrc *ds,
                                                         FmFileInfo *file);
void                fm_dnd_src_set_files                (FmDndSrc *ds,
                                                         FmFileInfoList *files);
void                fm_dnd_src_set_widget               (FmDndSrc *ds,
                                                         GtkWidget *w);

Object Hierarchy

  GObject
   +----FmDndSrc

Signals

  "data-get"                                       : Run First

Description

include: libfm/fm-dnd-src.h

The FmDndSrc can be used by some widget to provide support for drag operations on FmFileInfo objects that are represented in that widget.

To use FmDndSrc the widget should create it with fm_dnd_src_new() and connect to the "data-get" signal of the created FmDndSrc object.

Example 2. Sample Usage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24