Re: GtkExtra example doesn't build



        Well, I was going to pull down the latest CVS stuff for gtkextra-2, but
CVS on sf.net does not seem to be cooperating at the moment.

        Adrian: Have you used the CVS repository lately?  It looks like there
might be some kind of issue with it that would require the sf.net admin
staff to intervene.  It's failing to create a lock file when I try to
checkout the gtkextra-2 module.  This happening both when I log in as
anonymous, and when I log in under my sf.net userid.

        Nickolai:  In the interim, try downloading the gtkextra-2 2.1.1 source
release from 6/24/2005, and see if that builds for you.  It's available
in the "Files" section on gtkextra.sf.net.

-Al


On Fri, 2006-02-03 at 21:26 -0600, Nickolai Dobrynin wrote:
Good afternoon --

I have just downloaded the latest CVS snapshot of GtkExtra and tried to
build testrealtime.c.  The error messages I got were:
testrealtime.cc:154: error: invalid conversion from `int' to
`GtkPlotAxisPos'
testrealtime.cc:154: error:   initializing argument 2 of `GtkPlotAxis*
gtk_plot_get_axis(GtkPlot*, GtkPlotAxisPos)'
testrealtime.cc:154: error: invalid conversion from `int' to
`GtkPlotLabelStyle'
testrealtime.cc:154: error:   initializing argument 2 of `void
gtk_plot_axis_set_labels_style(GtkPlotAxis*, GtkPlotLabelStyle, gint)'
testrealtime.cc:155: error: invalid conversion from `int' to
`GtkPlotAxisPos'
testrealtime.cc:155: error:   initializing argument 2 of `GtkPlotAxis*
gtk_plot_get_axis(GtkPlot*, GtkPlotAxisPos)'
testrealtime.cc:155: error: invalid conversion from `int' to
`GtkPlotLabelStyle'
testrealtime.cc:155: error:   initializing argument 2 of `void
gtk_plot_axis_set_labels_style(GtkPlotAxis*, GtkPlotLabelStyle, gint)'
testrealtime.cc:168: error: invalid conversion from `int' to
`GtkPlotBorderStyle'
testrealtime.cc:168: error:   initializing argument 2 of `void
gtk_plot_set_legends_border(GtkPlot*, GtkPlotBorderStyle, gint)'
testrealtime.cc:190: error: invalid conversion from `int' to `GdkCapStyle'
testrealtime.cc:190: error:   initializing argument 3 of `void
gtk_plot_data_set_line_attributes(GtkPlotData*, GtkPlotLineStyle,
GdkCapStyle, GdkJoinStyle, gfloat, const GdkColor*)'

For example, the line that triggers the first error looks like this:
gtk_plot_axis_set_labels_style(gtk_plot_get_axis(GTK_PLOT(active_plot), 2),
0, 0);
After looking at the docs, I realized that gtk_plot_get_axis does not accept
an integer as its 2nd argument.  Can anybody please tell me if there is
any way to fix this code so it would compile and run?



Thanks,

Nickolai
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

!DSPAM:43e41eff175991293342295!




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