~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/984054

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-08-10 00:05:57 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810000557-pfxoz5w7hbyclcqh
Tags: 2.2.0~0beta4-0ubuntu1
* New Upstream Version (LP: #614625)
* Fixed a few bugs on LP:
 - LP: #483963: Dustbin applet does not display trashes on all volumes
 - LP: #485159: Some apps have problem with Systray
 - LP: #500677: ~/.xsession-errors is too much used by CD
 - LP: #500979: Shortcuts: the order gets messed up
 - LP: #521531: Mail: crashes on Maildir
 - LP: #519915: GTG: create a new applet to control GTG
 - LP: #526138: GMenu doesn't handle desktop file exec strings properly
 - LP: #531317: CMake: Added an error if the prefix of 'cairo-dock-plugins'
                 is not the same 'cairo-dock-core'
 - LP: #531319: CMake: check the version of 'cairo-dock' when building
                 'cairo-dock-plugins'
 - LP: #537115: Click at the position where icon lavel was, the icon
                 and dock still receive the event
 - LP: #537943: Terminal applet shortkey behaviour
 - LP: #538637: Trash applet doesn't create .trashinfo files on XFCE
 - More details on the 'ChangeLog' file
* debian/rules:
 - Autotools has been replaced by CMake
 - cdbs is now used.
* debian/copyright:
 - Updated with the new applets
* debian/control:
 - Autotools has been replaced by CMake
 - Added libcurl4-gnutls-dev, libindicator-dev, libdbusmenu-glib-dev
   libido-0.1-dev, libical-dev, libdbusmenu-gtk-dev as Build-deps
 - Bump Standard-Version to 3.9.1
 - Wget is required for dnd2share applet
 - Added the exact realease for 'cairo-dock-dev' in order to prevent any
    build error if this package is not already available (thx to didrocks)
* debian/cairo-dock-plug-ins*.install:
 - All sonames are now installed into lib32 or lib64 (lib*)

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__ */