1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
/*
* xfdesktop - xfce4's desktop manager
*
* Copyright (c) 2006 Brian Tarricone, <bjt23@cornell.edu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __XFDESKTOP_ICON_VIEW_MANAGER_H__
#define __XFDESKTOP_ICON_VIEW_MANAGER_H__
#include <glib-object.h>
#include <gtk/gtk.h>
#include "xfdesktop-icon.h"
G_BEGIN_DECLS
#define XFDESKTOP_TYPE_ICON_VIEW_MANAGER (xfdesktop_icon_view_manager_get_type())
#define XFDESKTOP_ICON_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), XFDESKTOP_TYPE_ICON_VIEW_MANAGER, XfdesktopIconViewManager))
#define XFDESKTOP_IS_ICON_VIEW_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), XFDESKTOP_TYPE_ICON_VIEW_MANAGER))
#define XFDESKTOP_ICON_VIEW_MANAGER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), XFDESKTOP_TYPE_ICON_VIEW_MANAGER, XfdesktopIconViewManagerIface))
typedef struct _XfdesktopIconViewManagerIface XfdesktopIconViewManagerIface;
typedef struct _XfdesktopIconViewManager XfdesktopIconViewManager; /* dummy */
/* fwd decl - meh */
struct _XfdesktopIconView;
struct _XfdesktopIconViewManagerIface
{
GTypeInterface g_iface;
/*< virtual functions >*/
gboolean (*manager_init)(XfdesktopIconViewManager *manager,
struct _XfdesktopIconView *icon_view);
void (*manager_fini)(XfdesktopIconViewManager *manager);
gboolean (*drag_drop)(XfdesktopIconViewManager *manager,
XfdesktopIcon *drop_icon,
GdkDragContext *context,
gint16 row,
gint16 col,
guint time_);
void (*drag_data_received)(XfdesktopIconViewManager *manager,
XfdesktopIcon *drop_icon,
GdkDragContext *context,
gint16 row,
gint16 col,
GtkSelectionData *data,
guint info,
guint time_);
void (*drag_data_get)(XfdesktopIconViewManager *manager,
GList *drag_icons,
GdkDragContext *context,
GtkSelectionData *data,
guint info,
guint time_);
GdkDragAction (*propose_drop_action)(XfdesktopIconViewManager *manager,
XfdesktopIcon *drop_icon,
GdkDragAction action,
GdkDragContext *context,
GtkSelectionData *data,
guint info);
};
GType xfdesktop_icon_view_manager_get_type(void) G_GNUC_CONST;
/* virtual function accessors */
gboolean xfdesktop_icon_view_manager_init(XfdesktopIconViewManager *manager,
struct _XfdesktopIconView *icon_view);
void xfdesktop_icon_view_manager_fini(XfdesktopIconViewManager *manager);
gboolean xfdesktop_icon_view_manager_drag_drop(XfdesktopIconViewManager *manager,
XfdesktopIcon *drop_icon,
GdkDragContext *context,
gint16 row,
gint16 col,
guint time_);
void xfdesktop_icon_view_manager_drag_data_received(XfdesktopIconViewManager *manager,
XfdesktopIcon *drop_icon,
GdkDragContext *context,
gint16 row,
gint16 col,
GtkSelectionData *data,
guint info,
guint time_);
void xfdesktop_icon_view_manager_drag_data_get(XfdesktopIconViewManager *manager,
GList *drag_icons,
GdkDragContext *context,
GtkSelectionData *data,
guint info,
guint time_);
GdkDragAction xfdesktop_icon_view_manager_propose_drop_action(XfdesktopIconViewManager *manager,
XfdesktopIcon *drop_icon,
GdkDragAction action,
GdkDragContext *context,
GtkSelectionData *data,
guint info);
G_END_DECLS
#endif /* __XFDESKTOP_ICON_VIEW_MANAGER_H__ */
|