After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 350072 - stdout output from colorselection
stdout output from colorselection
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.10.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-08-05 15:37 UTC by Iago Rubio
Modified: 2011-02-04 16:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Patch to fix #350072 (598 bytes, patch)
2006-08-05 15:39 UTC, Iago Rubio
none Details | Review

Description Iago Rubio 2006-08-05 15:37:53 UTC
Please describe the problem:
I realized that lately there have been some output to stdout when
selecting an item on the color selection's palette.

Looks like the culprit is palette_paint at gtkcolorsel.c:607
// ....
625   set_focus_line_attributes (drawing_area, cr, &focus_width);
626   g_print ("%g %g %g %g\n",
627            focus_width / 2., focus_width / 2.,
628            (double)drawing_area->allocation.width - focus_width,
629            (double)drawing_area->allocation.height - focus_width);
// ...


Steps to reproduce:
1. Open a gtk colo chooser dialog with palette
2. Click on a palette item


Actual results:
It prints some output to stdout.

Expected results:
It doesn't prints anything to stdout

Does this happen every time?
Yes

Other information:
Comment 1 Iago Rubio 2006-08-05 15:39:22 UTC
Created attachment 70264 [details] [review]
Patch to fix #350072 

It merely takes out the print statement that's producing the spureous output.
Comment 2 Matthias Clasen 2006-08-15 15:17:37 UTC
2006-08-15  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkcolorsel.c (palette_paint): Remove a leftover
	debug statement. (#350072, Iago Rubio)