Small correction to adopt to base change also remove annoying warning.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23971 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2006-10-27 12:25:26 +00:00
parent b684db215f
commit a5d929ce42
3 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2006-10-27 Fred Kiefer <FredKiefer@gmx.de>
* Source/x11/XIMInputServer.m (-initWithDelegate:display:name:):
Replace call to GetStringEncoding with [NSString
localizedNameOfStringEncoding:]
* Source/x11/XGServerWindow.m (-_setupMouse): Make log message on
multiple mouse buttons a debug log message. Seems like newer X
servers detect loads of mouse buttons which are not there.
2006-10-21 Matt Rice <ratmice@yahoo.com>
* Source/win32/WIN32Server.m: Update -windowlist implementation.

View file

@ -1127,8 +1127,8 @@ static void setWindowHintsForStyle (Display *dpy, Window window,
numButtons = XGetPointerMapping(dpy, mouseNumbers, 5);
if (numButtons > 5)
{
NSLog(@"Warning - mouse/pointer seems to have more than 5 buttons"
@" - just using one to five");
NSDebugLLog(@"XGTrace", @"Warning - mouse/pointer seems to have more than 5 buttons "
@"(%d) - just using one to five", numButtons);
numButtons = 5;
}
generic.lMouse = buttons[0];

View file

@ -92,7 +92,7 @@
encoding = [NSString defaultCStringEncoding];
}
NSDebugLLog(@"XIM", @"XIM locale encoding for %s is %@", locale,
GetEncodingName(encoding));
[NSString localizedNameOfStringEncoding: encoding]);
#ifdef USE_XIM
if ([self ximInit: dpy] == NO)