diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-09 01:24:42 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:11 +0800 |
commit | 54da4fc09cf226fdb59b9f0c70555e2e57dc1f91 (patch) | |
tree | c62c9ac6d08670dffc400ff00117508512ce4f8b /filter/e-filter-datespec.c | |
parent | fe20f70779fb486169a0735499d24e001ffa0cab (diff) | |
download | gsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.tar.gz gsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.tar.zst gsoc2013-evolution-54da4fc09cf226fdb59b9f0c70555e2e57dc1f91.zip |
Coding style cleanups.
Diffstat (limited to 'filter/e-filter-datespec.c')
-rw-r--r-- | filter/e-filter-datespec.c | 20 |
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; } |