1 | /* GTK - The GIMP Toolkit |
---|
2 | * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald |
---|
3 | * |
---|
4 | * This library is free software; you can redistribute it and/or |
---|
5 | * modify it under the terms of the GNU Library General Public |
---|
6 | * License as published by the Free Software Foundation; either |
---|
7 | * version 2 of the 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 GNU |
---|
12 | * Library 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 Free |
---|
16 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
17 | */ |
---|
18 | |
---|
19 | /* |
---|
20 | * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS |
---|
21 | * file for a list of people on the GTK+ Team. See the ChangeLog |
---|
22 | * files for a list of changes. These files are distributed with |
---|
23 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
---|
24 | */ |
---|
25 | |
---|
26 | #ifndef __BONOBO_PLUG_H__ |
---|
27 | #define __BONOBO_PLUG_H__ |
---|
28 | |
---|
29 | |
---|
30 | #include <gdk/gdk.h> |
---|
31 | #include <gtk/gtkwindow.h> |
---|
32 | #include <bonobo/bonobo-control.h> |
---|
33 | |
---|
34 | |
---|
35 | #ifdef __cplusplus |
---|
36 | extern "C" { |
---|
37 | #endif /* __cplusplus */ |
---|
38 | |
---|
39 | |
---|
40 | #define BONOBO_PLUG_TYPE (bonobo_plug_get_type ()) |
---|
41 | #define BONOBO_PLUG(obj) (GTK_CHECK_CAST (obj, BONOBO_PLUG_TYPE, BonoboPlug)) |
---|
42 | #define BONOBO_PLUG_CLASS(klass) (GTK_CHECK_CLASS_CAST (klass, bonobo_plug_get_type (), BonoboPlugClass)) |
---|
43 | #define BONOBO_IS_PLUG(obj) (GTK_CHECK_TYPE (obj, bonobo_plug_get_type ())) |
---|
44 | |
---|
45 | typedef struct _BonoboPlugPrivate BonoboPlugPrivate; |
---|
46 | |
---|
47 | typedef struct { |
---|
48 | GtkWindow window; |
---|
49 | |
---|
50 | /* Private data */ |
---|
51 | BonoboPlugPrivate *priv; |
---|
52 | } BonoboPlug; |
---|
53 | |
---|
54 | typedef struct { |
---|
55 | GtkWindowClass parent_class; |
---|
56 | } BonoboPlugClass; |
---|
57 | |
---|
58 | guint bonobo_plug_get_type (void); |
---|
59 | void bonobo_plug_construct (BonoboPlug *plug, guint32 socket_id); |
---|
60 | GtkWidget* bonobo_plug_new (guint32 socket_id); |
---|
61 | |
---|
62 | void bonobo_plug_set_control (BonoboPlug *plug, BonoboControl *control); |
---|
63 | |
---|
64 | void bonobo_plug_clear_focus_chain (BonoboPlug *plug); |
---|
65 | |
---|
66 | |
---|
67 | #ifdef __cplusplus |
---|
68 | } |
---|
69 | #endif /* __cplusplus */ |
---|
70 | |
---|
71 | |
---|
72 | #endif /* __BONOBO_PLUG_H__ */ |
---|