1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2005-2007 Imendio AB
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Authors: Richard Hult <richard@imendio.com>
21 * Martyn Russell <martyn@imendio.com>
24 #ifndef __GOSSIP_PRESENCE_CHOOSER_H__
25 #define __GOSSIP_PRESENCE_CHOOSER_H__
29 #include <libempathy/gossip-presence.h>
33 #define GOSSIP_TYPE_PRESENCE_CHOOSER (gossip_presence_chooser_get_type ())
34 #define GOSSIP_PRESENCE_CHOOSER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOSSIP_TYPE_PRESENCE_CHOOSER, GossipPresenceChooser))
35 #define GOSSIP_PRESENCE_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOSSIP_TYPE_PRESENCE_CHOOSER, GossipPresenceChooserClass))
36 #define GOSSIP_IS_PRESENCE_CHOOSER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOSSIP_TYPE_PRESENCE_CHOOSER))
37 #define GOSSIP_IS_PRESENCE_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOSSIP_TYPE_PRESENCE_CHOOSER))
38 #define GOSSIP_PRESENCE_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOSSIP_TYPE_PRESENCE_CHOOSER, GossipPresenceChooserClass))
40 typedef struct _GossipPresenceChooser GossipPresenceChooser;
41 typedef struct _GossipPresenceChooserClass GossipPresenceChooserClass;
43 struct _GossipPresenceChooser {
44 GtkToggleButton parent;
47 struct _GossipPresenceChooserClass {
48 GtkToggleButtonClass parent_class;
51 GType gossip_presence_chooser_get_type (void) G_GNUC_CONST;
52 GtkWidget *gossip_presence_chooser_new (void);
53 GtkWidget *gossip_presence_chooser_create_menu (void);
54 void gossip_presence_chooser_flash_start (GossipPresenceChooser *chooser,
57 void gossip_presence_chooser_flash_stop (GossipPresenceChooser *chooser,
59 gboolean gossip_presence_chooser_is_flashing (GossipPresenceChooser *chooser);
63 #endif /* __GOSSIP_PRESENCE_CHOOSER_H__ */