aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-vfolder-rule.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:24:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:37:20 +0800
commit8a186c3588d3598857c36e2122fa68d01eba30fd (patch)
tree731078659d4e04af8346c5ca68512d8537b3707a /mail/em-vfolder-rule.c
parent2bf3460cd3eb0853a1d10a6e36f5091898a5533f (diff)
downloadgsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.gz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.zst
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.zip
Coding style cleanups.
Diffstat (limited to 'mail/em-vfolder-rule.c')
-rw-r--r--mail/em-vfolder-rule.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mail/em-vfolder-rule.c b/mail/em-vfolder-rule.c
index c144cbd799..e409cdc016 100644
--- a/mail/em-vfolder-rule.c
+++ b/mail/em-vfolder-rule.c
@@ -257,7 +257,7 @@ em_vfolder_rule_remove_source (EMVFolderRule *rule,
g_return_if_fail (EM_IS_VFOLDER_RULE (rule));
- found =(gchar *)em_vfolder_rule_find_source (rule, uri);
+ found =(gchar *) em_vfolder_rule_find_source (rule, uri);
if (found) {
rule->sources = g_list_remove (rule->sources, found);
g_free (found);
@@ -274,7 +274,7 @@ em_vfolder_rule_next_source (EMVFolderRule *rule,
if (last == NULL) {
node = rule->sources;
} else {
- node = g_list_find (rule->sources, (gchar *)last);
+ node = g_list_find (rule->sources, (gchar *) last);
if (node == NULL)
node = rule->sources;
else
@@ -282,7 +282,7 @@ em_vfolder_rule_next_source (EMVFolderRule *rule,
}
if (node)
- return (const gchar *)node->data;
+ return (const gchar *) node->data;
return NULL;
}
@@ -301,8 +301,8 @@ validate (EFilterRule *fr, EAlert **alert)
/* We have to have at least one source set in the "specific" case.
Do not translate this string! */
- if (((EMVFolderRule *)fr)->with == EM_VFOLDER_RULE_WITH_SPECIFIC &&
- ((EMVFolderRule *)fr)->sources == NULL) {
+ if (((EMVFolderRule *) fr)->with == EM_VFOLDER_RULE_WITH_SPECIFIC &&
+ ((EMVFolderRule *) fr)->sources == NULL) {
if (alert)
*alert = e_alert_new ("mail:vfolder-no-source", NULL);
return 0;
@@ -331,13 +331,13 @@ static gint
vfolder_eq (EFilterRule *fr, EFilterRule *cm)
{
return E_FILTER_RULE_CLASS (em_vfolder_rule_parent_class)->eq (fr, cm)
- && list_eq (((EMVFolderRule *)fr)->sources, ((EMVFolderRule *)cm)->sources);
+ && list_eq (((EMVFolderRule *) fr)->sources, ((EMVFolderRule *) cm)->sources);
}
static xmlNodePtr
xml_encode (EFilterRule *fr)
{
- EMVFolderRule *vr =(EMVFolderRule *)fr;
+ EMVFolderRule *vr =(EMVFolderRule *) fr;
xmlNodePtr node, set, work;
GList *l;
@@ -379,7 +379,7 @@ xml_decode (EFilterRule *fr, xmlNodePtr node, struct _ERuleContext *f)
{
xmlNodePtr set, work;
gint result;
- EMVFolderRule *vr =(EMVFolderRule *)fr;
+ EMVFolderRule *vr =(EMVFolderRule *) fr;
gchar *tmp;
result = E_FILTER_RULE_CLASS (em_vfolder_rule_parent_class)->
@@ -425,11 +425,11 @@ rule_copy (EFilterRule *dest, EFilterRule *src)
EMVFolderRule *vdest, *vsrc;
GList *node;
- vdest =(EMVFolderRule *)dest;
- vsrc =(EMVFolderRule *)src;
+ vdest =(EMVFolderRule *) dest;
+ vsrc =(EMVFolderRule *) src;
if (vdest->sources) {
- g_list_foreach (vdest->sources, (GFunc)g_free, NULL);
+ g_list_foreach (vdest->sources, (GFunc) g_free, NULL);
g_list_free (vdest->sources);
vdest->sources = NULL;
}
@@ -668,7 +668,7 @@ source_remove (GtkWidget *widget, struct _source_data *data)
static GtkWidget *
get_widget (EFilterRule *fr, ERuleContext *rc)
{
- EMVFolderRule *vr =(EMVFolderRule *)fr;
+ EMVFolderRule *vr =(EMVFolderRule *) fr;
GtkWidget *widget, *frame;
struct _source_data *data;
GtkRadioButton *rb;