1 | /* |
---|
2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
---|
3 | * Copytight (C) 2000 Helix Code, Inc. |
---|
4 | * |
---|
5 | * This library is free software; you can redistribute it and/or |
---|
6 | * modify it under the terms of the GNU Library General Public |
---|
7 | * License as published by the Free Software Foundation; either |
---|
8 | * version 2 of the License, or (at your option) any later version. |
---|
9 | * |
---|
10 | * This library is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | * Library General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU Library General Public |
---|
16 | * License along with this library; if not, write to the Free |
---|
17 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
18 | */ |
---|
19 | |
---|
20 | /* |
---|
21 | * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS |
---|
22 | * file for a list of people on the GTK+ Team. See the ChangeLog |
---|
23 | * files for a list of changes. These files are distributed with |
---|
24 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
---|
25 | */ |
---|
26 | |
---|
27 | #ifndef __BONOBO_SOCKET_H__ |
---|
28 | #define __BONOBO_SOCKET_H__ |
---|
29 | |
---|
30 | #include <gtk/gtkcontainer.h> |
---|
31 | #include <bonobo/bonobo-control.h> |
---|
32 | |
---|
33 | #ifdef __cplusplus |
---|
34 | extern "C" { |
---|
35 | #endif /* __cplusplus */ |
---|
36 | |
---|
37 | |
---|
38 | #define BONOBO_SOCKET_TYPE (bonobo_socket_get_type ()) |
---|
39 | #define BONOBO_SOCKET(obj) (GTK_CHECK_CAST ((obj), BONOBO_SOCKET_TYPE, BonoboSocket)) |
---|
40 | #define BONOBO_SOCKET_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), BONOBO_SOCKET_TYPE, \ |
---|
41 | BonoboSocketClass)) |
---|
42 | #define BONOBO_IS_SOCKET(obj) (GTK_CHECK_TYPE ((obj), BONOBO_SOCKET_TYPE)) |
---|
43 | #define BONOBO_IS_SOCKET_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), BONOBO_SOCKET_TYPE)) |
---|
44 | |
---|
45 | typedef struct _BonoboSocketPrivate BonoboSocketPrivate; |
---|
46 | |
---|
47 | typedef struct { |
---|
48 | GtkContainer container; |
---|
49 | |
---|
50 | BonoboSocketPrivate *priv; |
---|
51 | } BonoboSocket; |
---|
52 | |
---|
53 | typedef struct { |
---|
54 | GtkContainerClass parent_class; |
---|
55 | } BonoboSocketClass; |
---|
56 | |
---|
57 | |
---|
58 | GtkWidget* bonobo_socket_new (void); |
---|
59 | guint bonobo_socket_get_type (void); |
---|
60 | void bonobo_socket_set_control_frame (BonoboSocket *socket, |
---|
61 | BonoboControlFrame *frame); |
---|
62 | |
---|
63 | /* Unused */ |
---|
64 | void bonobo_socket_steal (BonoboSocket *socket, |
---|
65 | guint32 wid); |
---|
66 | |
---|
67 | #ifdef __cplusplus |
---|
68 | } |
---|
69 | #endif /* __cplusplus */ |
---|
70 | |
---|
71 | |
---|
72 | #endif /* __BONOBO_SOCKET_H__ */ |
---|