~ubuntu-branches/ubuntu/saucy/cairo-dock-plug-ins/saucy

« back to all changes in this revision

Viewing changes to systray/src/gtk2/na-tray-child.h

Tags: upstream-3.0.0.0beta1
ImportĀ upstreamĀ versionĀ 3.0.0.0beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/* na-tray-child.h
 
3
 * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
 
4
 * Copyright (C) 2003-2006 Vincent Untz
 
5
 * Copyright (C) 2008 Red Hat, Inc.
 
6
 *
 
7
 * This library is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU Lesser General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2 of the License, or (at your option) any later version.
 
11
 *
 
12
 * This library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
 * Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public
 
18
 * License along with this library; if not, write to the
 
19
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
20
 * Boston, MA 02111-1307, USA.
 
21
 */
 
22
 
 
23
#ifndef __NA_TRAY_CHILD_H__
 
24
#define __NA_TRAY_CHILD_H__
 
25
 
 
26
#include <gtk/gtk.h>
 
27
#include <gdk/gdkx.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define NA_TYPE_TRAY_CHILD              (na_tray_child_get_type ())
 
32
#define NA_TRAY_CHILD(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), NA_TYPE_TRAY_CHILD, NaTrayChild))
 
33
#define NA_TRAY_CHILD_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), NA_TYPE_TRAY_CHILD, NaTrayChildClass))
 
34
#define NA_IS_TRAY_CHILD(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NA_TYPE_TRAY_CHILD))
 
35
#define NA_IS_TRAY_CHILD_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), NA_TYPE_TRAY_CHILD))
 
36
#define NA_TRAY_CHILD_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), NA_TYPE_TRAY_CHILD, NaTrayChildClass))
 
37
 
 
38
typedef struct _NaTrayChild       NaTrayChild;
 
39
typedef struct _NaTrayChildClass  NaTrayChildClass;
 
40
typedef struct _NaTrayChildChild  NaTrayChildChild;
 
41
 
 
42
struct _NaTrayChild
 
43
{
 
44
  GtkSocket parent_instance;
 
45
  Window icon_window;
 
46
  guint has_alpha : 1;
 
47
  guint composited : 1;
 
48
  guint parent_relative_bg : 1;
 
49
};
 
50
 
 
51
struct _NaTrayChildClass
 
52
{
 
53
  GtkSocketClass parent_class;
 
54
};
 
55
 
 
56
GType           na_tray_child_get_type        (void);
 
57
 
 
58
GtkWidget      *na_tray_child_new            (GdkScreen    *screen,
 
59
                                              Window        icon_window);
 
60
char           *na_tray_child_get_title      (NaTrayChild  *child);
 
61
gboolean        na_tray_child_has_alpha      (NaTrayChild  *child);
 
62
void            na_tray_child_set_composited (NaTrayChild  *child,
 
63
                                              gboolean      composited);
 
64
void            na_tray_child_force_redraw   (NaTrayChild  *child);
 
65
void            na_tray_child_get_wm_class   (NaTrayChild  *child,
 
66
                                              char        **res_name,
 
67
                                              char        **res_class);
 
68
 
 
69
G_END_DECLS
 
70
 
 
71
#endif /* __NA_TRAY_CHILD_H__ */