~ubuntu-branches/ubuntu/lucid/vino/lucid

« back to all changes in this revision

Viewing changes to server/vino-status-icon.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2008-05-27 09:06:36 UTC
  • mfrom: (1.1.21 upstream) (2.1.31 hardy)
  • Revision ID: james.westby@ubuntu.com-20080527090636-lg1whxlkub1wtsw7
Tags: 2.22.2-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2006 Jonh Wendell.
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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
 
17
 * 02111-1307, USA.
 
18
 *
 
19
 * Authors:
 
20
 *      Jonh Wendell <wendell@bani.com.br>
 
21
 */
 
22
 
 
23
#ifndef __VINO_STATUS_ICON_H__
 
24
#define __VINO_STATUS_ICON_H__
 
25
 
 
26
#include <gtk/gtkstatusicon.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
typedef enum
 
31
{
 
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;
 
37
 
 
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))
 
44
 
 
45
typedef struct _VinoStatusIcon        VinoStatusIcon;
 
46
typedef struct _VinoStatusIconClass   VinoStatusIconClass;
 
47
typedef struct _VinoStatusIconPrivate VinoStatusIconPrivate;
 
48
 
 
49
struct _VinoStatusIcon
 
50
{
 
51
  GtkStatusIcon          base;
 
52
 
 
53
  VinoStatusIconPrivate *priv;
 
54
};
 
55
 
 
56
struct _VinoStatusIconClass
 
57
{
 
58
  GtkStatusIconClass base_class;
 
59
};
 
60
 
 
61
#include "vino-server.h"
 
62
 
 
63
GType           vino_status_icon_get_type      (void) G_GNUC_CONST;
 
64
 
 
65
VinoStatusIcon *vino_status_icon_new           (VinoServer      *server,
 
66
                                                GdkScreen       *screen);
 
67
 
 
68
VinoServer     *vino_status_icon_get_server    (VinoStatusIcon  *icon);
 
69
 
 
70
void            vino_status_icon_add_client    (VinoStatusIcon  *icon,
 
71
                                                VinoClient      *client);
 
72
gboolean        vino_status_icon_remove_client (VinoStatusIcon  *icon,
 
73
                                                VinoClient      *client);
 
74
 
 
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);
 
79
 
 
80
G_END_DECLS
 
81
 
 
82
#endif /* __VINO_STATUS_ICON_H__ */