Fix warnings in nsNativeThemeGTK.cpp. b=378698 r+sr=roc

This commit is contained in:
dbaron@dbaron.org 2007-04-25 23:57:37 -07:00
parent a515cf2e3a
commit cee65f510a

View File

@ -631,7 +631,7 @@ nsNativeThemeGTK::DrawWidgetBackground(nsIRenderingContext* aContext,
// translate everything so (0,0) is the top left of the drawingRect
nsIRenderingContext::AutoPushTranslation
translation(aContext, drawingRect.x, drawingRect.y);
autoTranslation(aContext, drawingRect.x, drawingRect.y);
NS_ASSERTION(!IsWidgetTypeDisabled(mDisabledWidgetTypes, aWidgetType),
"Trying to render an unsafe widget!");
@ -683,7 +683,7 @@ nsNativeThemeGTK::DrawWidgetBackground(nsIRenderingContext* aContext,
if (gLastXError) {
#ifdef DEBUG
printf("GTK theme failed for widget type %d, error was %d, state was "
"[active=%d,focused=%d,inHover=%d,disabled=%Id]\n",
"[active=%d,focused=%d,inHover=%d,disabled=%d]\n",
aWidgetType, gLastXError, state.active, state.focused,
state.inHover, state.disabled);
#endif