Revising logging: implementation and leveling of "init" message.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15555 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/module-cleanup
Joshua Sled 19 years ago
parent 0efccfc12f
commit f6b6771410

@ -59,7 +59,10 @@
* - general graph cleanup
**/
static QofLogModule log_module = GNC_MOD_GUI;
#define LOG_MOD "gnc.gui.html.graph.gog"
static QofLogModule log_module = LOG_MOD;
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN LOG_MOD
static int handle_piechart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d);
static int handle_barchart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer d);
@ -81,7 +84,7 @@ void
gnc_html_graph_gog_init(void)
{
PINFO( "init gog graphing" );
g_debug( "init gog graphing" );
libgoffice_init();
@ -441,7 +444,7 @@ handle_barchart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer unused)
//"vary_style_by_element", TRUE,
"type", bar_type,
"overlap_percentage", bar_overlap,
NULL);
NULL);
label_data = go_data_vector_str_new ((char const * const *)row_labels, data_rows, NULL);
{
// foreach row:
@ -455,8 +458,8 @@ handle_barchart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer unused)
gog_object_set_name (GOG_OBJECT (series), col_labels[i], &err);
if (err != NULL)
{
PERR("error setting name [%s] on series [%d]: [%s]\n",
col_labels[i], i, err->message);
g_warning("error setting name [%s] on series [%d]: [%s]",
col_labels[i], i, err->message);
}
g_object_ref (label_data);
@ -470,10 +473,10 @@ handle_barchart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer unused)
style = gog_styled_object_get_style (GOG_STYLED_OBJECT (series));
style->fill.type = GOG_FILL_STYLE_PATTERN;
if (gdk_color_parse (col_colors[i], &color)) {
style->fill.auto_back = FALSE;
go_pattern_set_solid (&style->fill.pattern, GDK_TO_UINT (color));
style->fill.auto_back = FALSE;
go_pattern_set_solid (&style->fill.pattern, GDK_TO_UINT (color));
} else {
PERR("cannot parse color %s.", col_colors[i]);
g_warning("cannot parse color [%s]", col_colors[i]);
}
}
}
@ -493,7 +496,7 @@ handle_barchart(gnc_html * html, GtkHTMLEmbedded * eb, gpointer unused)
add_pixbuf_graph_widget (eb, graph);
PINFO("barchart rendered.");
g_debug("barchart rendered.");
return TRUE;
}

Loading…
Cancel
Save