source: trunk/third/gnome-core/panel/gstc.h @ 15821

Revision 15821, 1.8 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15820, which included commits to RCS files with non-trunk default branches.
Line 
1/* gstc.h - G(something) stacking cache
2 * Copyright (C) 1999 Tim Janik
3 *
4 * This library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library 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 library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
17 * Boston, MA 02111-1307, USA.
18 */
19#ifndef __GSTC_H__
20#define __GSTC_H__
21
22#include        <gdk/gdk.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif /* __cplusplus */
27
28/* FIXME: this works around old glib versions (pre 1.2.2) */
29#undef G_GNUC_FUNCTION
30#undef G_GNUC_PRETTY_FUNCTION
31#ifdef  __GNUC__
32#define G_GNUC_FUNCTION         __FUNCTION__
33#define G_GNUC_PRETTY_FUNCTION  __PRETTY_FUNCTION__
34#else   /* !__GNUC__ */
35#define G_GNUC_FUNCTION         ""
36#define G_GNUC_PRETTY_FUNCTION  ""
37#endif  /* !__GNUC__ */
38
39
40#define GSTC_PARENT(sparent)            ((GstcParent*) (sparent))
41#define GSTC_PARENT_XWINDOW(sparent)    (GDK_WINDOW_XWINDOW (GSTC_PARENT (sparent)->window))
42
43typedef struct _GstcParent GstcParent;
44struct _GstcParent
45{
46  GdkWindow  *window;
47  guint       n_children;
48  gulong     *children;
49  guint       ref_count;
50};
51
52GstcParent* gstc_parent_add_watch    (GdkWindow *window);
53void        gstc_parent_delete_watch (GdkWindow *window);
54GstcParent* gstc_parent_from_window  (GdkWindow *window);
55
56
57#ifdef __cplusplus
58}
59#endif /* __cplusplus */
60
61#endif /* __GSTC_H__ */
Note: See TracBrowser for help on using the repository browser.