Fix warnings in nsNativeThemeGTK.cpp. b=378698 r+sr=roc
authordbaron@dbaron.org
Wed, 25 Apr 2007 23:57:37 -0700
changeset 830 985ab6c8587553cc4200ec5448b42ad59fb206ec
parent 829 7799c406edfb7fc86acdc1be3dd089a97887fdf6
child 831 79cd5c82d3575690f80e407efbcd164a994996b9
push id1
push userbsmedberg@mozilla.com
push dateThu, 20 Mar 2008 16:49:24 +0000
treeherdermozilla-central@61007906a1f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs378698
milestone1.9a4pre
Fix warnings in nsNativeThemeGTK.cpp. b=378698 r+sr=roc
widget/src/gtk2/nsNativeThemeGTK.cpp
--- a/widget/src/gtk2/nsNativeThemeGTK.cpp
+++ b/widget/src/gtk2/nsNativeThemeGTK.cpp
@@ -626,17 +626,17 @@ nsNativeThemeGTK::DrawWidgetBackground(n
   nsMargin extraSizeAppUnits(NSIntPixelsToAppUnits(extraSize.left, p2a),
                              NSIntPixelsToAppUnits(extraSize.top, p2a),
                              NSIntPixelsToAppUnits(extraSize.right, p2a),
                              NSIntPixelsToAppUnits(extraSize.bottom, p2a));
   drawingRect.Inflate(extraSizeAppUnits);
 
   // 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!");
 
   PRBool safeState = IsWidgetStateSafe(mSafeWidgetStates, aWidgetType, &state);
   XErrorHandler oldHandler = nsnull;
   if (!safeState) {
     gLastXError = 0;
@@ -678,17 +678,17 @@ nsNativeThemeGTK::DrawWidgetBackground(n
 
   if (!safeState) {
     gdk_flush();
     XSetErrorHandler(oldHandler);
 
     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
       NS_WARNING("GTK theme failed; disabling unsafe widget");
       SetWidgetTypeDisabled(mDisabledWidgetTypes, aWidgetType);
       // force refresh of the window, because the widget was not
       // successfully drawn it must be redrawn using the default look
       RefreshWidgetWindow(aFrame);