]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkplug.h
GtkBubbleWindow: rework how drawing is done
[~andy/gtk] / gtk / gtkplug.h
index f34f6d29aec17893ace85deca93973d84b23554d..bd6a393cb8fb5009daf446065b0b63d1b2334f59 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
  */
 
 /*
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
 #ifndef __GTK_PLUG_H__
 #define __GTK_PLUG_H__
 
+#if !defined (__GTKX_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtkx.h> can be included directly."
+#endif
+
 #include <gdk/gdk.h>
 
 #ifdef GDK_WINDOWING_X11
@@ -37,7 +36,6 @@
 #include <gdk/gdkx.h>
 
 #include <gtk/gtksocket.h>
-#include <gtk/gtkwindow.h>
 
 
 G_BEGIN_DECLS
@@ -50,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
@@ -75,26 +73,22 @@ 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,
-                                          Window           socket_id);
-GtkWidget* gtk_plug_new                   (Window           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,
-                                          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);
+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