Re: gtkdatabox-0.8.0.0 released



Thank you very much Roland, this release is great.
In future versions of cournol, I'll use gtkdatabox_rulers instead of nxp_rulers. Here the new version works flawlessly, but nevertheless, I have two small suggestions:

1) In gtkdatabox.c, line 1352, <gtk/gtkdatabox_ruler.h> is included. Actually, <gtkdatabox_ruler.h> should be included.

2) In examples/basics2.c a few unused variables can be found. From the gcc output:
basics2.c: In Funktion »create_basics«:
basics2.c:57: Warnung: Variable »buffer« wird nicht verwendet
basics2.c:54: Warnung: Variable »max« wird nicht verwendet
basics2.c:53: Warnung: Variable »min« wird nicht verwendet
basics2.c:51: Warnung: Variable »ruler« wird nicht verwendet
basics2.c:50: Warnung: Variable »scrollbar« wird nicht verwendet

Regards,
Fabian


Roland Bock wrote:
Dear all,

a few minutes ago I uploaded a new version of GtkDatabox:

http://www.eudoxos.de/gtk/gtkdatabox/download/gtkdatabox-0.8.0.0.tar.gz

Here is the appropriate excerpt from the ChangeLog:

<snip>
- Added support for logarithmic scales for drawing
- Replaced original gtkruler with gtkdatabox_ruler.
- GtkDataboxRuler supports logarithmic scales
- Instead of HRuler and VRuler, GtkDataboxRuler has an orientation
  - No big changes in existing projects required, see examples
- renamed the following functions:
  gtk_databox_get_canvas         => gtk_databox_get_total_limits
  gtk_databox_set_canvas         => gtk_databox_set_total_limits
  gtk_databox_get_visible_canvas => gtk_databox_get_visible_limits
  gtk_databox_set_visible_canvas => gtk_databox_set_visible_limits
- replaced GtkDataboxCoord by GdkPoint (which is just the same)
- Added example which shows linear, logarithmic and double logarithmic
  graphs
- Added example which shows easiest way to start with GtkDatabox
</snip>

I hope I have not forgotten any important thing...

Some more words about the rulers:
We had a discussion about using nxp_ruler, which seemed to have both,
good handling of huge values and logarithmic scales. But when I took a
closer look there were a few things that stopped me from using nxp_rulers:

*) Scales cannot not be inverted, so I cannot turn my graph upside down.
This is an old and required feature of GtkDatabox, though.

*) I do not understand the code that calculates the ticks at all.

*) Two many classes for my taste (3 rulers, plus a special adjustment)

*) There were some minor issues in addition

I therefore took a look at the "original" GtkRuler, again. I liked that
code much better and adjusted it to create a GtkDataboxRuler widget
which (in my eyes) combines the benefits of GtkRuler and NxpRuler and more:

*) Works with rather big and also rather small data ranges

*) Supports linear and logarithmic scales

*) Can be inverted

*) Only one class (not three or four)

*) Modern GTK Style, using cairo (maybe this also should be used with
some of the graphs)


You see, I like it ;-)


I am looking forward to reading your feedback!


Regards,

Roland

_______________________________________________
gtkdatabox-list mailing list
gtkdatabox-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkdatabox-list




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