~ubuntu-branches/ubuntu/quantal/rhythmbox/quantal

« back to all changes in this revision

Viewing changes to sources/rb-sourcelist.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-03-25 23:58:54 UTC
  • Revision ID: james.westby@ubuntu.com-20050325235854-2212vevw1u4074w8
Tags: upstream-0.8.8
ImportĀ upstreamĀ versionĀ 0.8.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * arch-tag: Header for main "Sources" display widget
 
3
 *
 
4
 * Copyright (C) 2003 Colin Walters <walters@verbum.org>
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef __RB_SOURCELIST_H
 
24
#define __RB_SOURCELIST_H
 
25
 
 
26
#include <gtk/gtkscrolledwindow.h>
 
27
 
 
28
#include "rb-source.h"
 
29
#include "rb-sourcelist-model.h"
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
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))
 
39
 
 
40
typedef struct RBSourceListPriv RBSourceListPriv;
 
41
 
 
42
typedef struct RBSourceList
 
43
{
 
44
        GtkScrolledWindow parent;
 
45
 
 
46
        RBSourceListPriv *priv;
 
47
} RBSourceList;
 
48
 
 
49
typedef struct RBSourceListClass
 
50
{
 
51
        GtkScrolledWindowClass parent_class;
 
52
 
 
53
        /* signals */
 
54
        void (*selected) (RBSourceList *list, RBSource *source);
 
55
 
 
56
        void (*drop_received) (RBSourceList *list, RBSource *target, GtkSelectionData *data);
 
57
 
 
58
        void (*source_activated) (RBSourceList *list, RBSource *target);
 
59
 
 
60
        gboolean (*show_popup) (RBSourceList *list, RBSource *target);
 
61
} RBSourceListClass;
 
62
 
 
63
GType           rb_sourcelist_get_type          (void);
 
64
 
 
65
GtkWidget *     rb_sourcelist_new               (void);
 
66
 
 
67
void            rb_sourcelist_append            (RBSourceList *sourcelist,
 
68
                                                 RBSource *source);
 
69
 
 
70
GtkTreeModel *  rb_sourcelist_get_model         (RBSourceList *sourcelist);
 
71
 
 
72
void            rb_sourcelist_edit_source_name  (RBSourceList *sourcelist,
 
73
                                                 RBSource *source);
 
74
 
 
75
void            rb_sourcelist_remove            (RBSourceList *sourcelist,
 
76
                                                 RBSource *source);
 
77
 
 
78
void            rb_sourcelist_select            (RBSourceList *sourcelist,
 
79
                                                 RBSource *source);
 
80
 
 
81
void            rb_sourcelist_set_dnd_targets   (RBSourceList *sourcelist,
 
82
                                                 const GtkTargetEntry *targets,
 
83
                                                 int n_targets);
 
84
 
 
85
G_END_DECLS
 
86
 
 
87
#endif /* __RB_SOURCELIST_H */