udapted vi.po
[rhythmbox.git] / widgets / rb-header.h
blobec49f02fb3150a2fbe6f7cf8953e54b41871ad4f
1 /*
2 * arch-tag: Header for main song information display widget
4 * Copyright (C) 2002 Jorn Baayen <jorn@nl.linux.org>
5 * Copyright (C) 2003 Colin Walters <walters@verbum.org>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef __RB_HEADER_H
24 #define __RB_HEADER_H
26 #include <gtk/gtkhbox.h>
28 #include "rhythmdb.h"
29 #include "rb-shell-player.h"
31 G_BEGIN_DECLS
33 #define RB_TYPE_HEADER (rb_header_get_type ())
34 #define RB_HEADER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_HEADER, RBHeader))
35 #define RB_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_HEADER, RBHeaderClass))
36 #define RB_IS_HEADER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_HEADER))
37 #define RB_IS_HEADER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_HEADER))
38 #define RB_HEADER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_HEADER, RBHeaderClass))
40 typedef struct RBHeaderPrivate RBHeaderPrivate;
42 typedef struct
44 GtkHBox parent;
46 RBHeaderPrivate *priv;
47 } RBHeader;
49 typedef struct
51 GtkHBoxClass parent;
52 } RBHeaderClass;
54 GType rb_header_get_type (void);
56 RBHeader * rb_header_new (RBShellPlayer *header,
57 RhythmDB *db);
59 void rb_header_set_playing_entry (RBHeader *header,
60 RhythmDBEntry *entry,
61 gboolean seekable);
63 void rb_header_set_show_position_slider (RBHeader *header,
64 gboolean show);
66 void rb_header_sync (RBHeader *header);
68 gboolean rb_header_sync_time (RBHeader *header);
70 char * rb_header_get_elapsed_string (RBHeader *header);
72 G_END_DECLS
74 #endif /* __RB_HEADER_H */