aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c8
-rw-r--r--calendar/gui/cal-search-bar.c4
-rw-r--r--calendar/gui/dialogs/alarm-dialog.c2
-rw-r--r--calendar/gui/dialogs/calendar-setup.c2
-rw-r--r--calendar/gui/dialogs/event-page.c2
-rw-r--r--calendar/gui/dialogs/memo-page.c6
-rw-r--r--calendar/gui/dialogs/save-comp.c2
-rw-r--r--calendar/gui/dialogs/select-source-dialog.c2
-rw-r--r--calendar/gui/e-cal-model-memos.c2
-rw-r--r--calendar/gui/e-cal-model-tasks.c4
-rw-r--r--calendar/gui/e-calendar-view.c2
-rw-r--r--calendar/gui/e-day-view-top-item.c4
-rw-r--r--calendar/gui/e-day-view.c4
-rw-r--r--calendar/gui/e-itip-control.c2
-rw-r--r--calendar/gui/e-meeting-list-view.c2
-rw-r--r--calendar/gui/e-meeting-time-sel-item.c2
-rw-r--r--calendar/gui/e-week-view-event-item.c2
-rw-r--r--calendar/gui/e-week-view.c8
-rw-r--r--calendar/gui/ea-week-view-cell.c2
-rw-r--r--calendar/gui/gnome-cal.c2
-rw-r--r--calendar/gui/itip-utils.c12
21 files changed, 38 insertions, 38 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index 052340fbca..e7fbdc7090 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -973,17 +973,17 @@ free_tray_icon_data (TrayIconData *tray_data)
{
g_return_if_fail (tray_data != NULL);
- if (tray_data->summary){
+ if (tray_data->summary) {
g_free (tray_data->summary);
tray_data->summary = NULL;
}
- if (tray_data->description){
+ if (tray_data->description) {
g_free (tray_data->description);
tray_data->description = NULL;
}
- if (tray_data->location){
+ if (tray_data->location) {
g_free (tray_data->location);
tray_data->location = NULL;
}
@@ -1130,7 +1130,7 @@ tray_list_remove_async (Message *msg)
TrayIconData *tray_data = list->data;
- if (!tray_data->snooze_set){
+ if (!tray_data->snooze_set) {
GList *temp = list->next;
gboolean status;
diff --git a/calendar/gui/cal-search-bar.c b/calendar/gui/cal-search-bar.c
index c770c833f7..672c921852 100644
--- a/calendar/gui/cal-search-bar.c
+++ b/calendar/gui/cal-search-bar.c
@@ -420,7 +420,7 @@ notify_e_cal_view_contains (CalSearchBar *cal_search, const gchar *field, const
g_free (text);
/* Apply the selected view on search */
- if (view && *view){
+ if (view && *view) {
sexp = g_strconcat ("(and ",sexp, view, ")", NULL);
}
@@ -710,7 +710,7 @@ make_suboptions (CalSearchBar *cal_search)
e_search_bar_set_viewoption_menu ((ESearchBar *)cal_search, menu);
}
- if(subitems != NULL)
+ if (subitems != NULL)
g_free (subitems);
}
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c
index ab411f9e7b..5ac97f7a13 100644
--- a/calendar/gui/dialogs/alarm-dialog.c
+++ b/calendar/gui/dialogs/alarm-dialog.c
@@ -623,7 +623,7 @@ populate_widgets_from_alarm (Dialog *dialog)
g_warning ("%s: Unexpected alarm type (%d)", G_STRLOC, trigger->type);
}
- switch ( trigger->u.rel_duration.is_neg ){
+ switch ( trigger->u.rel_duration.is_neg ) {
case 1:
e_dialog_combo_box_set (dialog->relative_combo, BEFORE, relative_map);
break;
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c
index de7025fd96..9b396ce2cf 100644
--- a/calendar/gui/dialogs/calendar-setup.c
+++ b/calendar/gui/dialogs/calendar-setup.c
@@ -270,7 +270,7 @@ eccp_general_offline (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidg
offline_setting = gtk_check_button_new_with_mnemonic (_("Cop_y calendar contents locally for offline operation"));
else if (sdialog->source_type == E_CAL_SOURCE_TYPE_TODO)
offline_setting = gtk_check_button_new_with_mnemonic (_("Cop_y task list contents locally for offline operation"));
- else if(sdialog->source_type == E_CAL_SOURCE_TYPE_JOURNAL)
+ else if (sdialog->source_type == E_CAL_SOURCE_TYPE_JOURNAL)
offline_setting = gtk_check_button_new_with_mnemonic (_("Cop_y memo list contents locally for offline operation"));
gtk_widget_show (offline_setting);
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index a133904b65..ed31badd11 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -1541,7 +1541,7 @@ time_sel_changed (GtkComboBox *combo, EventPage *epage)
gtk_widget_show (priv->end_time);
hour_sel_changed (GTK_SPIN_BUTTON (priv->hour_selector), epage);
minute_sel_changed (GTK_SPIN_BUTTON (priv->minute_selector), epage);
- } else if (!selection){
+ } else if (!selection) {
gtk_widget_show (priv->time_hour);
gtk_widget_hide (priv->end_time);
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c
index fd218a8ec1..1edee08466 100644
--- a/calendar/gui/dialogs/memo-page.c
+++ b/calendar/gui/dialogs/memo-page.c
@@ -586,7 +586,7 @@ memo_page_fill_component (CompEditorPage *page,
gtk_text_buffer_get_end_iter (text_buffer, &text_iter_end);
str = gtk_text_buffer_get_text (text_buffer, &text_iter_start, &text_iter_end, FALSE);
- if (!str || strlen (str) == 0){
+ if (!str || strlen (str) == 0) {
e_cal_component_set_description_list (comp, NULL);
}
else {
@@ -596,7 +596,7 @@ memo_page_fill_component (CompEditorPage *page,
gchar *txt, *p;
gunichar uc;
- for(i = 0, p = str, uc = g_utf8_get_char_validated (p, -1);
+ for (i = 0, p = str, uc = g_utf8_get_char_validated (p, -1);
i < 50 && p && uc < (gunichar)-2;
i++, p = g_utf8_next_char (p), uc = g_utf8_get_char_validated (p, -1)) {
idxToUse = p - str;
@@ -755,7 +755,7 @@ get_widgets (MemoPage *mpage)
#define GW(name) glade_xml_get_widget (priv->xml, name)
priv->main = GW ("memo-page");
- if (!priv->main){
+ if (!priv->main) {
g_warning("couldn't find memo-page!");
return FALSE;
}
diff --git a/calendar/gui/dialogs/save-comp.c b/calendar/gui/dialogs/save-comp.c
index 3f47312d22..7284f1d0d5 100644
--- a/calendar/gui/dialogs/save-comp.c
+++ b/calendar/gui/dialogs/save-comp.c
@@ -45,7 +45,7 @@ save_component_dialog (GtkWindow *parent, ECalComponent *comp)
{
ECalComponentVType vtype = e_cal_component_get_vtype(comp);
- switch(vtype) {
+ switch (vtype) {
case E_CAL_COMPONENT_EVENT:
return e_error_run (parent, "calendar:prompt-save-appointment", NULL);
case E_CAL_COMPONENT_TODO:
diff --git a/calendar/gui/dialogs/select-source-dialog.c b/calendar/gui/dialogs/select-source-dialog.c
index 462ed7d82a..bae86827b9 100644
--- a/calendar/gui/dialogs/select-source-dialog.c
+++ b/calendar/gui/dialogs/select-source-dialog.c
@@ -48,7 +48,7 @@ select_source_dialog (GtkWindow *parent, ECalSourceType obj_type)
gconf_key = "/apps/evolution/calendar/sources";
else if (obj_type == E_CAL_SOURCE_TYPE_TODO)
gconf_key = "/apps/evolution/tasks/sources";
- else if(obj_type == E_CAL_SOURCE_TYPE_JOURNAL)
+ else if (obj_type == E_CAL_SOURCE_TYPE_JOURNAL)
gconf_key = "/apps/evolution/memos/sources";
else
return NULL;
diff --git a/calendar/gui/e-cal-model-memos.c b/calendar/gui/e-cal-model-memos.c
index 0bb086b4f2..38e55ef71a 100644
--- a/calendar/gui/e-cal-model-memos.c
+++ b/calendar/gui/e-cal-model-memos.c
@@ -151,7 +151,7 @@ ecmm_set_value_at (ETableModel *etm, gint col, gint row, gconstpointer value)
}
comp_data = e_cal_model_get_component_at (E_CAL_MODEL (model), row);
- if (!comp_data){
+ if (!comp_data) {
g_warning("couldn't get component data: row == %d", row);
return;
}
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c
index acf3175765..6d841c495e 100644
--- a/calendar/gui/e-cal-model-tasks.c
+++ b/calendar/gui/e-cal-model-tasks.c
@@ -444,7 +444,7 @@ get_due_status (ECalModelTasks *model, ECalModelComponent *comp_data)
icalparameter *param;
const gchar *tzid;
- if(!(param = icalproperty_get_first_parameter (prop, ICAL_TZID_PARAMETER)))
+ if (!(param = icalproperty_get_first_parameter (prop, ICAL_TZID_PARAMETER)))
return E_CAL_MODEL_TASKS_DUE_FUTURE;
/* Get the current time in the same timezone as the DUE date.*/
@@ -1214,7 +1214,7 @@ e_cal_model_tasks_update_due_tasks (ECalModelTasks *model)
{
comp_data = e_cal_model_get_component_at (E_CAL_MODEL (model), row);
status = get_due_status (E_CAL_MODEL_TASKS (model), comp_data);
- if((status == E_CAL_MODEL_TASKS_DUE_TODAY) || (status == E_CAL_MODEL_TASKS_DUE_OVERDUE))
+ if ((status == E_CAL_MODEL_TASKS_DUE_TODAY) || (status == E_CAL_MODEL_TASKS_DUE_OVERDUE))
{
e_table_model_pre_change (E_TABLE_MODEL (model));
e_table_model_row_changed (E_TABLE_MODEL (model), row);
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index af99121433..54b7bcb783 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -2454,7 +2454,7 @@ icalcomp_contains_category (icalcomponent *icalcomp, const gchar *category)
property = icalcomponent_get_next_property (icalcomp, ICAL_CATEGORIES_PROPERTY)) {
gchar *value = icalproperty_get_value_as_string_r (property);
- if (value && strcmp (category, value) == 0){
+ if (value && strcmp (category, value) == 0) {
g_free (value);
return TRUE;
}
diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c
index 180b3adb1c..c4865ee707 100644
--- a/calendar/gui/e-day-view-top-item.c
+++ b/calendar/gui/e-day-view-top-item.c
@@ -426,7 +426,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem,
GdkColormap *colormap;
colormap = gtk_widget_get_colormap (GTK_WIDGET (day_view));
- if (gdk_colormap_alloc_color (colormap, &bg_color, TRUE, TRUE)){
+ if (gdk_colormap_alloc_color (colormap, &bg_color, TRUE, TRUE)) {
red = bg_color.red;
green = bg_color.green;
blue = bg_color.blue;
@@ -487,7 +487,7 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem,
draw_curved_rectangle (cr, x0, y0, rect_width, rect_height, radius);
- if (gradient){
+ if (gradient) {
pat = cairo_pattern_create_linear (item_x - x + 5.5, item_y + 2.5 - y,
item_x - x + 5, item_y - y + item_h + 7.5);
cairo_pattern_add_color_stop_rgba (pat, 1, red/cc, green/cc, blue/cc, 0.8);
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index f3cb3f0715..871a6d81c7 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -1318,7 +1318,7 @@ e_day_view_style_set (GtkWidget *widget,
day_view = E_DAY_VIEW (widget);
e_day_view_set_colors(day_view, widget);
- for (week_day = 0; week_day < E_DAY_VIEW_MAX_DAYS; week_day++){
+ for (week_day = 0; week_day < E_DAY_VIEW_MAX_DAYS; week_day++) {
for (event_num = 0; event_num < day_view->events[week_day]->len; event_num++) {
event = &g_array_index (day_view->events[week_day], EDayViewEvent, event_num);
if (event->canvas_item) {
@@ -1847,7 +1847,7 @@ e_day_view_update_event_label (EDayView *day_view,
if ((interval/day_view->mins_per_row) >= 2)
short_event = FALSE;
else if ((interval%day_view->mins_per_row)==0) {
- if (((event->end_minute%day_view->mins_per_row)==0) || ((event->start_minute%day_view->mins_per_row)==0)){
+ if (((event->end_minute%day_view->mins_per_row)==0) || ((event->start_minute%day_view->mins_per_row)==0)) {
short_event = TRUE;
}
} else
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index 4d2803d442..88abd1b007 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -918,7 +918,7 @@ set_date_label (EItipControl *itip, GtkHTML *html, GtkHTMLStream *html_stream,
g_string_truncate (buffer, 0);
e_cal_component_get_dtend (comp, &datetime);
- if (datetime.value){
+ if (datetime.value) {
/* For Translators : 'ends' is ends:date implying a task ends on what date */
str = g_strdup_printf ("<b>%s:</b>", _("Ends"));
write_label_piece (itip, &datetime, buffer, str, "<br>", FALSE);
diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c
index 55e3af816e..d4b87fc270 100644
--- a/calendar/gui/e-meeting-list-view.c
+++ b/calendar/gui/e-meeting-list-view.c
@@ -396,7 +396,7 @@ attendee_edited_cb (GtkCellRenderer *renderer, const gchar *path, GList *address
gchar *name = names->data, *email = addresses->data;
gint existing_row;
- if (!((name && *name) || (email && *email)) || ((e_meeting_store_find_attendee (model, email, &existing_row) != NULL) && existing_row != row)){
+ if (!((name && *name) || (email && *email)) || ((e_meeting_store_find_attendee (model, email, &existing_row) != NULL) && existing_row != row)) {
if (existing_attendee) {
removed = TRUE;
e_meeting_list_view_remove_attendee_from_name_selector (E_MEETING_LIST_VIEW (view),
diff --git a/calendar/gui/e-meeting-time-sel-item.c b/calendar/gui/e-meeting-time-sel-item.c
index 90a12b51df..041ae6e403 100644
--- a/calendar/gui/e-meeting-time-sel-item.c
+++ b/calendar/gui/e-meeting-time-sel-item.c
@@ -294,7 +294,7 @@ e_meeting_time_selector_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
&& (meeting_end_x - meeting_start_x > 2)) {
cairo_save (cr);
gdk_cairo_set_source_color (cr, &mts->meeting_time_bg_color);
- if (is_display_top){
+ if (is_display_top) {
cairo_rectangle (cr, meeting_start_x + 1 - x, mts->row_height * 2 - y,
meeting_end_x - meeting_start_x - 2, mts->row_height);
cairo_fill (cr);
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index 8ad8b608a2..66c1bed136 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -501,7 +501,7 @@ e_week_view_event_item_draw (GnomeCanvasItem *canvas_item,
draw_curved_rectangle (cr, cx0, cy0, rect_width, rect_height, radius);
- if (gradient){
+ if (gradient) {
pat = cairo_pattern_create_linear (rect_x + 2, y1 + 1,
rect_x + 2, y2 - 7.25);
cairo_pattern_add_color_stop_rgba (pat, 1, red/cc, green/cc, blue/cc, 0.8);
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 838fda8478..749b3ed504 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -896,7 +896,7 @@ e_week_view_style_set (GtkWidget *widget,
span_num++) {
span = &g_array_index (week_view->spans,
EWeekViewEventSpan, span_num);
- if (span->text_item){
+ if (span->text_item) {
gnome_canvas_item_set (span->text_item,
"fill_color_gdk", &widget->style->text[GTK_STATE_NORMAL],
NULL);
@@ -2247,7 +2247,7 @@ e_week_view_on_scroll (GtkWidget *widget,
g_object_set_data (G_OBJECT (week_view), "tooltip-window", NULL);
}
- switch (scroll->direction){
+ switch (scroll->direction) {
case GDK_SCROLL_UP:
new_value = adj->value - adj->page_increment;
break;
@@ -3053,7 +3053,7 @@ e_week_view_start_editing_event (EWeekView *week_view,
/* Unfocussing can cause a removal but not a new
* addition so just run backwards through the
* events */
- for (event_num--; event_num >= 0; event_num--){
+ for (event_num--; event_num >= 0; event_num--) {
event = &g_array_index (week_view->events, EWeekViewEvent, event_num);
if (event->comp_data == comp_data)
break;
@@ -3401,7 +3401,7 @@ e_week_view_scroll_a_step (EWeekView *week_view, ECalViewMoveDirection direction
GtkAdjustment *adj = GTK_RANGE (week_view->vscrollbar)->adjustment;
gfloat new_value;
- switch (direction){
+ switch (direction) {
case E_CAL_VIEW_MOVE_UP:
new_value = adj->value - adj->step_increment;
break;
diff --git a/calendar/gui/ea-week-view-cell.c b/calendar/gui/ea-week-view-cell.c
index 57554427da..e4b28e3d59 100644
--- a/calendar/gui/ea-week-view-cell.c
+++ b/calendar/gui/ea-week-view-cell.c
@@ -376,7 +376,7 @@ component_interface_get_extents (AtkComponent *component,
*width = week_view->col_widths[cell->column - 1];
*x += week_view->col_offsets[cell->column - 1]- scroll_x;
*y += week_view->row_offsets[cell->row*2 + 1]- scroll_y;
- } else if (week_view->compress_weekend && (cell->column > (6 - start_day))){
+ } else if (week_view->compress_weekend && (cell->column > (6 - start_day))) {
*height = week_view->row_heights[cell->row*2]*2;
*width = week_view->col_widths[cell->column - 1];
*x += week_view->col_offsets[cell->column - 1] - scroll_x;
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index bd131327c6..bb95c4d9aa 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -895,7 +895,7 @@ search_bar_sexp_changed_cb (CalSearchBar *cal_search, const gchar *sexp, gpointe
gcal = GNOME_CALENDAR (data);
/* Choose List view if the search made in the search bar is based on date */
- if(sexp != NULL && strstr (sexp, d_sexp ) != NULL) {
+ if (sexp != NULL && strstr (sexp, d_sexp ) != NULL) {
gcal->priv->lview_select_daten_range = FALSE;
gtk_widget_hide (GTK_WIDGET (gcal->priv->date_navigator));
gnome_calendar_set_view (gcal, GNOME_CAL_LIST_VIEW);
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index 10eda35811..5acabdbc25 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -496,7 +496,7 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users,
case E_CAL_COMPONENT_METHOD_REPLY:
- if (reply_all){
+ if (reply_all) {
e_cal_component_get_attendee_list (comp, &attendees);
len = g_slist_length (attendees);
@@ -567,7 +567,7 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users,
if (att->cutype != ICAL_CUTYPE_INDIVIDUAL && att->cutype != ICAL_CUTYPE_GROUP)
continue;
- if (!g_ascii_strcasecmp (itip_strip_mailto (att->value), sender) || (att->sentby && !g_ascii_strcasecmp (itip_strip_mailto (att->sentby), sender))){
+ if (!g_ascii_strcasecmp (itip_strip_mailto (att->value), sender) || (att->sentby && !g_ascii_strcasecmp (itip_strip_mailto (att->sentby), sender))) {
if (!(att->delfrom && *att->delfrom))
break;
@@ -583,7 +583,7 @@ comp_to_list (ECalComponentItipMethod method, ECalComponent *comp, GList *users,
break;
case E_CAL_COMPONENT_METHOD_PUBLISH:
- if(users) {
+ if (users) {
GList *list;
array = g_ptr_array_new ();
@@ -1364,7 +1364,7 @@ reply_to_calendar_comp (ECalComponentItipMethod method,
top_level = comp_toplevel_with_zones (method, comp, client, zones);
ical_string = icalcomponent_as_ical_string_r (top_level);
- if (e_cal_component_get_vtype (comp) == E_CAL_COMPONENT_EVENT){
+ if (e_cal_component_get_vtype (comp) == E_CAL_COMPONENT_EVENT) {
GString *body;
gchar *orig_from = NULL;
@@ -1382,7 +1382,7 @@ reply_to_calendar_comp (ECalComponentItipMethod method,
e_cal_component_get_description_list (comp, &text_list);
- if (text_list){
+ if (text_list) {
ECalComponentText text = *((ECalComponentText *)text_list->data);
if (text.value)
description = text.value;
@@ -1525,7 +1525,7 @@ fb_sort (struct icalperiodtype *ipt, gint fb_count)
if (icaltime_compare (ipt[i].start, ipt[j].start) < 0)
continue;
- if (icaltime_compare (ipt[i].start, ipt[j].start) == 0){
+ if (icaltime_compare (ipt[i].start, ipt[j].start) == 0) {
if (icaltime_compare (ipt[i].end,
ipt[j].start) < 0)
continue;