lower the volume on printf noise.
This commit is contained in:
Родитель
fea227b04e
Коммит
877421b755
|
@ -422,7 +422,7 @@ NS_METHOD nsDOMEvent::GetCharCode(PRUint32* aCharCode)
|
|||
case NS_KEY_PRESS:
|
||||
case NS_KEY_DOWN:
|
||||
*aCharCode = ((nsKeyEvent*)mEvent)->charCode;
|
||||
#ifdef NS_DEBUG
|
||||
#if defined(NS_DEBUG) && defined(DEBUG_buster)
|
||||
if (0==*aCharCode)
|
||||
printf("key event broken, GetCharChode returning 0x0 as the char code.\n");
|
||||
#endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "PlaceholderTxn.h"
|
||||
#include "nsVoidArray.h"
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
#if defined(NS_DEBUG) && defined(DEBUG_buster)
|
||||
static PRBool gNoisy = PR_TRUE;
|
||||
#else
|
||||
static const PRBool gNoisy = PR_FALSE;
|
||||
|
|
|
@ -2553,7 +2553,9 @@ NS_IMETHODIMP nsHTMLEditor::GetBodyWrapWidth(PRInt32 *aWrapColumn)
|
|||
//
|
||||
NS_IMETHODIMP nsHTMLEditor::SetBodyWrapWidth(PRInt32 aWrapColumn)
|
||||
{
|
||||
#ifdef DEBUG_akkana
|
||||
printf("SetBodyWrapWidth(%d)\n", aWrapColumn);
|
||||
#endif
|
||||
nsresult res;
|
||||
|
||||
// Ought to set a style sheet here ...
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "PlaceholderTxn.h"
|
||||
#include "nsVoidArray.h"
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
#if defined(NS_DEBUG) && defined(DEBUG_buster)
|
||||
static PRBool gNoisy = PR_TRUE;
|
||||
#else
|
||||
static const PRBool gNoisy = PR_FALSE;
|
||||
|
|
|
@ -2553,7 +2553,9 @@ NS_IMETHODIMP nsHTMLEditor::GetBodyWrapWidth(PRInt32 *aWrapColumn)
|
|||
//
|
||||
NS_IMETHODIMP nsHTMLEditor::SetBodyWrapWidth(PRInt32 aWrapColumn)
|
||||
{
|
||||
#ifdef DEBUG_akkana
|
||||
printf("SetBodyWrapWidth(%d)\n", aWrapColumn);
|
||||
#endif
|
||||
nsresult res;
|
||||
|
||||
// Ought to set a style sheet here ...
|
||||
|
|
|
@ -422,7 +422,7 @@ NS_METHOD nsDOMEvent::GetCharCode(PRUint32* aCharCode)
|
|||
case NS_KEY_PRESS:
|
||||
case NS_KEY_DOWN:
|
||||
*aCharCode = ((nsKeyEvent*)mEvent)->charCode;
|
||||
#ifdef NS_DEBUG
|
||||
#if defined(NS_DEBUG) && defined(DEBUG_buster)
|
||||
if (0==*aCharCode)
|
||||
printf("key event broken, GetCharChode returning 0x0 as the char code.\n");
|
||||
#endif
|
||||
|
|
|
@ -276,7 +276,9 @@ void InitKeyPressEvent(GdkEventKey *aGEK,
|
|||
if (aGEK!=nsnull) {
|
||||
anEvent.keyCode = nsConvertKey(aGEK->keyval) & 0x00FF;
|
||||
anEvent.charCode = nsConvertCharCodeToUnicode(aGEK->string);
|
||||
#ifdef DEBUG_pavlov
|
||||
g_print("%s\n", aGEK->string);
|
||||
#endif
|
||||
anEvent.time = aGEK->time;
|
||||
anEvent.isShift = (aGEK->state & GDK_SHIFT_MASK) ? PR_TRUE : PR_FALSE;
|
||||
anEvent.isControl = (aGEK->state & GDK_CONTROL_MASK) ? PR_TRUE : PR_FALSE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче