2006-12-03 James Livingston <doclivingston@gmail.com>
[rhythmbox.git] / shell / rb-source-header.h
blobfd807f0c84b916a7320c61e01867f10958fdfac9
1 /*
2 * arch-tag: Header for search entry/browse toggle container
4 * Copyright (C) 2003 Colin Walters <walters@verbum.org>
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.
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.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #include <gtk/gtkhbox.h>
23 #include <gtk/gtkactiongroup.h>
25 #include "rb-source.h"
27 #ifndef __RB_SOURCE_HEADER_H
28 #define __RB_SOURCE_HEADER_H
30 G_BEGIN_DECLS
32 #define RB_TYPE_SOURCE_HEADER (rb_source_header_get_type ())
33 #define RB_SOURCE_HEADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_SOURCE_HEADER, RBSourceHeader))
34 #define RB_SOURCE_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_SOURCE_HEADER, RBSourceHeaderClass))
35 #define RB_IS_SOURCE_HEADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_SOURCE_HEADER))
36 #define RB_IS_SOURCE_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_SOURCE_HEADER))
37 #define RB_SOURCE_HEADER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_SOURCE_HEADER, RBSourceHeaderClass))
39 typedef struct RBSourceHeaderPrivate RBSourceHeaderPrivate;
41 typedef struct
43 GtkTable parent;
45 RBSourceHeaderPrivate *priv;
46 } RBSourceHeader;
48 typedef struct
50 GtkTableClass parent_class;
51 } RBSourceHeaderClass;
53 GType rb_source_header_get_type (void);
55 RBSourceHeader * rb_source_header_new (GtkUIManager *mgr,
56 GtkActionGroup *actiongroup);
58 void rb_source_header_set_source (RBSourceHeader *header,
59 RBSource *player);
61 RBSource * rb_source_header_get_source (RBSourceHeader *shell_player);
63 void rb_source_header_clear_search (RBSourceHeader *header);
64 void rb_source_header_sync_control_state (RBSourceHeader *header);
65 void rb_source_header_focus_search_box (RBSourceHeader *header);
67 G_END_DECLS
69 #endif /* __RB_SOURCE_HEADER_H */