soylent r168 - trunk/src
- From: treitter svn gnome org
- To: svn-commits-list gnome org
- Subject: soylent r168 - trunk/src
- Date: Sun, 22 Jun 2008 23:46:04 +0000 (UTC)
Author: treitter
Date: Sun Jun 22 23:46:04 2008
New Revision: 168
URL: http://svn.gnome.org/viewvc/soylent?rev=168&view=rev
Log:
cut out a lot of noisy debug statements
Modified:
trunk/src/eds-utils.c
trunk/src/soylent-browser-person-view.c
Modified: trunk/src/eds-utils.c
==============================================================================
--- trunk/src/eds-utils.c (original)
+++ trunk/src/eds-utils.c Sun Jun 22 23:46:04 2008
@@ -176,9 +176,6 @@
g_return_val_if_fail (abs_num > 0, retval);
/* value may be NULL */
- g_debug ("passed e_vcard_attr_list_set_value validation");
- g_debug ("field_id: %d", field_id);
-
attr_list_head = e_contact_get_attributes (e_contact, field_id);
if (attr_list_head)
{
@@ -257,13 +254,8 @@
g_return_val_if_fail (value, retval);
g_return_val_if_fail (!g_str_equal (value, ""), retval);
- g_debug ("\npassed e_vcard_attr_list_prepend_value validation");
- g_debug ("field_id: %d", field_id);
- g_debug (" %s, %d, %s\n", type, field_id, value);
-
attr_list = e_contact_get_attributes (e_contact, field_id);
- g_debug ("field name: %s", e_contact_field_name (field_id));
attr_name = eds_im_field_id_to_vcard_attr (field_id);
attr = e_vcard_attribute_new (NULL, attr_name);
e_vcard_attribute_add_value (attr, value);
Modified: trunk/src/soylent-browser-person-view.c
==============================================================================
--- trunk/src/soylent-browser-person-view.c (original)
+++ trunk/src/soylent-browser-person-view.c Sun Jun 22 23:46:04 2008
@@ -1227,21 +1227,12 @@
}
}
- /* FIXME: un-hardcode this; handle all types */
- /*
- use eds_im_field_id_to_vcard_attr (field_id)); for the IM fields
- e_vcard_remove_attributes (e_contact, "X-JABBER");
- */
-
/* Traverse in reverse order to preserve order from the editor */
for (l = g_list_last (pre_save_list_im); l; l = g_list_previous (l))
{
pre_save_im_t *fields_im = NULL;
fields_im = l->data;
- g_debug (" %s, %d, %s", CONTEXT_STRS[fields_im->context],
- fields_im->e_contact_field, fields_im->value);
-
if (fields_im->value && !g_str_equal (fields_im->value, ""))
{
e_vcard_attr_list_prepend_value (e_contact,
@@ -1305,8 +1296,6 @@
g_free (contents_new);
}
- g_debug ("\n");
-
/* Prep the email fields for saving */
e_vcard_remove_attributes (E_VCARD (e_contact), NULL, EVC_EMAIL);
{
@@ -1321,8 +1310,6 @@
gchar *widget_name = NULL;
GtkHBox *hbox_email = NULL;
- g_debug ("e_contact_field: %d", e_contact_field);
-
widget_name = g_strdup_printf ("hbox_person_email_%d", email_num);
hbox_email = GTK_HBOX (glade_xml_get_widget (wtree, widget_name));
g_free (widget_name);
@@ -1333,8 +1320,6 @@
{
GtkEntry *entry_email = NULL;
- g_debug ("hbox visible");
-
widget_name = g_strdup_printf ("entry_person_email_%d", email_num);
entry_email = GTK_ENTRY (glade_xml_get_widget (wtree, widget_name));
g_free (widget_name);
@@ -1351,35 +1336,21 @@
contents_new);
/* only move on to the next field if the current one isn't
* blank; this avoids a data aliasing problem */
- g_debug ("wrote field: %d", (e_contact_field));
- g_debug ("contents_new: %s", contents_new);
e_contact_field++;
}
- else
- {
- g_debug ("contents NULL");
- }
g_free (contents_new);
}
}
- g_debug (" ");
-
/* if we run through any iterations, we skipped over empty fields above;
* clear out the remaining fields to overwrite any dangling values */
for (;
e_contact_field < (E_CONTACT_EMAIL_1 + MAX_GUI_EMAIL);
e_contact_field++)
{
- g_debug ("e_contact_field: %d", e_contact_field);
-
- g_debug ("e_contact_field contents (write): '(null)'");
soylent_browser_person_set_field_simple (e_contact, e_contact_field,
NULL);
-
- g_debug ("e_contact_field contents (read): '%s'",
- (gchar*) e_contact_get_const (e_contact, e_contact_field));
}
}
@@ -2574,9 +2545,6 @@
g_return_val_if_fail (E_IS_CONTACT (e_contact), retval);
g_return_val_if_fail (E_CONTACT_FIELD_IS_VALID (e_contact_field), retval);
- g_debug (G_STRLOC ": setting simple field number %d: %s", e_contact_field,
- contents_new);
-
if (contents_new && g_str_equal (contents_new, ""))
{
contents_new = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]