Updated Macedonian Translation <arangela@cvs.gnome.org>
[rhythmbox.git] / sources / rb-sourcelist.h
blobb10ef54bc7a3988997b6eeb6d0efe83c0b4cfa3f
1 /*
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., 51 Franklin St, Fifth Floor,
19 * Boston, MA 02110-1301 USA.
23 #ifndef __RB_SOURCELIST_H
24 #define __RB_SOURCELIST_H
26 #include <gtk/gtkscrolledwindow.h>
28 #include "rb-source.h"
29 #include "rb-shell.h"
31 G_BEGIN_DECLS
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 RBSourceListPrivate RBSourceListPrivate;
42 typedef struct RBSourceList
44 GtkScrolledWindow parent;
46 RBSourceListPrivate *priv;
47 } RBSourceList;
49 typedef struct RBSourceListClass
51 GtkScrolledWindowClass parent_class;
53 /* signals */
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);
61 } RBSourceListClass;
63 GType rb_sourcelist_get_type (void);
65 GtkWidget * rb_sourcelist_new (RBShell *shell);
67 void rb_sourcelist_append (RBSourceList *sourcelist,
68 RBSource *source,
69 RBSource *parent);
71 void rb_sourcelist_set_playing_source(RBSourceList *sourcelist,
72 RBSource *source);
74 void rb_sourcelist_edit_source_name (RBSourceList *sourcelist,
75 RBSource *source);
77 void rb_sourcelist_remove (RBSourceList *sourcelist,
78 RBSource *source);
80 void rb_sourcelist_select (RBSourceList *sourcelist,
81 RBSource *source);
83 G_END_DECLS
85 #endif /* __RB_SOURCELIST_H */