2
* Copyright (C) 2003 Sun Microsystems, Inc.
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License as
6
* published by the Free Software Foundation; either version 2 of the
7
* License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20
* Mark McLoughlin <mark@skynet.ie>
23
#ifndef __NETSTATUS_ICON_H__
24
#define __NETSTATUS_ICON_H__
28
#include "netstatus-iface.h"
32
#define NETSTATUS_TYPE_ICON (netstatus_icon_get_type ())
33
#define NETSTATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), NETSTATUS_TYPE_ICON, NetstatusIcon))
34
#define NETSTATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), NETSTATUS_TYPE_ICON, NetstatusIconClass))
35
#define NETSTATUS_IS_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NETSTATUS_TYPE_ICON))
36
#define NETSTATUS_IS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), NETSTATUS_TYPE_ICON))
37
#define NETSTATUS_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NETSTATUS_TYPE_ICON, NetstatusIconClass))
39
typedef struct _NetstatusIcon NetstatusIcon;
40
typedef struct _NetstatusIconClass NetstatusIconClass;
41
typedef struct _NetstatusIconPrivate NetstatusIconPrivate;
47
NetstatusIconPrivate *priv;
50
struct _NetstatusIconClass
52
GtkBoxClass box_class;
54
void (*invoked) (NetstatusIcon *icon);
57
GType netstatus_icon_get_type (void) G_GNUC_CONST;
59
GtkWidget * netstatus_icon_new (NetstatusIface *iface);
61
void netstatus_icon_invoke (NetstatusIcon *icon);
63
void netstatus_icon_set_iface (NetstatusIcon *icon,
64
NetstatusIface *interface);
65
NetstatusIface *netstatus_icon_get_iface (NetstatusIcon *icon);
67
void netstatus_icon_set_orientation (NetstatusIcon *icon,
68
GtkOrientation orientation);
69
GtkOrientation netstatus_icon_get_orientation (NetstatusIcon *icon);
71
void netstatus_icon_set_tooltips_enabled (NetstatusIcon *icon,
73
gboolean netstatus_icon_get_tooltips_enabled (NetstatusIcon *icon);
75
void netstatus_icon_set_show_signal (NetstatusIcon *icon,
76
gboolean show_signal);
77
gboolean netstatus_icon_get_show_signal (NetstatusIcon *icon);
81
#endif /* __NETSTATUS_ICON_H__ */