aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-08 09:12:02 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-08 09:12:02 +0800
commit03fe4bdcbc8a2e644339bbfcd12843da1f766375 (patch)
treeb2f3a6f3ed4053aec88a1568cc1936d00dbb9f9f /mail/em-utils.c
parent16e2beab9e4d412399f495f6165d27da80cb3675 (diff)
downloadgsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.gz
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.bz2
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.lz
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.xz
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.tar.zst
gsoc2013-evolution-03fe4bdcbc8a2e644339bbfcd12843da1f766375.zip
Fix most of the compiler warnings in mail.
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index db7f99afe8..45f54abbcf 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -255,13 +255,16 @@ static GtkWidget *filter_editor = NULL;
static void
em_filter_editor_response (GtkWidget *dialog, int button, gpointer user_data)
{
+ EShellBackend *shell_backend;
EMFilterContext *fc;
+ shell_backend = E_SHELL_BACKEND (global_mail_shell_backend);
+
if (button == GTK_RESPONSE_OK) {
const gchar *data_dir;
char *user;
- data_dir = e_shell_backend_get_data_dir (global_mail_shell_backend);
+ data_dir = e_shell_backend_get_data_dir (shell_backend);
fc = g_object_get_data ((GObject *) dialog, "context");
user = g_strdup_printf ("%s/filters.xml", data_dir);
rule_context_save ((RuleContext *) fc, user);
@@ -290,6 +293,7 @@ static EMFilterSource em_filter_source_element_names[] = {
void
em_utils_edit_filters (GtkWidget *parent)
{
+ EShellBackend *shell_backend;
const gchar *data_dir;
char *user, *system;
EMFilterContext *fc;
@@ -299,7 +303,8 @@ em_utils_edit_filters (GtkWidget *parent)
return;
}
- data_dir = e_shell_backend_get_data_dir (global_mail_shell_backend);
+ shell_backend = E_SHELL_BACKEND (global_mail_shell_backend);
+ data_dir = e_shell_backend_get_data_dir (shell_backend);
fc = em_filter_context_new ();
user = g_build_filename (data_dir, "filters.xml", NULL);
@@ -2434,10 +2439,13 @@ em_utils_clear_get_password_canceled_accounts_flag (void)
void
em_utils_show_error_silent (GtkWidget *widget)
{
+ EShellBackend *shell_backend;
EActivity *activity;
+ shell_backend = E_SHELL_BACKEND (global_mail_shell_backend);
+
activity = e_alert_activity_new_warning (widget);
- e_shell_backend_add_activity (global_mail_shell_backend, activity);
+ e_shell_backend_add_activity (shell_backend, activity);
g_object_unref (activity);
if (g_object_get_data (G_OBJECT (widget), "response-handled") == NULL)
@@ -2449,10 +2457,13 @@ em_utils_show_error_silent (GtkWidget *widget)
void
em_utils_show_info_silent (GtkWidget *widget)
{
+ EShellBackend *shell_backend;
EActivity *activity;
+ shell_backend = E_SHELL_BACKEND (global_mail_shell_backend);
+
activity = e_alert_activity_new_info (widget);
- e_shell_backend_add_activity (global_mail_shell_backend, activity);
+ e_shell_backend_add_activity (shell_backend, activity);
g_object_unref (activity);
if (g_object_get_data (G_OBJECT (widget), "response-handled") == NULL)