gdouble e_xml_get_double_prop_by_name (const xmlNode *parent, const xmlChar *prop_name) { g_return_val_if_fail (parent != NULL, 0); g_return_val_if_fail (prop_name != NULL, 0); return e_xml_get_double_prop_by_name_with_default (parent, prop_name, 0.0); }
static void gal_view_minicard_load (GalView *view, const char *filename) { xmlDoc *doc; doc = e_xml_parse_file (filename); if (doc) { xmlNode *root = xmlDocGetRootElement(doc); GAL_VIEW_MINICARD (view)->column_width = e_xml_get_double_prop_by_name_with_default (root, (const unsigned char *)"column_width", 150); xmlFreeDoc(doc); } }
static void view_minicard_load (GalView *view, const gchar *filename) { GalViewMinicard *view_minicard; xmlDoc *doc; xmlNode *root; view_minicard = GAL_VIEW_MINICARD (view); doc = e_xml_parse_file (filename); g_return_if_fail (doc != NULL); root = xmlDocGetRootElement (doc); view_minicard->column_width = e_xml_get_double_prop_by_name_with_default ( root, (guchar *) "column_width", 225); xmlFreeDoc (doc); }