r15555 - gnucash/trunk/src/gnome-utils - Revising logging: implementation and leveling of "init" message.
Josh Sled
jsled at cvs.gnucash.org
Sat Feb 10 14:06:40 EST 2007
Author: jsled
Date: 2007-02-10 14:06:39 -0500 (Sat, 10 Feb 2007)
New Revision: 15555
Trac: http://svn.gnucash.org/trac/changeset/15555
Modified:
gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c
Log:
Revising logging: implementation and leveling of "init" message.
Modified: gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c 2007-02-10 18:58:10 UTC (rev 15554)
+++ gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c 2007-02-10 19:06:39 UTC (rev 15555)
@@ -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 @@
gnc_html_graph_gog_init(void)
{
- PINFO( "init gog graphing" );
+ g_debug( "init gog graphing" );
libgoffice_init();
@@ -441,7 +444,7 @@
//"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 @@
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 @@
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 @@
add_pixbuf_graph_widget (eb, graph);
- PINFO("barchart rendered.");
+ g_debug("barchart rendered.");
return TRUE;
}
More information about the gnucash-changes
mailing list