src/solaris/native/sun/awt/gtk2_interface.h

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -25,10 +25,11 @@
 #ifndef _GTK2_INTERFACE_H
 #define _GTK2_INTERFACE_H
 
 #include <stdlib.h>
 #include <jni.h>
+#include <X11/Xlib.h>
 
 #define _G_TYPE_CIC(ip, gt, ct)       ((ct*) ip)
 #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type)    (_G_TYPE_CIC ((instance), (g_type), c_type))
 #define GTK_TYPE_FILE_CHOOSER             (fp_gtk_file_chooser_get_type ())
 #define GTK_FILE_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER, GtkFileChooser))

@@ -635,10 +636,26 @@
 
 typedef enum {
   G_CONNECT_AFTER = 1 << 0, G_CONNECT_SWAPPED = 1 << 1
 } GConnectFlags;
 
+typedef enum
+{
+    GDK_CONFIGURE
+} GdkEventType;
+
+typedef struct _GdkEventConfigure   GdkEventConfigure;
+struct _GdkEventConfigure
+{
+  GdkEventType type;
+  GdkWindow *window;
+  gint8 send_event;
+  gint x, y;
+  gint width;
+  gint height;
+};
+
 typedef struct _GThreadFunctions GThreadFunctions;
 
 /*
  * Converts java.lang.String object to UTF-8 character string.
  */

@@ -775,10 +792,11 @@
 int (*fp_gdk_pixbuf_get_height)(const GdkPixbuf *pixbuf);
 int (*fp_gdk_pixbuf_get_n_channels)(const GdkPixbuf *pixbuf);
 int (*fp_gdk_pixbuf_get_rowstride)(const GdkPixbuf *pixbuf);
 int (*fp_gdk_pixbuf_get_width)(const GdkPixbuf *pixbuf);
 GdkPixbuf *(*fp_gdk_pixbuf_new_from_file)(const char *filename, GError **error);
+void (*fp_gtk_widget_realize)(GtkWidget *widget);
 void (*fp_gtk_widget_destroy)(GtkWidget *widget);
 void (*fp_gtk_window_present)(GtkWindow *window);
 void (*fp_gtk_window_move)(GtkWindow *window, gint x, gint y);
 void (*fp_gtk_window_resize)(GtkWindow *window, gint width, gint height);
 

@@ -828,9 +846,11 @@
 void (*fp_g_thread_init)(GThreadFunctions *vtable);
 void (*fp_gdk_threads_init)(void);
 void (*fp_gdk_threads_enter)(void);
 void (*fp_gdk_threads_leave)(void);
 
+XID (*fp_gdk_x11_drawable_get_xid)(GdkDrawable *drawable);
+
 gboolean (*fp_gtk_show_uri)(GdkScreen *screen, const gchar *uri,
     guint32 timestamp, GError **error);
 
 #endif /* !_GTK2_INTERFACE_H */