aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-vfolder-rule.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-26 22:58:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-26 22:58:25 +0800
commit0cf607076dfc2c481ca1164a04cecdb0661e6bd0 (patch)
tree81b3c9a19871ba9777b1d4c4178308edff2087a0 /mail/em-vfolder-rule.c
parentf8730610042229f275a5a294df4c2eb5f225118e (diff)
downloadgsoc2013-evolution-0cf607076dfc2c481ca1164a04cecdb0661e6bd0.tar.gz
gsoc2013-evolution-0cf607076dfc2c481ca1164a04cecdb0661e6bd0.tar.zst
gsoc2013-evolution-0cf607076dfc2c481ca1164a04cecdb0661e6bd0.zip
Fix compiler warnings in mail.
Diffstat (limited to 'mail/em-vfolder-rule.c')
-rw-r--r--mail/em-vfolder-rule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/em-vfolder-rule.c b/mail/em-vfolder-rule.c
index a777faaefe..bddb08f75e 100644
--- a/mail/em-vfolder-rule.c
+++ b/mail/em-vfolder-rule.c
@@ -260,7 +260,7 @@ xml_encode(FilterRule *fr)
node = FILTER_RULE_CLASS(parent_class)->xml_encode(fr);
g_return_val_if_fail (node != NULL, NULL);
- g_return_val_if_fail (vr->with >= 0 && vr->with < sizeof(with_names)/sizeof(with_names[0]), NULL);
+ g_return_val_if_fail (vr->with < sizeof(with_names)/sizeof(with_names[0]), NULL);
set = xmlNewNode(NULL, (const unsigned char *)"sources");
xmlAddChild(node, set);
@@ -383,7 +383,7 @@ static void source_add(GtkWidget *widget, struct _source_data *data);
static void source_remove(GtkWidget *widget, struct _source_data *data);
static struct {
- char *name;
+ const gchar *name;
GCallback func;
} edit_buttons[] = {
{ "source_add", G_CALLBACK(source_add) },
@@ -430,7 +430,7 @@ select_source_with_changed(GtkWidget *widget, struct _source_data *data)
break;
}
- if ( with < EM_VFOLDER_RULE_WITH_SPECIFIC || with > EM_VFOLDER_RULE_WITH_LOCAL )
+ if (with > EM_VFOLDER_RULE_WITH_LOCAL )
with = 0;
gtk_widget_set_sensitive (data->source_selector, !with );