From: Robert L K. <rl...@al...> - 2004-05-30 16:19:37
|
From: Sven Neumann <sv...@gi...> Date: 30 May 2004 12:44:05 +0200 Robert L Krawitz <rl...@al...> writes: > Unfortunately, the gtkcurve widget doesn't allow setting the control > points of the curve, only setting a dense curve > (gtk_curve_set_vector). There may be a back door way of doing it, but > that carries obvious hazards. The GtkCurve widget is basically deprecated and scheduled for removal from GTK+. I would suggest that if you need such a widget you simply copy the code and change the namespace. You can then add the API you need. So if we have to do this anyway, we might as well use this as an opportunity to improve the curve widget. Mike Porter has contacted me and will send me some improvements he made several years ago. Some specific things I think we could do: 1) Offer an entry box to add a new control point/modify an existing one. 2) Directly support gamma curves (the current widget creates a dense curve of the correct gamma). 3) Offer a magnifier/scroll bar. -- Robert Krawitz <rl...@al...> Tall Clubs International -- http://www.tall.org/ or 1-888-IM-TALL-2 Member of the League for Programming Freedom -- mail lp...@uu... Project lead for Gimp Print -- http://gimp-print.sourceforge.net "Linux doesn't dictate how I work, I dictate how Linux works." --Eric Crampton |