2
* arch-tag: Header for main "Sources" display widget
4
* Copyright (C) 2003 Colin Walters <walters@verbum.org>
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2 of the
9
* License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
16
* You should have received a copy of the GNU General Public
17
* License along with this program; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
23
#ifndef __RB_SOURCELIST_H
24
#define __RB_SOURCELIST_H
26
#include <gtk/gtkscrolledwindow.h>
28
#include "rb-source.h"
29
#include "rb-sourcelist-model.h"
33
#define RB_TYPE_SOURCELIST (rb_sourcelist_get_type ())
34
#define RB_SOURCELIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RB_TYPE_SOURCELIST, RBSourceList))
35
#define RB_SOURCELIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RB_TYPE_SOURCELIST, RBSourceListClass))
36
#define RB_IS_SOURCELIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RB_TYPE_SOURCELIST))
37
#define RB_IS_SOURCELIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), RB_TYPE_SOURCELIST))
38
#define RB_SOURCELIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RB_TYPE_SOURCELIST, RBSourceListClass))
40
typedef struct RBSourceListPriv RBSourceListPriv;
42
typedef struct RBSourceList
44
GtkScrolledWindow parent;
46
RBSourceListPriv *priv;
49
typedef struct RBSourceListClass
51
GtkScrolledWindowClass parent_class;
54
void (*selected) (RBSourceList *list, RBSource *source);
56
void (*drop_received) (RBSourceList *list, RBSource *target, GtkSelectionData *data);
58
void (*source_activated) (RBSourceList *list, RBSource *target);
60
gboolean (*show_popup) (RBSourceList *list, RBSource *target);
63
GType rb_sourcelist_get_type (void);
65
GtkWidget * rb_sourcelist_new (void);
67
void rb_sourcelist_append (RBSourceList *sourcelist,
70
GtkTreeModel * rb_sourcelist_get_model (RBSourceList *sourcelist);
72
void rb_sourcelist_edit_source_name (RBSourceList *sourcelist,
75
void rb_sourcelist_remove (RBSourceList *sourcelist,
78
void rb_sourcelist_select (RBSourceList *sourcelist,
81
void rb_sourcelist_set_dnd_targets (RBSourceList *sourcelist,
82
const GtkTargetEntry *targets,
87
#endif /* __RB_SOURCELIST_H */