2006-12-14 Francisco Javier F. Serrador <serrador@openshine.com>
[rhythmbox.git] / shell / rb-tray-icon.h
blob152f9e4a582ceb461411042327be41fa018a3148
1 /*
2 * arch-tag: Header for Rhythmbox tray icon object
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/gtkactiongroup.h>
23 #include <gtk/gtkuimanager.h>
24 #include "eggtrayicon.h"
25 #include "rhythmdb.h"
26 #include "rb-shell.h"
28 #ifndef __RB_TRAY_ICON_H
29 #define __RB_TRAY_ICON_H
31 G_BEGIN_DECLS
33 #define RB_TYPE_TRAY_ICON (rb_tray_icon_get_type ())
34 #define RB_TRAY_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), RB_TYPE_TRAY_ICON, RBTrayIcon))
35 #define RB_TRAY_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), RB_TYPE_TRAY_ICON, RBTrayIconClass))
36 #define RB_IS_TRAY_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), RB_TYPE_TRAY_ICON))
37 #define RB_IS_TRAY_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), RB_TYPE_TRAY_ICON))
38 #define RB_TRAY_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), RB_TYPE_TRAY_ICON, RBTrayIconClass))
40 typedef struct RBTrayIconPrivate RBTrayIconPrivate;
42 typedef struct
44 EggTrayIcon parent;
46 RBTrayIconPrivate *priv;
47 } RBTrayIcon;
49 typedef struct
51 EggTrayIconClass parent_class;
52 } RBTrayIconClass;
54 GType rb_tray_icon_get_type (void);
56 RBTrayIcon * rb_tray_icon_new (GtkUIManager *mgr, RBShell *shell);
58 void rb_tray_icon_get_geom (RBTrayIcon *icon, int *x, int *y, int *width, int *height);
60 void rb_tray_icon_notify (RBTrayIcon *icon,
61 guint timeout,
62 const char *primary,
63 GtkWidget *msgicon,
64 const char *secondary,
65 gboolean requested);
67 void rb_tray_icon_cancel_notify (RBTrayIcon *icon);
69 void rb_tray_icon_set_tooltip(RBTrayIcon *icon, const char *tooltip);
71 G_END_DECLS
73 #endif /* __RB_TRAY_ICON_H */