]> Pileus Git - ~andy/gtk/commitdiff
Fix the problem introduced by whoever thought that randomly changing ints
authorMiguel de Icaza <miguel@nuclecu.unam.mx>
Wed, 15 Apr 1998 02:15:36 +0000 (02:15 +0000)
committerArturo Espinosa <unammx@src.gnome.org>
Wed, 15 Apr 1998 02:15:36 +0000 (02:15 +0000)
1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>

* gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
by whoever thought that randomly changing ints to unsigned int
without reviewing the code was a good idea.  It is, btw not
mentioned in the ChangeLog as usual, but I know it was not Elliot
the culprit this time.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdkwindow.c
gdk/x11/gdkwindow-x11.c

index 1cc52e70859e5c791be26d0070c714c581aee6b2..eb9899ccae5bd57ce61825fad6041b985c707c6b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
+
+       * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
+       by whoever thought that randomly changing ints to unsigned int
+       without reviewing the code was a good idea.  It is, btw not
+       mentioned in the ChangeLog as usual, but I know it was not Elliot
+       the culprit this time. 
+
 Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.0.0
index 1cc52e70859e5c791be26d0070c714c581aee6b2..eb9899ccae5bd57ce61825fad6041b985c707c6b 100644 (file)
@@ -1,3 +1,11 @@
+1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
+
+       * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
+       by whoever thought that randomly changing ints to unsigned int
+       without reviewing the code was a good idea.  It is, btw not
+       mentioned in the ChangeLog as usual, but I know it was not Elliot
+       the culprit this time. 
+
 Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.0.0
index 1cc52e70859e5c791be26d0070c714c581aee6b2..eb9899ccae5bd57ce61825fad6041b985c707c6b 100644 (file)
@@ -1,3 +1,11 @@
+1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
+
+       * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
+       by whoever thought that randomly changing ints to unsigned int
+       without reviewing the code was a good idea.  It is, btw not
+       mentioned in the ChangeLog as usual, but I know it was not Elliot
+       the culprit this time. 
+
 Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.0.0
index 1cc52e70859e5c791be26d0070c714c581aee6b2..eb9899ccae5bd57ce61825fad6041b985c707c6b 100644 (file)
@@ -1,3 +1,11 @@
+1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
+
+       * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
+       by whoever thought that randomly changing ints to unsigned int
+       without reviewing the code was a good idea.  It is, btw not
+       mentioned in the ChangeLog as usual, but I know it was not Elliot
+       the culprit this time. 
+
 Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.0.0
index 1cc52e70859e5c791be26d0070c714c581aee6b2..eb9899ccae5bd57ce61825fad6041b985c707c6b 100644 (file)
@@ -1,3 +1,11 @@
+1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
+
+       * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
+       by whoever thought that randomly changing ints to unsigned int
+       without reviewing the code was a good idea.  It is, btw not
+       mentioned in the ChangeLog as usual, but I know it was not Elliot
+       the culprit this time. 
+
 Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.0.0
index 1cc52e70859e5c791be26d0070c714c581aee6b2..eb9899ccae5bd57ce61825fad6041b985c707c6b 100644 (file)
@@ -1,3 +1,11 @@
+1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
+
+       * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
+       by whoever thought that randomly changing ints to unsigned int
+       without reviewing the code was a good idea.  It is, btw not
+       mentioned in the ChangeLog as usual, but I know it was not Elliot
+       the culprit this time. 
+
 Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.0.0
index 1cc52e70859e5c791be26d0070c714c581aee6b2..eb9899ccae5bd57ce61825fad6041b985c707c6b 100644 (file)
@@ -1,3 +1,11 @@
+1998-04-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
+
+       * gdk/gdkwindow.c (gdk_window_xid_at): Fix the problem introduced
+       by whoever thought that randomly changing ints to unsigned int
+       without reviewing the code was a good idea.  It is, btw not
+       mentioned in the ChangeLog as usual, but I know it was not Elliot
+       the culprit this time. 
+
 Mon Apr 13 19:16:22 PDT 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.0.0
index 4edb1ead66205400fa26c4488617112e25a5de7c..3dfb9d2a424a3836679f423c23bb7fdf2a236317 100644 (file)
@@ -65,18 +65,18 @@ gdk_window_xid_at(Window base, gint bx, gint by, gint x, gint y,
    Display *disp;
    Window *list=NULL;
    Window child=0,parent_win=0,root_win=0;
+
    int i;
-   guint num;
+   unsigned int ww, wh, wb, wd, num;
    int wx,wy;
-   guint ww,wh,wb,wd;
-
+   
    window=(GdkWindow*)&gdk_root_parent;
    private=(GdkWindowPrivate*)window;
    disp=private->xdisplay;
    if (!XGetGeometry(disp,base,&root_win,&wx,&wy,&ww,&wh,&wb,&wd))
      return 0;
    wx+=bx;wy+=by;
-   if (!((x>=wx)&&(y>=wy)&&(x<(wx+ww))&&(y<(wy+wh))))
+   if (!((x>=wx)&&(y>=wy)&&(x<(int)(wx+ww))&&(y<(int)(wy+wh))))
      return 0;
    if (!XQueryTree(disp,base,&root_win,&parent_win,&list,&num))
      return base;
index 4edb1ead66205400fa26c4488617112e25a5de7c..3dfb9d2a424a3836679f423c23bb7fdf2a236317 100644 (file)
@@ -65,18 +65,18 @@ gdk_window_xid_at(Window base, gint bx, gint by, gint x, gint y,
    Display *disp;
    Window *list=NULL;
    Window child=0,parent_win=0,root_win=0;
+
    int i;
-   guint num;
+   unsigned int ww, wh, wb, wd, num;
    int wx,wy;
-   guint ww,wh,wb,wd;
-
+   
    window=(GdkWindow*)&gdk_root_parent;
    private=(GdkWindowPrivate*)window;
    disp=private->xdisplay;
    if (!XGetGeometry(disp,base,&root_win,&wx,&wy,&ww,&wh,&wb,&wd))
      return 0;
    wx+=bx;wy+=by;
-   if (!((x>=wx)&&(y>=wy)&&(x<(wx+ww))&&(y<(wy+wh))))
+   if (!((x>=wx)&&(y>=wy)&&(x<(int)(wx+ww))&&(y<(int)(wy+wh))))
      return 0;
    if (!XQueryTree(disp,base,&root_win,&parent_win,&list,&num))
      return base;