From: Jose Dapena Paz Date: Sun, 31 May 2009 17:24:55 +0000 (+0200) Subject: Changed g_log levels in all app. Idea is reducing the number of debug X-Git-Tag: 3.0.17-rc10~36 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=4db44f57690ed2e6f418a12a2e0eeddf4cf22084 Changed g_log levels in all app. Idea is reducing the number of debug messages if modest is not built for showing debug. --- diff --git a/src/dbus_api/modest-dbus-callbacks.c b/src/dbus_api/modest-dbus-callbacks.c index 1d44bf8..bdeb20a 100644 --- a/src/dbus_api/modest-dbus-callbacks.c +++ b/src/dbus_api/modest-dbus-callbacks.c @@ -769,7 +769,7 @@ thread_prepare_delete_message (gpointer userdata) g_object_unref (account); if (!msg) { - g_warning ("%s: Could not find message '%s'", __FUNCTION__, uri); + g_debug ("%s: Could not find message '%s'", __FUNCTION__, uri); g_idle_add (notify_error_in_dbus_callback, NULL); g_free (uri); return FALSE; @@ -779,7 +779,7 @@ thread_prepare_delete_message (gpointer userdata) folder = tny_msg_get_folder (msg); if (!folder) { - g_warning ("%s: Could not find folder (uri:'%s')", __FUNCTION__, uri); + g_debug ("%s: Could not find folder (uri:'%s')", __FUNCTION__, uri); g_object_unref (msg); g_idle_add (notify_error_in_dbus_callback, NULL); g_free (uri); diff --git a/src/gnome/modest-address-book.c b/src/gnome/modest-address-book.c index cbb1ec8..273a171 100644 --- a/src/gnome/modest-address-book.c +++ b/src/gnome/modest-address-book.c @@ -34,27 +34,27 @@ void modest_address_book_add_address (const gchar *address) { - g_message (__FUNCTION__); + g_debug (__FUNCTION__); } void modest_address_book_select_addresses (ModestRecptEditor *editor, GtkWindow *parent_window) { - g_message (__FUNCTION__); + g_debug (__FUNCTION__); } gboolean modest_address_book_check_names (ModestRecptEditor *editor, gboolean update_addressbook) { - g_message (__FUNCTION__); + g_debug (__FUNCTION__); return TRUE; } gboolean modest_address_book_has_address (const gchar *address) { - g_message (__FUNCTION__); + g_debug (__FUNCTION__); return FALSE; } diff --git a/src/gnome/modest-main-window.c b/src/gnome/modest-main-window.c index cf2bed4..16510e7 100644 --- a/src/gnome/modest-main-window.c +++ b/src/gnome/modest-main-window.c @@ -850,18 +850,18 @@ on_header_selected (ModestHeaderView *header_view, void modest_main_window_notify_send_receive_initied (ModestMainWindow *self) { - g_message("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning("NOT IMPLEMENTED %s", __FUNCTION__); } void modest_main_window_notify_send_receive_completed (ModestMainWindow *self) { - g_message("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning("NOT IMPLEMENTED %s", __FUNCTION__); } gboolean modest_main_window_transfer_mode_enabled (ModestMainWindow *self) { - g_message("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning("NOT IMPLEMENTED %s", __FUNCTION__); return FALSE; } @@ -871,14 +871,14 @@ modest_main_window_on_msg_view_window_msg_changed (ModestMsgViewWindow *view_win GtkTreeRowReference *row_reference, ModestMainWindow *self) { - g_message("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning("NOT IMPLEMENTED %s", __FUNCTION__); return FALSE; } gboolean modest_main_window_screen_is_on (ModestMainWindow *self) { - g_message("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning("NOT IMPLEMENTED %s", __FUNCTION__); return TRUE; } diff --git a/src/gnome/modest-msg-edit-window.c b/src/gnome/modest-msg-edit-window.c index 2833380..ae10179 100644 --- a/src/gnome/modest-msg-edit-window.c +++ b/src/gnome/modest-msg-edit-window.c @@ -928,7 +928,7 @@ modest_msg_edit_window_set_format (ModestMsgEditWindow *self, case MODEST_MSG_EDIT_FORMAT_TEXT: break; case MODEST_MSG_EDIT_FORMAT_HTML: - g_message ("HTML format not supported in Gnome ModestMsgEditWindow"); + g_warning ("HTML format not supported in Gnome ModestMsgEditWindow"); break; default: break; @@ -963,7 +963,7 @@ modest_msg_edit_window_select_color (ModestMsgEditWindow *window) { g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window)); - g_message ("Select color operation is not supported"); + g_warning ("Select color operation is not supported"); } void @@ -972,7 +972,7 @@ modest_msg_edit_window_select_file_format (ModestMsgEditWindow *window, { g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window)); - g_message ("Select file format operation is not supported"); + g_warning ("Select file format operation is not supported"); } void @@ -980,7 +980,7 @@ modest_msg_edit_window_select_font (ModestMsgEditWindow *window) { g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window)); - g_message ("Select font operation is not supported"); + g_warning ("Select font operation is not supported"); } void @@ -988,7 +988,7 @@ modest_msg_edit_window_select_background_color (ModestMsgEditWindow *window) { g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window)); - g_message ("Select background color operation is not supported"); + g_warning ("Select background color operation is not supported"); } void @@ -996,7 +996,7 @@ modest_msg_edit_window_insert_image (ModestMsgEditWindow *window) { g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window)); - g_message ("Insert image operation is not supported"); + g_warning ("Insert image operation is not supported"); } void @@ -1004,7 +1004,7 @@ modest_msg_edit_window_attach_file (ModestMsgEditWindow *window) { g_return_if_fail (MODEST_MSG_EDIT_WINDOW (window)); - g_message ("Attach file operation is not supported"); + g_warning ("Attach file operation is not supported"); } void @@ -1106,7 +1106,7 @@ modest_msg_edit_window_show_cc (ModestMsgEditWindow *window, { g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window)); - g_message ("not implemented yet %s", __FUNCTION__); + g_warning ("not implemented yet %s", __FUNCTION__); } void modest_msg_edit_window_show_bcc (ModestMsgEditWindow *window, @@ -1114,21 +1114,21 @@ modest_msg_edit_window_show_bcc (ModestMsgEditWindow *window, { g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window)); - g_message ("not implemented yet %s", __FUNCTION__); + g_warning ("not implemented yet %s", __FUNCTION__); } void modest_msg_edit_window_undo (ModestMsgEditWindow *window) { g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window)); - g_message ("not implemented yet %s", __FUNCTION__); + g_warning ("not implemented yet %s", __FUNCTION__); } void modest_msg_edit_window_toggle_fullscreen (ModestMsgEditWindow *window) { g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window)); - g_message ("not implemented yet %s", __FUNCTION__); + g_warning ("not implemented yet %s", __FUNCTION__); } void modest_msg_edit_window_set_priority_flags (ModestMsgEditWindow *window, @@ -1176,7 +1176,7 @@ modest_msg_edit_window_select_contacts (ModestMsgEditWindow *window) { g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window)); - g_message ("not implemented yet %s", __FUNCTION__); + g_warning ("not implemented yet %s", __FUNCTION__); } gboolean @@ -1184,7 +1184,7 @@ modest_msg_edit_window_check_names (ModestMsgEditWindow *window, gboolean add_to { g_return_val_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window), FALSE); - g_message ("not implemented yet %s", __FUNCTION__); + g_warning ("not implemented yet %s", __FUNCTION__); return TRUE; } @@ -1194,7 +1194,7 @@ modest_msg_edit_window_set_file_format (ModestMsgEditWindow *window, { g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW (window)); - g_message ("not implemented yet %s", __FUNCTION__); + g_warning ("not implemented yet %s", __FUNCTION__); } gboolean @@ -1272,7 +1272,7 @@ void modest_msg_edit_window_toggle_find_toolbar (ModestMsgEditWindow *window, gboolean show) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); } void @@ -1289,7 +1289,7 @@ modest_msg_edit_window_add_part (ModestMsgEditWindow *window, void modest_msg_edit_window_redo (ModestMsgEditWindow *window) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); } void @@ -1458,7 +1458,7 @@ modest_msg_edit_window_is_modified (ModestMsgEditWindow *window) const gchar * modest_msg_edit_window_get_clipboard_text (ModestMsgEditWindow *win) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return NULL; } diff --git a/src/gnome/modest-msg-view-window.c b/src/gnome/modest-msg-view-window.c index cd45fb1..8197a02 100644 --- a/src/gnome/modest-msg-view-window.c +++ b/src/gnome/modest-msg-view-window.c @@ -425,7 +425,7 @@ modest_msg_view_window_new_with_header_model (TnyMsg *msg, /* Currently we simply redirect to new constructor. It should store a reference to the header list model, to enable next/prev message actions */ - g_message ("partially implemented %s", __FUNCTION__); + g_debug ("partially implemented %s", __FUNCTION__); return modest_msg_view_window_new_for_attachment (msg, modest_account_name, NULL, msg_uid); } @@ -434,32 +434,32 @@ modest_msg_view_window_new_with_header_model (TnyMsg *msg, gboolean modest_msg_view_window_select_next_message (ModestMsgViewWindow *window) { - g_message ("not implemented %s", __FUNCTION__); + g_warning ("not implemented %s", __FUNCTION__); return FALSE; } gboolean modest_msg_view_window_select_previous_message (ModestMsgViewWindow *window) { - g_message ("not implemented %s", __FUNCTION__); + g_warning ("not implemented %s", __FUNCTION__); return FALSE; } void modest_msg_view_window_view_attachment (ModestMsgViewWindow *window, TnyMimePart *mime_part) { - g_message ("not implemented %s", __FUNCTION__); + g_warning ("not implemented %s", __FUNCTION__); } void modest_msg_view_window_save_attachments (ModestMsgViewWindow *window, TnyList *mime_parts) { - g_message ("not implemented %s", __FUNCTION__); + g_warning ("not implemented %s", __FUNCTION__); } void modest_msg_view_window_remove_attachments (ModestMsgViewWindow *window, gboolean get_all) { - g_message ("not implemented %s", __FUNCTION__); + g_warning ("not implemented %s", __FUNCTION__); } TnyHeader * @@ -507,28 +507,28 @@ modest_msg_view_window_get_folder_type (ModestMsgViewWindow *window) gboolean modest_msg_view_window_last_message_selected (ModestMsgViewWindow *window) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return TRUE; } gboolean modest_msg_view_window_first_message_selected (ModestMsgViewWindow *window) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return TRUE; } gboolean modest_msg_view_window_transfer_mode_enabled (ModestMsgViewWindow *self) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return FALSE; } gboolean modest_msg_view_window_toolbar_on_transfer_mode (ModestMsgViewWindow *self) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return FALSE; } @@ -539,21 +539,21 @@ modest_msg_view_window_get_attachments (ModestMsgViewWindow *win) TnyList *result; result = tny_simple_list_new (); - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return result; } gboolean modest_msg_view_window_is_search_result (ModestMsgViewWindow *window) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return FALSE; } gboolean modest_msg_view_window_has_headers_model (ModestMsgViewWindow *window) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return FALSE; } @@ -561,7 +561,7 @@ static void modest_msg_view_window_toggle_find_toolbar (GtkToggleAction *toggle, gpointer data) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return FALSE; } diff --git a/src/gnome/modest-platform.c b/src/gnome/modest-platform.c index 58af847..485b26b 100644 --- a/src/gnome/modest-platform.c +++ b/src/gnome/modest-platform.c @@ -100,21 +100,21 @@ modest_platform_get_file_icon_name (const gchar* name, const gchar* mime_type, gboolean modest_platform_activate_uri (const gchar *uri) { - g_message ("NOT IMPLEMENTED");; + g_warning ("NOT IMPLEMENTED");; return FALSE; } gboolean modest_platform_activate_file (const gchar *path, const gchar *mime_type) { - g_message ("NOT IMPLEMENTED");; + g_warning ("NOT IMPLEMENTED");; return FALSE; } gboolean modest_platform_show_uri_popup (const gchar *uri) { - g_message ("NOT IMPLEMENTED");; + g_warning ("NOT IMPLEMENTED");; return FALSE; } @@ -370,7 +370,7 @@ modest_platform_information_banner (GtkWidget *widget, const gchar *icon_name, const gchar *text) { - g_message ("NOT IMPLEMENTED");; + g_warning ("NOT IMPLEMENTED");; } void @@ -379,7 +379,7 @@ modest_platform_information_banner_with_timeout (GtkWidget *widget, const gchar *text, gint timeout) { - g_message ("NOT IMPLEMENTED");; + g_warning ("NOT IMPLEMENTED");; } GtkWidget * @@ -387,7 +387,7 @@ modest_platform_animation_banner (GtkWidget *widget, const gchar *icon_name, const gchar *text) { - g_message ("NOT IMPLEMENTED"); + g_warning ("NOT IMPLEMENTED"); return NULL; } @@ -395,7 +395,7 @@ modest_platform_animation_banner (GtkWidget *widget, void modest_platform_show_search_messages (GtkWindow *parent_window) { - g_message ("NOT IMPLEMENTED");; + g_warning ("NOT IMPLEMENTED");; } GtkWidget * @@ -465,13 +465,13 @@ modest_platform_connect_and_perform_if_network_folderstore (GtkWindow *parent_wi void modest_platform_remove_new_mail_notifications (gboolean only_visuals) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); } gboolean modest_platform_check_and_wait_for_account_is_online(TnyAccount *account) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return TRUE; } @@ -479,7 +479,7 @@ gboolean modest_platform_run_certificate_confirmation_dialog (const gchar* server_name, const gchar *certificate) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return TRUE; } @@ -489,14 +489,14 @@ modest_platform_run_rename_folder_dialog (GtkWindow *parent_window, const gchar *suggested_name, gchar **folder_name) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); return GTK_RESPONSE_CANCEL; } void modest_platform_show_addressbook (GtkWindow *parent_window) { - g_message ("NOT IMPLEMENTED %s", __FUNCTION__); + g_warning ("NOT IMPLEMENTED %s", __FUNCTION__); } GtkWidget * diff --git a/src/hildon2/modest-easysetup-wizard-dialog.c b/src/hildon2/modest-easysetup-wizard-dialog.c index 86c1224..ff63170 100644 --- a/src/hildon2/modest-easysetup-wizard-dialog.c +++ b/src/hildon2/modest-easysetup-wizard-dialog.c @@ -2125,8 +2125,8 @@ save_to_settings (ModestEasysetupWizardDialog *self) priv->settings); g_list_free (wizard_pages); } else { - g_warning ("The selected protocol is a plugin protocol "// - "but it's not a ModestAccountProtocol"); + g_debug ("The selected protocol is a plugin protocol "// + "but it's not a ModestAccountProtocol"); } g_free (provider_id); diff --git a/src/hildon2/modest-hildon-includes.h b/src/hildon2/modest-hildon-includes.h index 74dfc49..81e9406 100644 --- a/src/hildon2/modest-hildon-includes.h +++ b/src/hildon2/modest-hildon-includes.h @@ -118,11 +118,11 @@ /* some extra #defines, so it will compile with the 'normal' gtk */ #ifndef MODEST_HAVE_HILDON_GTK #define hildon_gtk_entry_set_input_mode(a,b) \ - g_warning ("%s: hildon_gtk_entry_set_input_mode requires gtk-hildon", __FUNCTION__) + g_debug ("%s: hildon_gtk_entry_set_input_mode requires gtk-hildon", __FUNCTION__) #define hildon_gtk_text_view_set_input_mode(a,b) \ - g_warning ("%s: hildon_gtk_text_view_set_input_mode requires gtk-hildon", __FUNCTION__) + g_debug ("%s: hildon_gtk_text_view_set_input_mode requires gtk-hildon", __FUNCTION__) #define gtk_widget_tap_and_hold_setup(a,b,c,d) \ - g_warning ("%s: gtk_widget_tap_and_hold_setup requires gtk-hildon", __FUNCTION__) + g_debug ("%s: gtk_widget_tap_and_hold_setup requires gtk-hildon", __FUNCTION__) typedef enum { diff --git a/src/hildon2/modest-hildon2-window-mgr.c b/src/hildon2/modest-hildon2-window-mgr.c index 052d071..76a87f7 100644 --- a/src/hildon2/modest-hildon2-window-mgr.c +++ b/src/hildon2/modest-hildon2-window-mgr.c @@ -730,7 +730,7 @@ modest_hildon2_window_mgr_unregister_window (ModestWindowMgr *self, win = g_list_find (priv->window_list, window); if (!win) { - g_warning ("Trying to unregister a window that has not being registered yet"); + g_debug ("Trying to unregister a window that has not being registered yet"); return; } diff --git a/src/hildon2/modest-hildon2-window.c b/src/hildon2/modest-hildon2-window.c index bb9a376..0882876 100644 --- a/src/hildon2/modest-hildon2-window.c +++ b/src/hildon2/modest-hildon2-window.c @@ -232,7 +232,7 @@ modest_hildon2_window_pack_toolbar_not_implemented (ModestHildon2Window *self, { g_return_if_fail (MODEST_IS_HILDON2_WINDOW (self)); - g_warning ("%s not implemented", __FUNCTION__); + g_debug ("%s not implemented", __FUNCTION__); } void diff --git a/src/hildon2/modest-maemo-utils.c b/src/hildon2/modest-maemo-utils.c index 57fb93b..573c78f 100644 --- a/src/hildon2/modest-maemo-utils.c +++ b/src/hildon2/modest-maemo-utils.c @@ -64,7 +64,7 @@ osso_context_t * modest_maemo_utils_get_osso_context (void) { if (!__osso_context) - g_warning ("%s: __osso_context == NULL", __FUNCTION__); + g_debug ("%s: __osso_context == NULL", __FUNCTION__); return __osso_context; } diff --git a/src/hildon2/modest-main-window.c b/src/hildon2/modest-main-window.c index 4cd8dc2..9116829 100644 --- a/src/hildon2/modest-main-window.c +++ b/src/hildon2/modest-main-window.c @@ -1703,7 +1703,7 @@ modest_main_window_set_contents_style (ModestMainWindow *self, gtk_widget_show (GTK_WIDGET (priv->header_view)); break; case MODEST_MAIN_WINDOW_CONTENTS_STYLE_DETAILS: - g_message ("This view is not supported in Fremantle style"); + g_warning ("This view is not supported in Fremantle style"); break; case MODEST_MAIN_WINDOW_CONTENTS_STYLE_EMPTY: wrap_in_scrolled_window (priv->contents_widget, GTK_WIDGET (priv->empty_view)); @@ -2467,7 +2467,7 @@ static void on_folder_view_row_activated (GtkTreeView *tree_view, g_object_unref (folder_store); } - g_message ("FOLDER VIEW CELL ACTIVATED"); + g_debug ("FOLDER VIEW CELL ACTIVATED"); } diff --git a/src/hildon2/modest-msg-edit-window.c b/src/hildon2/modest-msg-edit-window.c index 7fec667..f85ac90 100644 --- a/src/hildon2/modest-msg-edit-window.c +++ b/src/hildon2/modest-msg-edit-window.c @@ -194,7 +194,7 @@ static void DEBUG_BUFFER (WPTextBuffer *buffer) { #ifdef DEBUG GtkTextIter iter; - g_message ("BEGIN BUFFER OF SIZE %d", gtk_text_buffer_get_char_count (GTK_TEXT_BUFFER (buffer))); + g_debug ("BEGIN BUFFER OF SIZE %d", gtk_text_buffer_get_char_count (GTK_TEXT_BUFFER (buffer))); gtk_text_buffer_get_start_iter (GTK_TEXT_BUFFER (buffer), &iter); while (!gtk_text_iter_is_end (&iter)) { @@ -221,11 +221,11 @@ static void DEBUG_BUFFER (WPTextBuffer *buffer) g_string_append (output, " "); } output = g_string_append (output, "]\n"); - g_message ("%s", output->str); + g_debug ("%s", output->str); g_string_free (output, TRUE); gtk_text_iter_forward_to_tag_toggle (&iter, NULL); } - g_message ("END BUFFER"); + g_debug ("END BUFFER"); #endif } @@ -2478,7 +2478,7 @@ on_attach_file_response (GtkDialog *dialog, modest_msg_edit_window_attach_file_one (window, uri, allowed_size); if (total_size > allowed_size) { - g_warning ("%s: total size: %u", + g_debug ("%s: total size: %u", __FUNCTION__, (unsigned int)total_size); break; } @@ -2588,7 +2588,7 @@ modest_msg_edit_window_attach_file_one (ModestMsgEditWindow *window, return 0; } } else - g_warning ("%s: could not get attachment size", __FUNCTION__); + g_debug ("%s: could not get attachment size", __FUNCTION__); stream = create_stream_for_uri (uri); @@ -3701,7 +3701,7 @@ gtk_text_iter_forward_search_insensitive (const GtkTextIter *iter, result = TRUE; if (!gtk_text_iter_forward_search (iter, found_text, GTK_TEXT_SEARCH_VISIBLE_ONLY|GTK_TEXT_SEARCH_TEXT_ONLY, match_start, match_end, NULL)) { - g_warning ("Matched string with collate, but not matched in model"); + g_debug ("Matched string with collate, but not matched in model"); } g_free (found_text); } diff --git a/src/hildon2/modest-msg-view-window.c b/src/hildon2/modest-msg-view-window.c index c7e099f..48836f0 100644 --- a/src/hildon2/modest-msg-view-window.c +++ b/src/hildon2/modest-msg-view-window.c @@ -1181,7 +1181,7 @@ modest_msg_view_window_on_row_inserted (GtkTreeModel *model, /* Setup row_reference for the actual msg. */ priv->row_reference = gtk_tree_row_reference_new (priv->header_model, tree_path); if (priv->row_reference == NULL) { - g_warning("No reference for msg header item."); + g_warning("%s: No reference for msg header item.", __FUNCTION__); return; } @@ -2584,7 +2584,7 @@ modest_msg_view_window_view_attachment (ModestMsgViewWindow *window, &msg_win); if (found) { - g_warning ("window for this body is already being created"); + g_debug ("window for this body is already being created"); } else { /* it's not found, so create a new window for it */ @@ -2619,7 +2619,7 @@ modest_msg_view_window_view_attachment (ModestMsgViewWindow *window, if (found) { /* if it's found, but there is no msg_win, it's probably in the process of being created; * thus, we don't do anything */ - g_warning ("window for is already being created"); + g_debug ("window for is already being created"); } else { /* it's not found, so create a new window for it */ modest_window_mgr_register_header (mgr, header, attachment_uid); /* register the uid before building the window */ @@ -2733,7 +2733,7 @@ save_mime_part_to_file (SaveMimePartInfo *info) g_slice_free (SaveMimePartPair, pair); info->pairs = g_list_delete_link (info->pairs, info->pairs); } else { - g_warning ("modest: could not create save attachment %s: %s\n", pair->filename, gnome_vfs_result_to_string (info->result)); + g_warning ("Could not create save attachment %s: %s\n", pair->filename, gnome_vfs_result_to_string (info->result)); save_mime_part_info_free (info, FALSE); } @@ -2908,7 +2908,7 @@ modest_msg_view_window_save_attachments (ModestMsgViewWindow *window, filename = g_strdup (tny_mime_part_get_filename (mime_part)); } else { /* TODO: show any error? */ - g_warning ("Tried to save a non-file attachment"); + g_warning ("%s: Tried to save a non-file attachment", __FUNCTION__); g_object_unref (mime_parts); return; } diff --git a/src/hildon2/modest-platform.c b/src/hildon2/modest-platform.c index c301dfd..eb9d8be 100644 --- a/src/hildon2/modest-platform.c +++ b/src/hildon2/modest-platform.c @@ -374,7 +374,7 @@ modest_platform_activate_uri (const gchar *uri) modest_window_mgr_get_main_window (modest_runtime_get_window_mgr(), FALSE); hildon_banner_show_information (parent ? GTK_WIDGET(parent): NULL, NULL, _("mcen_ib_unsupported_link")); - g_warning ("%s: cannot open uri '%s'", __FUNCTION__,uri); + g_debug ("%s: cannot open uri '%s'", __FUNCTION__,uri); } return result; @@ -1466,7 +1466,7 @@ modest_platform_set_update_interval (guint minutes) * because we will replace it: */ if (alarm_cookie) { if (alarmd_event_del(alarm_cookie) != 0) - g_warning ("%s: alarm %d was not on the queue", __FUNCTION__, (int)alarm_cookie); + g_debug ("%s: alarm %d was not on the queue", __FUNCTION__, (int)alarm_cookie); alarm_cookie = 0; modest_conf_set_int (conf, MODEST_CONF_ALARM_ID, 0, NULL); } @@ -1518,7 +1518,7 @@ modest_platform_set_update_interval (guint minutes) if (!alarm_cookie) { /* Error */ - g_debug ("Error setting alarm event. \n"); + g_warning ("Error setting alarm event. \n"); return FALSE; } @@ -2011,8 +2011,8 @@ modest_platform_run_certificate_confirmation_dialog (const gchar* server_name, win = MODEST_WINDOW (hildon_window_stack_peek (stack)); if (!win) { - g_warning ("%s: don't show dialogs if there's no window shown; assuming 'Cancel'", - __FUNCTION__); + g_debug ("%s: don't show dialogs if there's no window shown; assuming 'Cancel'", + __FUNCTION__); return FALSE; } @@ -2054,8 +2054,8 @@ modest_platform_run_alert_dialog (const gchar* prompt, top_win = MODEST_WINDOW (hildon_window_stack_peek (stack)); if (!top_win) { - g_warning ("%s: don't show dialogs if there's no window shown; assuming 'Cancel'", - __FUNCTION__); + g_debug ("%s: don't show dialogs if there's no window shown; assuming 'Cancel'", + __FUNCTION__); return FALSE; } diff --git a/src/maemo/easysetup/modest-easysetup-country-combo-box.c b/src/maemo/easysetup/modest-easysetup-country-combo-box.c index fc900af..bac8fb8 100644 --- a/src/maemo/easysetup/modest-easysetup-country-combo-box.c +++ b/src/maemo/easysetup/modest-easysetup-country-combo-box.c @@ -229,11 +229,11 @@ easysetup_country_combo_box_set_active_country_locale (EasysetupCountryComboBox #if MODEST_HILDON_API < 2 model = gtk_combo_box_get_model (GTK_COMBO_BOX (self)); - g_message ("HILDON < 2"); + g_debug ("%s: HILDON < 2", __FUNCTION__); #else model = hildon_touch_selector_get_model (hildon_picker_button_get_selector (HILDON_PICKER_BUTTON (self)), 0); - g_message ("HILDON >= 2"); + g_debug ("%s: HILDON >= 2", __FUNCTION__); #endif if (!gtk_tree_model_get_iter_first (model, &iter)) return FALSE; diff --git a/src/maemo/modest-hildon-includes.h b/src/maemo/modest-hildon-includes.h index 6dd1306..1f7b41d 100644 --- a/src/maemo/modest-hildon-includes.h +++ b/src/maemo/modest-hildon-includes.h @@ -126,11 +126,11 @@ k * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, /* some extra #defines, so it will compile with the 'normal' gtk */ #ifndef MODEST_HAVE_HILDON_GTK #define hildon_gtk_entry_set_input_mode(a,b) \ - g_warning ("%s: hildon_gtk_entry_set_input_mode requires gtk-hildon", __FUNCTION__) + g_debug ("%s: hildon_gtk_entry_set_input_mode requires gtk-hildon", __FUNCTION__) #define hildon_gtk_text_view_set_input_mode(a,b) \ - g_warning ("%s: hildon_gtk_text_view_set_input_mode requires gtk-hildon", __FUNCTION__) + g_debug ("%s: hildon_gtk_text_view_set_input_mode requires gtk-hildon", __FUNCTION__) #define gtk_widget_tap_and_hold_setup(a,b,c,d) \ - g_warning ("%s: gtk_widget_tap_and_hold_setup requires gtk-hildon", __FUNCTION__) + g_debug ("%s: gtk_widget_tap_and_hold_setup requires gtk-hildon", __FUNCTION__) typedef enum { diff --git a/src/maemo/modest-msg-edit-window.c b/src/maemo/modest-msg-edit-window.c index 89da6dd..8df4673 100644 --- a/src/maemo/modest-msg-edit-window.c +++ b/src/maemo/modest-msg-edit-window.c @@ -180,7 +180,7 @@ static void DEBUG_BUFFER (WPTextBuffer *buffer) { #ifdef DEBUG GtkTextIter iter; - g_message ("BEGIN BUFFER OF SIZE %d", gtk_text_buffer_get_char_count (GTK_TEXT_BUFFER (buffer))); + g_debug ("BEGIN BUFFER OF SIZE %d", gtk_text_buffer_get_char_count (GTK_TEXT_BUFFER (buffer))); gtk_text_buffer_get_start_iter (GTK_TEXT_BUFFER (buffer), &iter); while (!gtk_text_iter_is_end (&iter)) { @@ -207,11 +207,11 @@ static void DEBUG_BUFFER (WPTextBuffer *buffer) g_string_append (output, " "); } output = g_string_append (output, "]\n"); - g_message ("%s", output->str); + g_debug ("%s", output->str); g_string_free (output, TRUE); gtk_text_iter_forward_to_tag_toggle (&iter, NULL); } - g_message ("END BUFFER"); + g_debug ("END BUFFER"); #endif } @@ -2391,7 +2391,7 @@ modest_msg_edit_window_attach_file_one (ModestMsgEditWindow *window, return 0; } } else - g_warning ("%s: could not get attachment size", __FUNCTION__); + g_debug ("%s: could not get attachment size", __FUNCTION__); stream = create_stream_for_uri (uri); diff --git a/src/maemo/modest-msg-view-window.c b/src/maemo/modest-msg-view-window.c index 8d21c40..907159b 100644 --- a/src/maemo/modest-msg-view-window.c +++ b/src/maemo/modest-msg-view-window.c @@ -2686,7 +2686,7 @@ modest_msg_view_window_view_attachment (ModestMsgViewWindow *window, &msg_win); if (found) { - g_warning ("window for this body is already being created"); + g_debug ("window for this body is already being created"); } else { /* it's not found, so create a new window for it */ @@ -2724,7 +2724,7 @@ modest_msg_view_window_view_attachment (ModestMsgViewWindow *window, else /* if it's found, but there is no msg_win, it's probably in the process of being created; * thus, we don't do anything */ - g_warning ("window for is already being created"); + g_debug ("window for is already being created"); } else { /* it's not found, so create a new window for it */ modest_window_mgr_register_header (mgr, header, attachment_uid); /* register the uid before building the window */ @@ -3222,9 +3222,9 @@ on_fetch_image_idle_refresh_view (gpointer userdata) { FetchImageData *fidata = (FetchImageData *) userdata; - g_message ("REFRESH VIEW"); + g_debug ("REFRESH VIEW"); if (GTK_WIDGET_DRAWABLE (fidata->msg_view)) { - g_message ("QUEUING DRAW"); + g_debug ("QUEUING DRAW"); gtk_widget_queue_draw (fidata->msg_view); } g_object_unref (fidata->msg_view); diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index 8f1ba2f..af89e7b 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -344,7 +344,7 @@ modest_platform_activate_uri (const gchar *uri) modest_window_mgr_get_main_window (modest_runtime_get_window_mgr(), FALSE); hildon_banner_show_information (parent ? GTK_WIDGET(parent): NULL, NULL, _("mcen_ib_unsupported_link")); - g_warning ("%s: cannot open uri '%s'", __FUNCTION__,uri); + g_debug ("%s: cannot open uri '%s'", __FUNCTION__,uri); } return result; @@ -1107,7 +1107,7 @@ modest_platform_set_update_interval (guint minutes) * because we will replace it: */ if (alarm_cookie) { if (alarm_event_del(alarm_cookie) != 1) - g_warning ("%s: alarm %d was not on the queue", __FUNCTION__, (int)alarm_cookie); + g_debug ("%s: alarm %d was not on the queue", __FUNCTION__, (int)alarm_cookie); alarm_cookie = 0; modest_conf_set_int (conf, MODEST_CONF_ALARM_ID, 0, NULL); } @@ -1672,8 +1672,8 @@ modest_platform_run_certificate_confirmation_dialog (const gchar* server_name, ModestWindow *main_win; if (!modest_window_mgr_main_window_exists (modest_runtime_get_window_mgr())) { - g_warning ("%s: don't show dialogs if there's no main window; assuming 'Cancel'", - __FUNCTION__); + g_debug ("%s: don't show dialogs if there's no main window; assuming 'Cancel'", + __FUNCTION__); return FALSE; } @@ -1718,7 +1718,7 @@ modest_platform_run_alert_dialog (const gchar* prompt, ModestWindow *main_win; if (!modest_window_mgr_main_window_exists (modest_runtime_get_window_mgr())) { - g_warning ("%s:\n'%s'\ndon't show dialogs if there's no main window;" + g_debug ("%s:\n'%s'\ndon't show dialogs if there's no main window;" " assuming 'Cancel' for questions, 'Ok' otherwise", prompt, __FUNCTION__); return is_question ? FALSE : TRUE; } diff --git a/src/modest-account-mgr-helpers.c b/src/modest-account-mgr-helpers.c index c80fd30..c06661c 100644 --- a/src/modest-account-mgr-helpers.c +++ b/src/modest-account-mgr-helpers.c @@ -460,7 +460,7 @@ modest_account_mgr_load_server_settings (ModestAccountMgr *self, const gchar* na gchar *hostname, *username, *pwd, *uri, *proto, *auth, *sec; if (!modest_account_mgr_account_exists (self, name, TRUE)) { - g_message ("%s account %s does not exist", __FUNCTION__, name); + g_warning ("%s account %s does not exist", __FUNCTION__, name); return NULL; } @@ -708,7 +708,7 @@ modest_account_mgr_load_account_settings (ModestAccountMgr *self, store_settings); g_object_unref (store_settings); } else { - g_message ("%s can not load server settings. Account corrupted?", __FUNCTION__); + g_warning ("%s can not load server settings. Account corrupted?", __FUNCTION__); g_object_unref (settings); return NULL; } @@ -727,7 +727,7 @@ modest_account_mgr_load_account_settings (ModestAccountMgr *self, modest_account_settings_set_transport_settings (settings, transport_settings); g_object_unref (transport_settings); } else { - g_message ("%s can not load server settings. Account corrupted?", __FUNCTION__); + g_warning ("%s can not load server settings. Account corrupted?", __FUNCTION__); g_object_unref (settings); return NULL; } diff --git a/src/modest-address-book-dummy.c b/src/modest-address-book-dummy.c index 0e6fa9f..372d206 100644 --- a/src/modest-address-book-dummy.c +++ b/src/modest-address-book-dummy.c @@ -36,8 +36,8 @@ void modest_address_book_add_address (const gchar *address) { - g_message ("trying to add '%s' to non-existing address book", - address); + g_debug ("trying to add '%s' to non-existing address book", + address); } diff --git a/src/modest-init.c b/src/modest-init.c index 5d3189a..b412c33 100644 --- a/src/modest-init.c +++ b/src/modest-init.c @@ -186,7 +186,7 @@ force_ke_recv_load (void) { if (strcmp ("cerm_device_memory_full", _KR("cerm_device_memory_full")) == 0) { - g_warning ("%s: cannot get translation for cerm_device_memory_full", + g_debug ("%s: cannot get translation for cerm_device_memory_full", __FUNCTION__); return FALSE; } @@ -281,7 +281,7 @@ 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_debug (modest_platform_get_app_name()); */ /* Init stock icons */ init_stock_icons (); @@ -680,7 +680,7 @@ init_stock_icons (void) g_object_unref (pixbuf); } else - g_warning ("Modest: %s: failed to load %s icon", __FUNCTION__, items_names[i]); + g_warning ("%s: failed to load %s icon", __FUNCTION__, items_names[i]); } /* Drop our reference to the factory, GTK will hold a reference. */ g_object_unref (factory); diff --git a/src/modest-mail-operation-queue.c b/src/modest-mail-operation-queue.c index 68506d9..22bbd53 100644 --- a/src/modest-mail-operation-queue.c +++ b/src/modest-mail-operation-queue.c @@ -342,7 +342,7 @@ modest_mail_operation_queue_remove (ModestMailOperationQueue *self, modest_mail_operation_execute_error_handler (mail_op); } else { if (status == MODEST_MAIL_OPERATION_STATUS_CANCELED) - g_warning ("%s: operation canceled \n", __FUNCTION__); + g_debug ("%s: operation canceled \n", __FUNCTION__); else g_warning ("%s: possible error in a mail operation " \ "implementation. The status is not successful " \ diff --git a/src/modest-plugin-factory.c b/src/modest-plugin-factory.c index 9a7aa93..84d1736 100644 --- a/src/modest-plugin-factory.c +++ b/src/modest-plugin-factory.c @@ -216,7 +216,7 @@ modest_plugin_factory_load (const gchar *file) g_type_module_use (type_module); plugin = MODEST_PLUGIN (modest_module_new_object (MODEST_MODULE (type_module))); if (plugin) - g_message ("Plugin %s API version %s", plugin_name, modest_plugin_get_api_version (plugin)); + g_debug ("Plugin %s API version %s", plugin_name, modest_plugin_get_api_version (plugin)); g_type_module_unuse (type_module); } g_free (path); diff --git a/src/modest-presets.c b/src/modest-presets.c index 6bddb7c..7f9e790 100644 --- a/src/modest-presets.c +++ b/src/modest-presets.c @@ -233,7 +233,7 @@ modest_presets_get_info_server_type (ModestPresets *self, g_free (val); /* debug: */ -/* g_message ("provider id: %s, server type: %d", provider_id, info); */ +/* g_debug ("provider id: %s, server type: %d", provider_id, info); */ return protocol_type; } diff --git a/src/modest-search.c b/src/modest-search.c index a3ee398..d206df7 100644 --- a/src/modest-search.c +++ b/src/modest-search.c @@ -243,8 +243,8 @@ search_mime_part_strcmp (TnyMimePart *part, ModestSearch *search) len = (sizeof (buffer) - 1) / 2; if (strlen (search->body) > len) { - g_warning ("Search term bigger then chunk." - "We might not find everything"); + g_debug ("Search term bigger then chunk." + "We might not find everything"); } stream = tny_mime_part_get_stream (part); diff --git a/src/modest-tny-account-store.c b/src/modest-tny-account-store.c index ec3dc04..687cd21 100644 --- a/src/modest-tny-account-store.c +++ b/src/modest-tny-account-store.c @@ -407,8 +407,8 @@ on_vfs_volume_unmounted(GnomeVFSVolumeMonitor *volume_monitor, g_object_unref (mmc_account); } else { - g_warning ("%s: there was no store account for the unmounted MMC", - __FUNCTION__); + g_debug ("%s: there was no store account for the unmounted MMC", + __FUNCTION__); } } g_free (volume_path_uri); @@ -557,7 +557,7 @@ get_password (TnyAccount *account, const gchar * prompt_not_used, gboolean *canc server_account_name = tny_account_get_id (account); if (!server_account_name || !self) { - g_warning ("modest: %s: could not retrieve account_store for account %s", + g_warning ("%s: could not retrieve account_store for account %s", __FUNCTION__, server_account_name ? server_account_name : ""); if (cancel) *cancel = TRUE; @@ -1059,7 +1059,7 @@ modest_tny_account_store_alert (TnyAccountStore *self, server_name = tny_account_get_hostname (account); protocol_type = modest_tny_account_get_protocol_type (account); if (protocol_type == MODEST_PROTOCOL_REGISTRY_TYPE_INVALID){ - g_warning("modest: %s: account with id=%s has no proto.\n", __FUNCTION__, + g_warning("%s: account with id=%s has no proto.\n", __FUNCTION__, tny_account_get_id (account)); return FALSE; } @@ -1110,8 +1110,10 @@ modest_tny_account_store_alert (TnyAccountStore *self, case TNY_SERVICE_ERROR_UNKNOWN: return FALSE; default: - g_debug ("Unexpected error %d", error->code); - g_return_val_if_reached (FALSE); + /* We don't treat this as an error, but as a not handled message. Then, + * debug message, and return false */ + g_debug ("Unexpected error %d (%s)", error->code, error->message); + return FALSE; } diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index 31eab5a..7128471 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -120,7 +120,7 @@ modest_tny_account_get_special_folder (TnyAccount *account, * returning an empty list. murrayc. */ tny_folder_store_get_folders (TNY_FOLDER_STORE (local_account), folders, NULL, FALSE, &error); if (error) { - g_warning ("%s: tny_folder_store_get_folders() failed:%s\n", __FUNCTION__, error->message); + g_debug ("%s: tny_folder_store_get_folders() failed:%s\n", __FUNCTION__, error->message); g_error_free (error); goto cleanup; } @@ -426,7 +426,7 @@ set_online_callback (TnyCamelAccount *account, gboolean canceled, GError *err, g TNY_ACCOUNT (account), TNY_ALERT_TYPE_ERROR, FALSE, err); } - g_warning ("err: %s", err->message); + g_debug ("err: %s", err->message); } } @@ -607,7 +607,7 @@ on_modest_file_system_info (HildonFileSystemInfoHandle *handle, GetMmcAccountNameData *callback_data = (GetMmcAccountNameData*)data; if (error) { - g_warning ("%s: error=%s", __FUNCTION__, error->message); + g_debug ("%s: error=%s", __FUNCTION__, error->message); } TnyAccount *account = TNY_ACCOUNT (callback_data->account); diff --git a/src/modest-tny-msg.c b/src/modest-tny-msg.c index 06a6b63..f27c5ea 100644 --- a/src/modest-tny-msg.c +++ b/src/modest-tny-msg.c @@ -942,7 +942,7 @@ get_new_to (TnyMsg *msg, TnyHeader *header, const gchar* from, old_from = tny_header_dup_from (header); if (!old_from && !old_reply_to) { - g_warning ("%s: failed to get either Reply-To: or From: from header", + g_debug ("%s: failed to get either Reply-To: or From: from header", __FUNCTION__); return NULL; } @@ -963,7 +963,7 @@ get_new_to (TnyMsg *msg, TnyHeader *header, const gchar* from, if (reply_mode == MODEST_TNY_MSG_REPLY_MODE_ALL) { gchar *old_to = tny_header_dup_to (header); if (!old_to) - g_warning ("%s: no To: address found in source mail", + g_debug ("%s: no To: address found in source mail", __FUNCTION__); else { /* append the old To: */ @@ -1160,7 +1160,7 @@ modest_tny_msg_create_reply_msg (TnyMsg *msg, new_header = tny_msg_get_header(new_msg); new_to = get_new_to (msg, header, from, reply_mode); if (!new_to) - g_warning ("%s: failed to get new To:", __FUNCTION__); + g_debug ("%s: failed to get new To:", __FUNCTION__); else { tny_header_set_to (new_header, new_to); g_free (new_to); @@ -1207,7 +1207,7 @@ get_content_type(const gchar *s) g_string_append(type, "; charset=\"utf-8\""); } else { /* it should be impossible to reach this, but better safe than sorry */ - g_warning("invalid utf8 in message"); + g_debug("invalid utf8 in message"); g_string_append(type, "; charset=\"latin1\""); } } diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 37220a0..0e02dde 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -938,8 +938,8 @@ modest_ui_actions_compose_msg(ModestWindow *win, total_size += att_size; if (att_size > allowed_size) { - g_warning ("%s: total size: %u", - __FUNCTION__, (unsigned int)total_size); + g_debug ("%s: total size: %u", + __FUNCTION__, (unsigned int)total_size); break; } allowed_size -= att_size; @@ -2856,7 +2856,7 @@ void modest_ui_actions_on_msg_link_hover (ModestMsgView *msgview, const gchar* link, ModestWindow *win) { - /* g_message ("%s %s", __FUNCTION__, link); */ + /* g_debug ("%s %s", __FUNCTION__, link); */ } @@ -2892,7 +2892,7 @@ modest_ui_actions_on_msg_recpt_activated (ModestMsgView *msgview, const gchar *address, ModestWindow *win) { - /* g_message ("%s %s", __FUNCTION__, address); */ + /* g_debug ("%s %s", __FUNCTION__, address); */ } static void @@ -5515,7 +5515,7 @@ modest_ui_actions_on_main_window_remove_attachments (GtkAction *action, modest_msg_view_window_remove_attachments (MODEST_MSG_VIEW_WINDOW (msg_view_window), TRUE); else { /* do nothing; uid was registered before, so window is probably on it's way */ - g_warning ("debug: header %p has already been registered", header); + g_debug ("header %p has already been registered", header); } } else { ModestMailOperation *mail_op = NULL; diff --git a/src/modest-ui-dimming-rules.c b/src/modest-ui-dimming-rules.c index 355be4f..a3a6552 100644 --- a/src/modest-ui-dimming-rules.c +++ b/src/modest-ui-dimming-rules.c @@ -2563,7 +2563,7 @@ _invalid_clipboard_selected (ModestWindow *win, result = !has_selection; } else if (MODEST_IS_MSG_VIEW_WINDOW (win)) { if (focused) { - MODEST_DEBUG_BLOCK (g_message ("FOCUSED %s", g_type_name (G_TYPE_FROM_INSTANCE (focused)));); + MODEST_DEBUG_BLOCK (g_debug ("FOCUSED %s", g_type_name (G_TYPE_FROM_INSTANCE (focused)));); if (GTK_IS_LABEL (focused) && !gtk_label_get_selection_bounds (GTK_LABEL (focused), NULL, NULL)) { result = TRUE; diff --git a/src/modest-utils.c b/src/modest-utils.c index 3d82fc6..791d72f 100644 --- a/src/modest-utils.c +++ b/src/modest-utils.c @@ -1042,7 +1042,7 @@ modest_utils_fill_country_model (GtkTreeModel *model, gint *locale_mcc) if (mcc == previous_mcc || g_hash_table_lookup (country_hash, country)) { - g_message ("already seen: '%s' %d", country, mcc); + g_debug ("already seen: '%s' %d", country, mcc); continue; } previous_mcc = mcc; diff --git a/src/widgets/modest-hildon1-window-mgr.c b/src/widgets/modest-hildon1-window-mgr.c index eb1de4e..629b7c8 100644 --- a/src/widgets/modest-hildon1-window-mgr.c +++ b/src/widgets/modest-hildon1-window-mgr.c @@ -680,7 +680,7 @@ modest_hildon1_window_mgr_unregister_window (ModestWindowMgr *self, win = g_list_find (priv->window_list, window); if (!win) { - g_warning ("Trying to unregister a window that has not being registered yet"); + g_debug ("Trying to unregister a window that has not being registered yet"); return; } @@ -1004,7 +1004,7 @@ remove_modal_from_queue (GtkWidget *widget, g_mutex_lock (priv->queue_lock); item = g_queue_find (priv->modal_windows, widget); if (!item) { - g_warning ("Trying to remove a modal window that is not registered"); + g_debug ("Trying to remove a modal window that is not registered"); g_mutex_unlock (priv->queue_lock); return; }