Commit f3e647a4 authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

simplified displayable value message in

* gladeui/glade-property-class.c: simplified displayable value message in 
  gpc_get_displayable_values_from_node() closes #448915

svn path=/trunk/; revision=1483
parent c0a047e9
2007-07-17 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* gladeui/glade-property-class.c: simplified displayable value message in
gpc_get_displayable_values_from_node() closes #448915
2006-07-17 Tristan Van Berkom <tvb@gnome.org>
* gladeui/glade-widget-adaptor.c: untranslate the "half translated" warning
......
......@@ -1385,8 +1385,7 @@ gpc_get_displayable_values_from_node (GladeXmlNode *node,
GArray *array;
GladeXmlNode *child;
GEnumValue *values;
gint n_values, n = 0;
gboolean first_not_found = TRUE;
gint n_values;
if (G_IS_PARAM_SPEC_ENUM (klass->pspec))
{
......@@ -1460,49 +1459,14 @@ gpc_get_displayable_values_from_node (GladeXmlNode *node,
}
}
if (i == n_values)
{
if (first_not_found)
{
g_message (_("Displayable value id not found in %s::%s"),
((GladeWidgetAdaptor*)klass->handle)->name, klass->id);
first_not_found = FALSE;
}
g_message ("\t%s",id);
}
else n++;
g_free(id);
child = glade_xml_node_next (child);
}
if (n != n_values)
{
gint i;
g_message (_("%d missing displayable value for %s::%s"), n_values - n,
if (n_values != array->len)
g_message ("%d missing displayable value for %s::%s", n_values - array->len,
((GladeWidgetAdaptor*)klass->handle)->name, klass->id);
for(i=0; i < n_values; i++)
{
gboolean not_found = TRUE;
child = glade_xml_node_get_children (node);
while (child != NULL)
{
if(strcmp (glade_xml_get_property_string_required (child, GLADE_TAG_ID, NULL),
values[i].value_name) == 0)
{
not_found = FALSE;
break;
}
child = glade_xml_node_next (child);
}
if (not_found)
g_message ("\t%s", values[i].value_name);
}
}
g_type_class_unref (the_class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment