aboutsummaryrefslogtreecommitdiffstats
path: root/filter/e-filter-datespec.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 /filter/e-filter-datespec.c
parent2bf3460cd3eb0853a1d10a6e36f5091898a5533f (diff)
downloadgsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.gz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.bz2
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.lz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.xz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.zst
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.zip
Coding style cleanups.
Diffstat (limited to 'filter/e-filter-datespec.c')
-rw-r--r--filter/e-filter-datespec.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/filter/e-filter-datespec.c b/filter/e-filter-datespec.c
index 34155f8073..d7aa93adc1 100644
--- a/filter/e-filter-datespec.c
+++ b/filter/e-filter-datespec.c
@@ -162,7 +162,7 @@ set_button (EFilterDatespec *fds)
break;
}
- gtk_label_set_text ((GtkLabel *)fds->priv->label_button, label);
+ gtk_label_set_text ((GtkLabel *) fds->priv->label_button, label);
}
static void
@@ -175,7 +175,7 @@ get_values (EFilterDatespec *fds)
guint year, month, day;
struct tm tm;
- gtk_calendar_get_date ((GtkCalendar *)p->calendar_specify, &year, &month, &day);
+ 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;
@@ -187,7 +187,7 @@ get_values (EFilterDatespec *fds)
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:
@@ -219,19 +219,19 @@ 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);
+ 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);
+ 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);
+ 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;
@@ -306,7 +306,7 @@ button_clicked (GtkButton *button, EFilterDatespec *fds)
set_button (fds);
}
- gtk_widget_destroy ((GtkWidget *)dialog);
+ gtk_widget_destroy ((GtkWidget *) dialog);
}
static gboolean
@@ -382,10 +382,10 @@ filter_datespec_xml_decode (EFilterElement *element,
while (n) {
if (!strcmp ((gchar *)n->name, "datespec")) {
val = xmlGetProp (n, (xmlChar *)"type");
- fds->type = atoi ((gchar *)val);
+ fds->type = atoi ((gchar *) val);
xmlFree (val);
val = xmlGetProp (n, (xmlChar *)"value");
- fds->value = atoi ((gchar *)val);
+ fds->value = atoi ((gchar *) val);
xmlFree (val);
break;
}