Le jeudi 30 avril 2009 à 13:05 +0100, [email protected] a écrit : > Hi all, > > I'm trying to use libgoffice to draw charts for my image processing > package, replacing GtkExtra. > > I've got it mostly working, except I just can't figure out how to set > line colours. I've tried various things along the lines of: > > series = gog_plot_new_series( plotview->gplot ); > ........ > style = gog_styled_object_get_style( GOG_STYLED_OBJECT( series ) ); > style->line.color = RGB_RED; > gog_styled_object_style_changed( GOG_STYLED_OBJECT( series ) );
You should call gog_object_request_update instead of gog_styled_object_style_changed. When you upgrade to goffice-0.7.5 or later, you need to change to style = go_styled_object_get_style( GO_STYLED_OBJECT( series ) ); > but nothing seems to work :-( This is with 0.7.4, if that's important. > Do I need to create a custom theme? > > John _______________________________________________ gnumeric-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnumeric-list
