X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-dnd.h;h=01ace42ef9893b4879d584657cabeaf6b3330895;hp=6c1723fdc44dc4405b7b00faacc5cd66a79be337;hb=HEAD;hpb=73c8b243b8be9db553c30c20f3eec82fb77e17b7 diff --git a/src/widgets/modest-dnd.h b/src/widgets/modest-dnd.h index 6c1723f..01ace42 100644 --- a/src/widgets/modest-dnd.h +++ b/src/widgets/modest-dnd.h @@ -30,16 +30,40 @@ #ifndef __MODEST_DND_H__ #define __MODEST_DND_H__ -G_BEGIN_DECLS +#include +#include -#define ROW_REF_DATA_NAME "row-ref" +extern GdkAtom tree_path_as_string_list_atom; + +#define GTK_TREE_PATH_AS_STRING_LIST "text/tree-path-as-string-list" enum { - MODEST_FOLDER_ROW, - MODEST_HEADER_ROW, - MODEST_MSG + MODEST_FOLDER_ROW, + MODEST_HEADER_ROW }; -G_END_DECLS +/** + * modest_dnd_selection_data_set_paths: + * @selection_data: + * @selected_rows: + * + * This function sets a list of gtk_tree_path's represented as strings + * as the data of a #GtkSelectionData object that will be used during + * drag and drop + **/ +void modest_dnd_selection_data_set_paths (GtkSelectionData *selection_data, + GList *selected_rows); + + +/** + * modest_dnd_selection_data_get_paths: + * @selection_data: + * + * This function gets a list of gtk_tree_path's represented as strings + * from a #GtkSelectionData object used during drag and drop + * + * Returns: the list of gtk_tree_paths as strings or NULL + **/ +gchar** modest_dnd_selection_data_get_paths (GtkSelectionData *selection_data); #endif /* __MODEST_DND_H__ */