X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkplug.h;h=bd6a393cb8fb5009daf446065b0b63d1b2334f59;hb=fd51c8f5e9d6fb68c8e81b9b1e2ab80931f963f0;hp=679c065463808133b2482ba1bb4e994d381bdca2;hpb=e8184f2a46c4707bbd0b782655fc5aafb026085f;p=~andy%2Fgtk diff --git a/gtk/gtkplug.h b/gtk/gtkplug.h index 679c06546..bd6a393cb 100644 --- a/gtk/gtkplug.h +++ b/gtk/gtkplug.h @@ -12,8 +12,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * License along with this library. If not, see . */ /* @@ -23,16 +22,20 @@ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ -#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) -#error "Only can be included directly." -#endif - #ifndef __GTK_PLUG_H__ #define __GTK_PLUG_H__ +#if !defined (__GTKX_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only can be included directly." +#endif + +#include + +#ifdef GDK_WINDOWING_X11 + +#include #include -#include G_BEGIN_DECLS @@ -45,9 +48,9 @@ G_BEGIN_DECLS #define GTK_PLUG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PLUG, GtkPlugClass)) -typedef struct _GtkPlug GtkPlug; -typedef struct _GtkPlugPrivate GtkPlugPrivate; -typedef struct _GtkPlugClass GtkPlugClass; +typedef struct _GtkPlug GtkPlug; +typedef struct _GtkPlugPrivate GtkPlugPrivate; +typedef struct _GtkPlugClass GtkPlugClass; struct _GtkPlug @@ -70,32 +73,25 @@ struct _GtkPlugClass void (*_gtk_reserved4) (void); }; - -GType gtk_plug_get_type (void) G_GNUC_CONST; +GType gtk_plug_get_type (void) G_GNUC_CONST; #ifndef GDK_MULTIHEAD_SAFE -void gtk_plug_construct (GtkPlug *plug, - GdkNativeWindow socket_id); -GtkWidget* gtk_plug_new (GdkNativeWindow socket_id); +void gtk_plug_construct (GtkPlug *plug, + Window socket_id); +GtkWidget *gtk_plug_new (Window socket_id); #endif -void gtk_plug_construct_for_display (GtkPlug *plug, - GdkDisplay *display, - GdkNativeWindow socket_id); -GtkWidget* gtk_plug_new_for_display (GdkDisplay *display, - GdkNativeWindow socket_id); - -GdkNativeWindow gtk_plug_get_id (GtkPlug *plug); - -gboolean gtk_plug_get_embedded (GtkPlug *plug); - -GdkWindow *gtk_plug_get_socket_window (GtkPlug *plug); - -void _gtk_plug_add_to_socket (GtkPlug *plug, - GtkSocket *socket_); -void _gtk_plug_remove_from_socket (GtkPlug *plug, - GtkSocket *socket_); +void gtk_plug_construct_for_display (GtkPlug *plug, + GdkDisplay *display, + Window socket_id); +GtkWidget *gtk_plug_new_for_display (GdkDisplay *display, + Window socket_id); +Window gtk_plug_get_id (GtkPlug *plug); +gboolean gtk_plug_get_embedded (GtkPlug *plug); +GdkWindow *gtk_plug_get_socket_window (GtkPlug *plug); G_END_DECLS +#endif /* GDK_WINDOWING_X11 */ + #endif /* __GTK_PLUG_H__ */