aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-08-29 22:44:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-08-29 23:22:28 +0800
commit4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9 (patch)
treece1154c5d7487fbd566c5b68df90fb8259b4604e /filter
parente6c42ecc596fb16247e8d1d591a5d244a61d0e24 (diff)
downloadgsoc2013-evolution-4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9.tar.gz
gsoc2013-evolution-4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9.tar.zst
gsoc2013-evolution-4c05b9e925764a6035e3d0fcbfc1f0458d36f5d9.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'filter')
-rw-r--r--filter/e-filter-code.c4
-rw-r--r--filter/e-filter-color.c2
-rw-r--r--filter/e-filter-datespec.c38
-rw-r--r--filter/e-rule-context.c4
-rw-r--r--filter/e-rule-editor.c14
5 files changed, 31 insertions, 31 deletions
diff --git a/filter/e-filter-code.c b/filter/e-filter-code.c
index ab2e19223c..510d4a8808 100644
--- a/filter/e-filter-code.c
+++ b/filter/e-filter-code.c
@@ -47,8 +47,8 @@ filter_code_build_code (EFilterElement *element,
l = fi->values;
while (l) {
- g_string_append(out, (gchar *)l->data);
- l = g_list_next(l);
+ g_string_append (out, (gchar *)l->data);
+ l = g_list_next (l);
}
if (!is_rawcode)
diff --git a/filter/e-filter-color.c b/filter/e-filter-color.c
index b181fe7c96..63aa2ca689 100644
--- a/filter/e-filter-color.c
+++ b/filter/e-filter-color.c
@@ -83,7 +83,7 @@ filter_color_xml_decode (EFilterElement *element,
prop = xmlGetProp(node, (xmlChar *)"spec");
if (prop != NULL) {
- gdk_color_parse((gchar *)prop, &fc->color);
+ gdk_color_parse ((gchar *)prop, &fc->color);
xmlFree (prop);
} else {
/* try reading the old RGB properties */
diff --git a/filter/e-filter-datespec.c b/filter/e-filter-datespec.c
index aa94bf5c90..b623a71cd2 100644
--- a/filter/e-filter-datespec.c
+++ b/filter/e-filter-datespec.c
@@ -127,7 +127,7 @@ set_button (EFilterDatespec *fds)
case FDST_SPECIFIED: {
struct tm tm;
- localtime_r(&fds->value, &tm);
+ localtime_r (&fds->value, &tm);
/* strftime for date filter display, only needs to show a day date (i.e. no time) */
strftime(buf, sizeof(buf), _("%d-%b-%Y"), &tm);
break; }
@@ -137,9 +137,9 @@ set_button (EFilterDatespec *fds)
else {
gint span, count;
- span = get_best_span(fds->value);
+ span = get_best_span (fds->value);
count = fds->value / timespans[span].seconds;
- sprintf(buf, ngettext(timespans[span].past_singular, timespans[span].past_plural, count), count);
+ sprintf (buf, ngettext (timespans[span].past_singular, timespans[span].past_plural, count), count);
}
break;
case FDST_X_FUTURE:
@@ -148,14 +148,14 @@ set_button (EFilterDatespec *fds)
else {
gint span, count;
- span = get_best_span(fds->value);
+ span = get_best_span (fds->value);
count = fds->value / timespans[span].seconds;
- sprintf(buf, ngettext(timespans[span].future_singular, timespans[span].future_plural, count), count);
+ sprintf (buf, ngettext (timespans[span].future_singular, timespans[span].future_plural, count), count);
}
break;
}
- gtk_label_set_text((GtkLabel *)fds->priv->label_button, label);
+ gtk_label_set_text ((GtkLabel *)fds->priv->label_button, label);
}
static void
@@ -168,19 +168,19 @@ get_values (EFilterDatespec *fds)
guint year, month, day;
struct tm tm;
- gtk_calendar_get_date((GtkCalendar *)p->calendar_specify, &year, &month, &day);
- memset(&tm, 0, sizeof(tm));
+ gtk_calendar_get_date ((GtkCalendar *)p->calendar_specify, &year, &month, &day);
+ memset (&tm, 0, sizeof (tm));
tm.tm_mday = day;
tm.tm_year = year - 1900;
tm.tm_mon = month;
- fds->value = mktime(&tm);
+ fds->value = mktime (&tm);
/* what about timezone? */
break; }
case FDST_X_FUTURE:
case FDST_X_AGO: {
gint val;
- val = gtk_spin_button_get_value_as_int((GtkSpinButton *)p->spin_relative);
+ val = gtk_spin_button_get_value_as_int ((GtkSpinButton *)p->spin_relative);
fds->value = timespans[p->span].seconds * val;
break; }
case FDST_NOW:
@@ -211,20 +211,20 @@ set_values (EFilterDatespec *fds)
{
struct tm tm;
- localtime_r(&fds->value, &tm);
- gtk_calendar_select_month((GtkCalendar*)p->calendar_specify, tm.tm_mon, tm.tm_year + 1900);
- gtk_calendar_select_day((GtkCalendar*)p->calendar_specify, tm.tm_mday);
+ localtime_r (&fds->value, &tm);
+ gtk_calendar_select_month ((GtkCalendar*)p->calendar_specify, tm.tm_mon, tm.tm_year + 1900);
+ gtk_calendar_select_day ((GtkCalendar*)p->calendar_specify, tm.tm_mday);
break;
}
case FDST_X_AGO:
- p->span = get_best_span(fds->value);
- gtk_spin_button_set_value((GtkSpinButton*)p->spin_relative, fds->value/timespans[p->span].seconds);
+ p->span = get_best_span (fds->value);
+ gtk_spin_button_set_value ((GtkSpinButton*)p->spin_relative, fds->value/timespans[p->span].seconds);
gtk_combo_box_set_active (GTK_COMBO_BOX (p->combobox_relative), p->span);
gtk_combo_box_set_active (GTK_COMBO_BOX (p->combobox_past_future), 0);
break;
case FDST_X_FUTURE:
- p->span = get_best_span(fds->value);
- gtk_spin_button_set_value((GtkSpinButton*)p->spin_relative, fds->value/timespans[p->span].seconds);
+ p->span = get_best_span (fds->value);
+ gtk_spin_button_set_value ((GtkSpinButton*)p->spin_relative, fds->value/timespans[p->span].seconds);
gtk_combo_box_set_active (GTK_COMBO_BOX (p->combobox_relative), p->span);
gtk_combo_box_set_active (GTK_COMBO_BOX (p->combobox_past_future), 1);
break;
@@ -397,9 +397,9 @@ filter_datespec_get_widget (EFilterElement *element)
fds->priv->label_button = gtk_label_new ("");
gtk_misc_set_alignment (GTK_MISC (fds->priv->label_button), 0.5, 0.5);
- set_button(fds);
+ set_button (fds);
- button = gtk_button_new();
+ button = gtk_button_new ();
gtk_container_add (GTK_CONTAINER (button), fds->priv->label_button);
g_signal_connect (button, "clicked", G_CALLBACK (button_clicked), fds);
diff --git a/filter/e-rule-context.c b/filter/e-rule-context.c
index 727c546373..603ed1ab0a 100644
--- a/filter/e-rule-context.c
+++ b/filter/e-rule-context.c
@@ -211,7 +211,7 @@ rule_context_load (ERuleContext *context,
"Unable to load system rules '%s': %s",
system, g_strerror (errno));
g_warning ("%s: %s", G_STRFUNC, err_msg);
- rule_context_set_error(context, err_msg);
+ rule_context_set_error (context, err_msg);
/* no need to free err_msg here */
return -1;
}
@@ -224,7 +224,7 @@ rule_context_load (ERuleContext *context,
"Unable to load system rules '%s': "
"Invalid format", system);
g_warning ("%s: %s", G_STRFUNC, err_msg);
- rule_context_set_error(context, err_msg);
+ rule_context_set_error (context, err_msg);
/* no need to free err_msg here */
xmlFreeDoc (systemdoc);
return -1;
diff --git a/filter/e-rule-editor.c b/filter/e-rule-editor.c
index 9becdf80e4..4aca9612bb 100644
--- a/filter/e-rule-editor.c
+++ b/filter/e-rule-editor.c
@@ -217,7 +217,7 @@ update_selected_rule (ERuleEditor *editor)
static void
cursor_changed (GtkTreeView *treeview, ERuleEditor *editor)
{
- if (update_selected_rule(editor)) {
+ if (update_selected_rule (editor)) {
g_return_if_fail (editor->current);
e_rule_editor_set_sensitive (editor);
@@ -336,7 +336,7 @@ rule_edit (GtkWidget *widget, ERuleEditor *editor)
GtkWidget *rules;
GtkWidget *content_area;
- update_selected_rule(editor);
+ update_selected_rule (editor);
if (editor->current == NULL || editor->edit != NULL)
return;
@@ -382,7 +382,7 @@ rule_delete (GtkWidget *widget, ERuleEditor *editor)
GtkTreeIter iter;
gint pos, len;
- update_selected_rule(editor);
+ update_selected_rule (editor);
pos = e_rule_context_get_rank_rule (editor->context, editor->current, editor->source);
if (pos != -1) {
@@ -478,7 +478,7 @@ rule_top (GtkWidget *widget, ERuleEditor *editor)
{
gint pos;
- update_selected_rule(editor);
+ update_selected_rule (editor);
pos = e_rule_context_get_rank_rule (
editor->context, editor->current, editor->source);
@@ -491,7 +491,7 @@ rule_up (GtkWidget *widget, ERuleEditor *editor)
{
gint pos;
- update_selected_rule(editor);
+ update_selected_rule (editor);
pos = e_rule_context_get_rank_rule (
editor->context, editor->current, editor->source);
@@ -504,7 +504,7 @@ rule_down (GtkWidget *widget, ERuleEditor *editor)
{
gint pos;
- update_selected_rule(editor);
+ update_selected_rule (editor);
pos = e_rule_context_get_rank_rule (
editor->context, editor->current, editor->source);
@@ -519,7 +519,7 @@ rule_bottom (GtkWidget *widget, ERuleEditor *editor)
gint count = 0;
EFilterRule *rule = NULL;
- update_selected_rule(editor);
+ update_selected_rule (editor);
pos = e_rule_context_get_rank_rule (
editor->context, editor->current, editor->source);