Subject: CVS commit: pkgsrc
To: None <source-changes@netbsd.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 01/15/2001 14:46:02
Module Name:	pkgsrc
Committed By:	drochner
Date:		Mon Jan 15 12:46:02 UTC 2001

Modified Files:
	pkgsrc/x11/gtk+extra: Makefile
	pkgsrc/x11/gtk+extra/files: md5
	pkgsrc/x11/gtk+extra/pkg: PLIST

Log Message:
update to 0.99.12
Changelog:
 - New plot subclasses for 3D and polar plots: GtkPlot3d and GtkPlotPolar.

   GtkPlot3D has its own API, but GtkPlotPolar can be casted as a GtkPlot
 considering the equivalence x->r, y->angle.

 - GtkPlotData is a widget. The API is almost the same. You may have to
 cast the widget using data = GTK_PLOT_DATA(gtk_plot_data_new());

 - The other Data subclasses are Bar, Box, Flux, Surface and
 CSurface.

 - I added new arguments to the datasets (z, dz, a, da): z is obviously for
 3d plots. However, it is used in GtkPlotBox to specify the size of the boxes.
 "a" is used to determine the size of the symbols, and "da", the color.

 - The color of the symbols, when "da" is specified, is detemined using the
 gradient. the gradient has (min, max) values, and corresponding colors. The
 symbol's color is interpolated between these values using hue/saturation/value
 depending on the gradient_mask.

 - GtkOrientation was replaced with GtkPlotOrientation
 (GTK_PLOT_AXIS_X/Y/Z)

 - the fields xticks and yticks were removed from gtkplot.

 - GtkPlotSymbol has a new field GtkPlotLine border and you set/get the
 attributes with gtk_plot_data_set/get_symbol

 - I removed the symbol type: GTK_PLOT_SYMBOL_BAR, because this is a new
 data subclass. I added TRIANGLE_LEFT/RIGHT and DOT.

 - After gtk_plot_canvas_paint, you have to use gtk_plot_canvas_refresh to
 refresh the pixmap in the window. This is because paint can be
 used to print or save plots in other formats, depending on the GtkPlotPC
 you are using (see below).
 - The drawing engine, called GtkPlotPC has been rewritten. Now
 it's a GtkObject, and you can derive subclasses as GtkPlotGdk and
 GtkPlotPS in our case (You can define your own if you want to use a
 different library to draw your plots!).

 How does it work:
 1) Instead of creating a GdkGC, you create either a GtkPlotGdk or
 GtkPlotPS.
 2) you do the following replacements:

 gdk_gc_set_foreground -> gtk_plot_pc_set_color
 gdk_gc_set_dash -> gtk_plot_pc_set_dash
 gdk_gc_set_line_attributes -> gtk_plot_pc_set_lineattr
 gdk_gc_draw_... -> gtk_plot_pc_draw_...

 The output will be either on a drawable or a file according to the
 GtkPlotPC you chose.

 All the redundant code for the PS output in gtkplotprint was eliminated!
 Elegant, isn't it?

 - I also added a new widget: gtktogglecombo, a gtkcombobox subclass (See it
 in action in testgtksheet)

 - New demos are included.


To generate a diff of this commit:
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/x11/gtk+extra/Makefile
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/x11/gtk+extra/files/md5
cvs rdiff -r1.2 -r1.3 pkgsrc/x11/gtk+extra/pkg/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.