Search the web
Sign In
New User? Sign Up
gbuffy · GBuffy Tool Discussion
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
geometry fix   Message List  
Reply | Forward Message #133 of 231 |
The problem is the HorizPos/VertPos.sign fields
get modified when they shouldn't.

--- gbuffy.c.orig Fri Oct 10 14:30:11 2003
+++ gbuffy.c Thu Jan 8 10:17:22 2004
@@ -566,11 +566,10 @@
if (cur_height != Height)
Height = cur_height;

- HorizPos.sign = POSITIVE;
- VertPos.sign = POSITIVE;
-
- if (beenhere)
+ if (beenhere) {
+ HorizPos.sign = VertPos.sign = POSITIVE;
gdk_window_get_position (MainWindow->window, &HorizPos.value,
&VertPos.value);
+ }
else
beenhere = 1;

Or, just fix the code so it looks like the following in
gbuffy.c (move the assignment of POSITIVE to the sign fields
to within the "beenhere" if statement:

gdk_window_get_size(MainWindow->window, &cur_width, &cur_height);
if (cur_width != Width)
Width = cur_width;
if (cur_height != Height)
Height = cur_height;

/* old assignments were right here */

if (beenhere) {
HorizPos.sign = VertPos.sign = POSITIVE;
gdk_window_get_position (MainWindow->window, &HorizPos.value,
&VertPos.value);
}
else
beenhere = 1;

return TRUE;
}




Thu Jan 8, 2004 6:28 pm

rrauenza
Online Now Online Now
Send Email Send Email

Forward
Message #133 of 231 |
Expand Messages Author Sort by Date

The problem is the HorizPos/VertPos.sign fields get modified when they shouldn't. ... +++ gbuffy.c Thu Jan 8 10:17:22 2004 @@ -566,11 +566,10 @@ if...
rrauenza
Online Now Send Email
Jan 8, 2004
6:29 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help