]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkplug.h
treeview: center expander allocated space
[~andy/gtk] / gtk / gtkplug.h
index 87fe6f92fd4e046d50092cec07a23718eb1939e8..bd6a393cb8fb5009daf446065b0b63d1b2334f59 100644 (file)
  * 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/>.
  */
 
 /*
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
 #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
+
+#include <gdk/gdkx.h>
+
 #include <gtk/gtksocket.h>
-#include <gtk/gtkwindow.h>
 
 
 G_BEGIN_DECLS
@@ -43,6 +49,7 @@ G_BEGIN_DECLS
 
 
 typedef struct _GtkPlug        GtkPlug;
+typedef struct _GtkPlugPrivate GtkPlugPrivate;
 typedef struct _GtkPlugClass   GtkPlugClass;
 
 
@@ -50,12 +57,7 @@ struct _GtkPlug
 {
   GtkWindow window;
 
-  GdkWindow *socket_window;
-  GtkWidget *modality_window;
-  GtkWindowGroup *modality_group;
-  GHashTable *grabbed_keys;
-
-  guint same_app : 1;
+  GtkPlugPrivate *priv;
 };
 
 struct _GtkPlugClass
@@ -71,28 +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);
-
-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__ */