]> Pileus Git - ~andy/gtk/commitdiff
Make it work on Win32, too.
authorTor Lillqvist <tml@novell.com>
Thu, 21 Jul 2005 13:48:07 +0000 (13:48 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 21 Jul 2005 13:48:07 +0000 (13:48 +0000)
2005-07-21  Tor Lillqvist  <tml@novell.com>

* tests/testsocket_common.c: Make it work on Win32, too.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
tests/testsocket_common.c

index a4ae967a79f36b12f47de920ec2ce2fb054d0212..1c2a3cf3d5aa0007f5cd5848072d837498ee59f5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,5 @@
 2005-07-21  Tor Lillqvist  <tml@novell.com>
 
-       * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
-       use GTK_IS_PLUG() with all backends.
-
        * gtk/gtk.symbols: Make GtkPlug/Socket API available with all
        backends.
 
        * gtk/gtkxembed.c (_gtk_xembed_message_name): New function, used
        in error messages and debugging output.
        
+       * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
+       use GTK_IS_PLUG() with all backends.
+
+       * tests/testsocket_common.c: Make it work on Win32, too.
+
 2005-07-21  Tor Lillqvist  <tml@novell.com>
 
        * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Use
index a4ae967a79f36b12f47de920ec2ce2fb054d0212..1c2a3cf3d5aa0007f5cd5848072d837498ee59f5 100644 (file)
@@ -1,8 +1,5 @@
 2005-07-21  Tor Lillqvist  <tml@novell.com>
 
-       * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
-       use GTK_IS_PLUG() with all backends.
-
        * gtk/gtk.symbols: Make GtkPlug/Socket API available with all
        backends.
 
        * gtk/gtkxembed.c (_gtk_xembed_message_name): New function, used
        in error messages and debugging output.
        
+       * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
+       use GTK_IS_PLUG() with all backends.
+
+       * tests/testsocket_common.c: Make it work on Win32, too.
+
 2005-07-21  Tor Lillqvist  <tml@novell.com>
 
        * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Use
index a4ae967a79f36b12f47de920ec2ce2fb054d0212..1c2a3cf3d5aa0007f5cd5848072d837498ee59f5 100644 (file)
@@ -1,8 +1,5 @@
 2005-07-21  Tor Lillqvist  <tml@novell.com>
 
-       * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
-       use GTK_IS_PLUG() with all backends.
-
        * gtk/gtk.symbols: Make GtkPlug/Socket API available with all
        backends.
 
        * gtk/gtkxembed.c (_gtk_xembed_message_name): New function, used
        in error messages and debugging output.
        
+       * gtk/gtkwindow.c (gtk_window_show): No need for ifdef, can now
+       use GTK_IS_PLUG() with all backends.
+
+       * tests/testsocket_common.c: Make it work on Win32, too.
+
 2005-07-21  Tor Lillqvist  <tml@novell.com>
 
        * gdk/win32/gdkwindow-win32.c (gdk_window_set_title): Use
index 6d374de98ea62309fd58be18b8d417088a080bd0..a4760893da8c3ab6a988a4eb55799b948f5d868d 100644 (file)
 #undef GTK_DISABLE_DEPRECATED
 
 #include <config.h>
-#include "x11/gdkx.h"
 #include <gtk/gtk.h>
+#if defined (GDK_WINDOWING_X11)
+#include "x11/gdkx.h"
+#elif defined (GDK_WINDOWING_WIN32)
+#include "win32/gdkwin32.h"
+#endif
 
 enum
 {
@@ -264,7 +268,11 @@ create_child_plug (guint32  xid,
   gtk_widget_show_all (window);
 
   if (GTK_WIDGET_REALIZED (window))
+#if defined (GDK_WINDOWING_X11)
     return GDK_WINDOW_XID (window->window);
+#elif defined (GDK_WINDOWING_WIN32)
+    return (guint32) GDK_WINDOW_HWND (window->window);
+#endif
   else
     return 0;
 }