2007-05-08 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Tue, 8 May 2007 08:06:07 +0000 (08:06 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Tue, 8 May 2007 08:06:07 +0000 (08:06 +0000)
* src/maemo/modest-address-book.c:
        (modest_address_book_check_names):
        * src/maemo/modest-msg-view-window.c:
        (modest_msg_view_window_clipboard_owner_change):
        * src/modest-init.c: (modest_init_init_ui):
        * src/modest-mail-operation.c: (modest_mail_operation_send_mail),
        (update_folders_cb), (modest_mail_operation_update_account):
        * src/modest-ui-actions.c: (modest_ui_actions_on_msg_link_hover),
        (modest_ui_actions_on_msg_attachment_clicked),
        (modest_ui_actions_on_msg_recpt_activated):
        * src/widgets/modest-header-view.c: (drag_data_get_cb):
        * src/widgets/modest-msg-view.c: (modest_msg_view_search),
        (modest_msg_view_search_next):
        * src/widgets/modest-recpt-editor.c:
        (modest_recpt_editor_on_button_release_event),
        (modest_recpt_editor_on_key_press_event): Commented-out unnecessary calls to
        g_message(). At this point we should only be seeing interesting errors on
        stdout. Debugging messages could be #ifdefed-out if they are still useful.

pmo-trunk-r1777

ChangeLog2
src/maemo/modest-address-book.c
src/maemo/modest-msg-view-window.c
src/modest-init.c
src/modest-mail-operation.c
src/modest-ui-actions.c
src/widgets/modest-header-view.c
src/widgets/modest-msg-view.c
src/widgets/modest-recpt-editor.c

index 112175f..fea1b1a 100644 (file)
@@ -1,3 +1,24 @@
+2007-05-08  Murray Cumming  <murrayc@murrayc.com>
+
+       * src/maemo/modest-address-book.c:
+       (modest_address_book_check_names):
+       * src/maemo/modest-msg-view-window.c:
+       (modest_msg_view_window_clipboard_owner_change):
+       * src/modest-init.c: (modest_init_init_ui):
+       * src/modest-mail-operation.c: (modest_mail_operation_send_mail),
+       (update_folders_cb), (modest_mail_operation_update_account):
+       * src/modest-ui-actions.c: (modest_ui_actions_on_msg_link_hover),
+       (modest_ui_actions_on_msg_attachment_clicked),
+       (modest_ui_actions_on_msg_recpt_activated):
+       * src/widgets/modest-header-view.c: (drag_data_get_cb):
+       * src/widgets/modest-msg-view.c: (modest_msg_view_search),
+       (modest_msg_view_search_next):
+       * src/widgets/modest-recpt-editor.c:
+       (modest_recpt_editor_on_button_release_event),
+       (modest_recpt_editor_on_key_press_event): Commented-out unnecessary calls to 
+       g_message(). At this point we should only be seeing interesting errors on 
+       stdout. Debugging messages could be #ifdefed-out if they are still useful.
+
 2007-05-07  Murray Cumming  <murrayc@murrayc.com>
        
        (modest_wizard_dialog_force_title_update):
index 8554d1d..5848840 100644 (file)
@@ -574,7 +574,7 @@ modest_address_book_check_names (ModestRecptEditor *recpt_editor)
 
        recipients = modest_recpt_editor_get_recipients (recpt_editor);
        last_length = g_utf8_strlen (recipients, -1);
-       g_message ("LENGTH %d", last_length);
+       /* g_message ("LENGTH %d", last_length); */
        modest_text_utils_get_addresses_indexes (recipients, &start_indexes, &end_indexes);
 
        if (start_indexes == NULL) {
@@ -603,9 +603,11 @@ modest_address_book_check_names (ModestRecptEditor *recpt_editor)
                gtk_text_buffer_get_iter_at_offset (buffer, &end_iter, end_pos);
                gtk_text_buffer_select_range (buffer, &start_iter, &end_iter);
 
+/*
                g_message ("RANGE %d - %d", start_pos, end_pos);
 
                g_message ("ADDRESS %s", address);
+*/
                if (!modest_text_utils_validate_recipient (address)) {
                        if (strstr (address, "@") == NULL) {
                                /* here goes searching in addressbook */
@@ -629,7 +631,7 @@ modest_address_book_check_names (ModestRecptEditor *recpt_editor)
                                        new_length = g_utf8_strlen (recipients, -1);
                                        offset_delta = offset_delta + new_length - last_length;
                                        last_length = new_length;
-                                       g_message ("LENGTH %d", last_length);
+                                       /* g_message ("LENGTH %d", last_length); */
                                }
                        } else {
                                /* this address is not valid, select it and return control to user showing banner */
index 57f6c0a..2f9dc9b 100644 (file)
@@ -1183,7 +1183,7 @@ modest_msg_view_window_clipboard_owner_change (GtkClipboard *clipboard,
        parent_priv = MODEST_WINDOW_GET_PRIVATE (window);
        selection = gtk_clipboard_wait_for_text (clipboard);
 
-       g_message ("SELECTION %s", selection);
+       /* g_message ("SELECTION %s", selection); */
        is_address = ((selection != NULL) && (modest_text_utils_validate_recipient (selection)));
        g_free (selection);
        
index 72f787c..8f09230 100644 (file)
@@ -191,7 +191,7 @@ modest_init_init_ui (gint argc, gchar** argv)
 
        /* Set application name */
        g_set_application_name (modest_platform_get_app_name());
-       g_message (modest_platform_get_app_name());
+       /* g_message (modest_platform_get_app_name()); */
 
        init_stock_icons ();
        return TRUE;
index 320f716..547b82e 100644 (file)
@@ -281,8 +281,9 @@ modest_mail_operation_send_mail (ModestMailOperation *self,
                        g_printerr ("modest: error adding msg to send queue: %s\n",
                                    err->message);
                        g_error_free (err);
-               } else
-                       g_message ("modest: message added to send queue");
+               } else {
+                       /* g_message ("modest: message added to send queue"); */
+               }
        }
 
        /* Notify the queue */
@@ -456,7 +457,7 @@ update_folders_cb (TnyFolderStore *folder_store, TnyList *list, GError **err, gp
        self  = MODEST_MAIL_OPERATION (user_data);
        priv  = MODEST_MAIL_OPERATION_GET_PRIVATE (self);
 
-       g_message (__FUNCTION__);
+       /* g_message (__FUNCTION__); */
        
        if (*err) {
                priv->error = g_error_copy (*err);
@@ -537,7 +538,7 @@ modest_mail_operation_update_account (ModestMailOperation *self,
        /* Get subscribed folders & refresh them */
        folders = TNY_LIST (tny_simple_list_new ());
 
-       g_message ("tny_folder_store_get_folders_async");
+       /* g_message ("tny_folder_store_get_folders_async"); */
        tny_folder_store_get_folders_async (TNY_FOLDER_STORE (store_account),
                                            folders, update_folders_cb, NULL, update_folders_status_cb, self);
        
index 90a4928..57d01be 100644 (file)
@@ -1163,7 +1163,7 @@ void
 modest_ui_actions_on_msg_link_hover (ModestMsgView *msgview, const gchar* link,
                                     ModestWindow *win)
 {
-       g_message ("%s %s", __FUNCTION__, link);
+       /* g_message ("%s %s", __FUNCTION__, link); */
 }      
 
 
@@ -1185,7 +1185,7 @@ void
 modest_ui_actions_on_msg_attachment_clicked (ModestMsgView *msgview, TnyMimePart *mime_part,
                                             ModestWindow *win)
 {
-       g_message (__FUNCTION__);
+       /* g_message (__FUNCTION__); */
        
 }
 
@@ -1194,7 +1194,7 @@ modest_ui_actions_on_msg_recpt_activated (ModestMsgView *msgview,
                                          const gchar *address,
                                          ModestWindow *win)
 {
-       g_message ("%s %s", __FUNCTION__, address);
+       /* g_message ("%s %s", __FUNCTION__, address); */
 }
 
 void
index 5b3f5e3..cbe4b28 100644 (file)
@@ -1181,7 +1181,7 @@ drag_data_get_cb (GtkWidget *widget, GdkDragContext *context,
                break;
        }
        default:
-               g_message ("default");
+               g_message ("%s: default switch case.", __FUNCTION__);
        }
 
        gtk_tree_path_free (source_row);
index b91e125..063ca09 100644 (file)
@@ -1431,7 +1431,7 @@ modest_msg_view_search (ModestMsgView *self, const gchar *search)
                                         search,
                                         FALSE, TRUE, TRUE);
        y_offset = tmp_vadj->value;
-       g_message ("VALUE %f", y_offset);
+       /* g_message ("VALUE %f", y_offset); */
        gtk_layout_set_vadjustment (GTK_LAYOUT (priv->gtkhtml), vadj);
        g_object_unref (vadj);
 
@@ -1449,12 +1449,14 @@ modest_msg_view_search_next (ModestMsgView *self)
        priv = MODEST_MSG_VIEW_GET_PRIVATE (self);
        result = gtk_html_engine_search_next (GTK_HTML (priv->gtkhtml));
 
+/*
        {
                GtkAdjustment *adj;
 
                adj = gtk_container_get_focus_vadjustment (GTK_CONTAINER (priv->gtkhtml));
                g_message ("ADJ value %f", adj->value);
        }
+*/
 
        return result;
 }
index 643c2ac..27c5b6a 100644 (file)
@@ -406,7 +406,7 @@ modest_recpt_editor_on_button_release_event (GtkWidget *widget,
        buffer = modest_recpt_editor_get_buffer (recpt_editor);
        mark = gtk_text_buffer_get_insert (buffer);
        gtk_text_buffer_get_iter_at_mark (buffer, &location, mark);
-       g_message ("RELEASE OFFSET %d", gtk_text_iter_get_offset (&location));
+       /* g_message ("RELEASE OFFSET %d", gtk_text_iter_get_offset (&location)); */
 
        gtk_text_buffer_get_selection_bounds (buffer, &start, &end);
 
@@ -614,7 +614,7 @@ modest_recpt_editor_on_key_press_event (GtkTextView *text_view,
                gboolean cursor_ready = FALSE;
                while (!cursor_ready) {
                        if (iter_previous_char (&location) == '\n') {
-                               g_message ("INTRO FOUND");
+                               /* g_message ("INTRO FOUND"); */
                                gtk_text_iter_backward_char (&location);
                        } else {
                                cursor_ready = TRUE;
@@ -717,7 +717,7 @@ modest_recpt_editor_on_key_press_event (GtkTextView *text_view,
                if (tag != NULL) {
                        GtkTextIter iter_in_tag;
                        iter_in_tag = location;
-                       g_message ("DELETE PREV SELECTION");
+                       /* g_message ("DELETE PREV SELECTION"); */
                        gtk_text_iter_backward_char (&iter_in_tag);
                        select_tag_of_iter (&iter_in_tag, tag);
                        gtk_text_buffer_delete_selection (buffer, TRUE, TRUE);