[PATCH 15/15] gnome-control-center: g_prints cleanup



nome-control-center:  113_cc-randr12-remove_g_prints.patch

Clean up some print spewage in .xsession-errors.  (Some of this is due
to earlier patches.)

diff -Nur -x '*.orig' -x '*~' gnome-control-center-2.22.1/capplets/display/xrandr-capplet.c gnome-control-center-2.22.1.new/capplets/display/xrandr-capplet.c
--- gnome-control-center-2.22.1/capplets/display/xrandr-capplet.c	2008-04-09 13:02:18.000000000 +0100
+++ gnome-control-center-2.22.1.new/capplets/display/xrandr-capplet.c	2008-04-09 13:03:22.000000000 +0100
@@ -128,10 +128,10 @@
     {
 	Output *o = app->current_configuration->outputs[i];
 	
-	g_print ("  output %s %s: %d %d %d %d\n", o->name, o->on? "on" : "off", o->x, o->y, o->width, o->height);
+	//g_print ("  output %s %s: %d %d %d %d\n", o->name, o->on? "on" : "off", o->x, o->y, o->width, o->height);
     }
     
-    g_print ("sorting\n");
+    //g_print ("sorting\n");
     /* Sort outputs according to X coordinate */
     for (i = 0; app->current_configuration->outputs[i] != NULL; ++i)
 	;
@@ -1239,7 +1239,7 @@
 		g_free (output->user_data);
 		output->user_data = NULL;
 
-		g_print ("new position: %d %d %d %d\n", output->x, output->y, output->width, output->height);
+		//g_print ("new position: %d %d %d %d\n", output->x, output->y, output->width, output->height);
 	    }
 
 	    foo_scroll_area_invalidate (area);
@@ -1594,7 +1594,7 @@
     message.xclient.message_type = gnome_randr_atom();
     message.xclient.format = 8;
 
-    g_print ("Sending client message\n");
+    //g_print ("Sending client message\n");
 
     XSendEvent (gdk_x11_get_default_xdisplay(),
                 gdk_x11_get_default_root_xwindow(),
@@ -1611,20 +1611,20 @@
 
     foo_scroll_area_invalidate (FOO_SCROLL_AREA (app->area));
     
-    g_print("Applying changes for onetime test\n");
+    //g_print("Applying changes for onetime test\n");
 
     /* Only allow the configuration to be used once */
     if (configuration_save_onetime (app->current_configuration, &err))
     {
-        g_print("Sending xrandr update message\n");
+        //g_print("Sending xrandr update message\n");
         send_xrandr_update_message ();
 
         if ( ! run_revert_dialog () ) {
-            g_print("Reverting to original configuration\n");
+            //g_print("Reverting to original configuration\n");
             send_xrandr_update_message ();
             return;
         } else {
-            g_print("Keeping configuration permanently\n");
+            //g_print("Keeping configuration permanently\n");
         }
 
         /* Save the configuration permanently */
@@ -1762,15 +1762,15 @@
     switch (gtk_dialog_run (GTK_DIALOG (app->dialog)))
     {
     default:
-	g_print ("Unknown response\n");
+	//g_print ("Unknown response\n");
 	/* Fall Through */
     case GTK_RESPONSE_DELETE_EVENT:
     case GTK_RESPONSE_CLOSE:
-	g_print ("Close\n");
+	//g_print ("Close\n");
 	break;
 
     case GTK_RESPONSE_HELP:
-	g_print ("Help\n");
+	//g_print ("Help\n");
 	goto restart;
 	break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]