2
* Copyright (C) 2006 Jonh Wendell.
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
* Jonh Wendell <wendell@bani.com.br>
23
#ifndef __VINO_STATUS_ICON_H__
24
#define __VINO_STATUS_ICON_H__
26
#include <gtk/gtkstatusicon.h>
32
VINO_STATUS_ICON_VISIBILITY_INVALID = 0,
33
VINO_STATUS_ICON_VISIBILITY_ALWAYS,
34
VINO_STATUS_ICON_VISIBILITY_CLIENT,
35
VINO_STATUS_ICON_VISIBILITY_NEVER
36
} VinoStatusIconVisibility;
38
#define VINO_TYPE_STATUS_ICON (vino_status_icon_get_type ())
39
#define VINO_STATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), VINO_TYPE_STATUS_ICON, VinoStatusIcon))
40
#define VINO_STATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), VINO_TYPE_STATUS_ICON, VinoStatusIconClass))
41
#define VINO_IS_STATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), VINO_TYPE_STATUS_ICON))
42
#define VINO_IS_STATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), VINO_TYPE_STATUS_ICON))
43
#define VINO_STATUS_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), VINO_TYPE_STATUS_ICON, VinoStatusIconClass))
45
typedef struct _VinoStatusIcon VinoStatusIcon;
46
typedef struct _VinoStatusIconClass VinoStatusIconClass;
47
typedef struct _VinoStatusIconPrivate VinoStatusIconPrivate;
49
struct _VinoStatusIcon
53
VinoStatusIconPrivate *priv;
56
struct _VinoStatusIconClass
58
GtkStatusIconClass base_class;
61
#include "vino-server.h"
63
GType vino_status_icon_get_type (void) G_GNUC_CONST;
65
VinoStatusIcon *vino_status_icon_new (VinoServer *server,
68
VinoServer *vino_status_icon_get_server (VinoStatusIcon *icon);
70
void vino_status_icon_add_client (VinoStatusIcon *icon,
72
gboolean vino_status_icon_remove_client (VinoStatusIcon *icon,
75
void vino_status_icon_update_state (VinoStatusIcon *icon);
76
void vino_status_icon_set_visibility (VinoStatusIcon *icon,
77
VinoStatusIconVisibility visibility);
78
VinoStatusIconVisibility vino_status_icon_get_visibility (VinoStatusIcon *icon);
82
#endif /* __VINO_STATUS_ICON_H__ */