From 4a7f21fbd3ff15e771da0deaa5144a987369ad8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Javier=20Jard=C3=B3n?= Date: Wed, 30 Sep 2009 14:43:35 +0200 Subject: [PATCH] Fix some compilation warnings in gnome version Fixes NB#139790 --- src/modest-mail-operation.c | 4 ++-- src/modest-ui-actions.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modest-mail-operation.c b/src/modest-mail-operation.c index 2541e5f..d6882a9 100644 --- a/src/modest-mail-operation.c +++ b/src/modest-mail-operation.c @@ -2468,7 +2468,7 @@ modest_mail_operation_xfer_folder (ModestMailOperation *self, priv->status = MODEST_MAIL_OPERATION_STATUS_FAILED; g_set_error (&(priv->error), MODEST_MAIL_OPERATION_ERROR, MODEST_MAIL_OPERATION_ERROR_FOLDER_RULES, - error_msg); + "%s", error_msg); /* Call the user callback if exists */ if (user_callback) @@ -2740,7 +2740,7 @@ get_msg_async_cb (TnyFolder *folder, } else { g_set_error (&(priv->error), MODEST_MAIL_OPERATION_ERROR, MODEST_MAIL_OPERATION_ERROR_ITEM_NOT_FOUND, - err->message); + "%s", err->message); } } else if (finished && priv->status == MODEST_MAIL_OPERATION_STATUS_IN_PROGRESS) { /* Set the success status before calling the user callback */ diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 667224b..7d26705 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -2188,8 +2188,8 @@ idle_refresh_folder (gpointer source) header_view = modest_header_window_get_header_view ((ModestHeaderWindow *) source); #else if (MODEST_IS_MAIN_WINDOW (source)) - header_view = modest_main_window_get_child_widget ((ModestMainWindow *) source, - MODEST_MAIN_WINDOW_WIDGET_TYPE_HEADER_VIEW); + header_view = MODEST_HEADER_VIEW (modest_main_window_get_child_widget (MODEST_MAIN_WINDOW (source), + MODEST_MAIN_WINDOW_WIDGET_TYPE_HEADER_VIEW)); #endif if (header_view) { TnyFolder *folder = modest_header_view_get_folder (header_view); -- 1.7.9.5