~ubuntu-branches/ubuntu/hardy/rhythmbox/hardy-proposed

« back to all changes in this revision

Viewing changes to widgets/rb-simple-view.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-12-02 19:23:18 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051202192318-i441e2g7fhmw9njg
Tags: upstream-0.9.2
ImportĀ upstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  arch-tag: Header for widget to display Podcast Feed 
 
3
 *
 
4
 *  Copyright (C) 2005 Renato Filho <renato.filho@indt.org.br>
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; either version 2 of the License, or
 
9
 *  (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
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __RB_SIMPLE_VIEW_H
 
23
#define __RB_SIMPLE_VIEW_H
 
24
 
 
25
#include <gtk/gtkdnd.h>
 
26
 
 
27
#include "rhythmdb.h"
 
28
#include "rhythmdb-query-model.h"
 
29
#include "rb-property-view.h"
 
30
 
 
31
G_BEGIN_DECLS
 
32
 
 
33
#define RB_TYPE_SIMPLE_VIEW         (rb_simple_view_get_type ())
 
34
#define RB_SIMPLE_VIEW(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_SIMPLE_VIEW, RBSimpleView))
 
35
#define RB_SIMPLE_VIEW_CLASS(k)     (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_SIMPLE_VIEW, RBSimpleViewClass))
 
36
#define RB_IS_SIMPLE_VIEW(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_SIMPLE_VIEW))
 
37
#define RB_IS_SIMPLE_VIEW_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_SIMPLE_VIEW))
 
38
#define RB_SIMPLE_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_SIMPLE_VIEW, RBSimpleViewClass))
 
39
 
 
40
typedef struct RBSimpleViewPrivate RBSimpleViewPrivate;
 
41
 
 
42
typedef struct
 
43
{
 
44
        RBPropertyView parent;
 
45
 
 
46
        RBSimpleViewPrivate *priv;
 
47
} RBSimpleView;
 
48
 
 
49
typedef struct
 
50
{
 
51
        RBPropertyViewClass parent;
 
52
 
 
53
        void    (*show_popup)                           (RBSimpleView *view);
 
54
} RBSimpleViewClass;
 
55
 
 
56
GType           rb_simple_view_get_type                 (void);
 
57
 
 
58
RBSimpleView *  rb_simple_view_new                      (RhythmDB *db,
 
59
                                                         guint propid,
 
60
                                                         const char *title);
 
61
 
 
62
void            rb_simple_view_append_column_custom     (RBSimpleView *view,
 
63
                                                         GtkTreeViewColumn *column,
 
64
                                                         const char *title, 
 
65
                                                         gpointer user_data);
 
66
G_END_DECLS
 
67
 
 
68
#endif /* __RB_SIMPLE_VIEW_H */