diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-02 07:09:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-02 07:09:19 +0800 |
commit | 8771a6de3590d468d1a2c3cfab34955c624f614a (patch) | |
tree | dc23ed6ab0533bc9f241976f33b6c6cc2d7ee117 /calendar | |
parent | 69a1e923a71ee881721e21b991de08b897f9e7b0 (diff) | |
download | gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.gz gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.bz2 gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.lz gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.xz gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.zst gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.zip |
More code cleanup.
Diffstat (limited to 'calendar')
45 files changed, 151 insertions, 151 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c index fe6f7dfe5d..e899ad203d 100644 --- a/calendar/conduits/calendar/calendar-conduit.c +++ b/calendar/conduits/calendar/calendar-conduit.c @@ -461,7 +461,7 @@ auth_func_cb (ECal *ecal, const gchar * prompt, const gchar *key, gpointer user_ return password; } -static int +static gint start_calendar_server (ECalConduitContext *ctxt) { gchar *str_uri = NULL; @@ -575,7 +575,7 @@ get_ical_day (gint day) return ICAL_NO_WEEKDAY; } -static int +static gint get_pilot_day (icalrecurrencetype_weekday wd) { switch (wd) { diff --git a/calendar/conduits/memo/memo-conduit.c b/calendar/conduits/memo/memo-conduit.c index 9a226f59b8..b22216eecd 100644 --- a/calendar/conduits/memo/memo-conduit.c +++ b/calendar/conduits/memo/memo-conduit.c @@ -356,7 +356,7 @@ static gchar *print_remote (GnomePilotRecord *remote) return buff; } -static int +static gint start_calendar_server (EMemoConduitContext *ctxt) { g_return_val_if_fail (ctxt != NULL, -2); diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index b0b5526fba..7ff2161772 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -449,7 +449,7 @@ auth_func_cb (ECal *ecal, const gchar * prompt, const gchar *key, gpointer user_ return password; } -static int +static gint start_calendar_server (EToDoConduitContext *ctxt) { gchar *str_uri = NULL; diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c index d5984d1e96..180542eb6e 100644 --- a/calendar/gui/alarm-notify/alarm-queue.c +++ b/calendar/gui/alarm-notify/alarm-queue.c @@ -1636,7 +1636,7 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa, ECalComponent *comp; ECalComponentAlarm *alarm; icalattach *attach; - int flag = 0; + gint flag = 0; d(printf("%s:%d (audio_notification)\n",__FILE__, __LINE__)); diff --git a/calendar/gui/alarm-notify/alarm.c b/calendar/gui/alarm-notify/alarm.c index f2ab4bb23d..c487d94503 100644 --- a/calendar/gui/alarm-notify/alarm.c +++ b/calendar/gui/alarm-notify/alarm.c @@ -158,7 +158,7 @@ setup_timeout (void) } /* Used from g_list_insert_sorted(); compares the trigger times of two AlarmRecord structures. */ -static int +static gint compare_alarm_by_time (gconstpointer a, gconstpointer b) { const AlarmRecord *ara = a; diff --git a/calendar/gui/alarm-notify/util.c b/calendar/gui/alarm-notify/util.c index 5377c8d4b2..e0bbf10245 100644 --- a/calendar/gui/alarm-notify/util.c +++ b/calendar/gui/alarm-notify/util.c @@ -76,7 +76,7 @@ calculate_time (time_t start, time_t end) } if (i == 0 || difference != 0) { /* TRANSLATORS: here, "second" is the time division (like "minute"), not the ordinal number (like "third") */ - times[i++] = g_strdup_printf (ngettext("%d second", "%d seconds", difference), (int)difference); + times[i++] = g_strdup_printf (ngettext("%d second", "%d seconds", difference), (gint)difference); } times[i] = NULL; diff --git a/calendar/gui/cal-search-bar.c b/calendar/gui/cal-search-bar.c index b93a98a934..424db0d5e4 100644 --- a/calendar/gui/cal-search-bar.c +++ b/calendar/gui/cal-search-bar.c @@ -288,10 +288,10 @@ get_current_category (CalSearchBar *cal_search) static gchar * get_show_option_sexp (CalSearchBar *cal_search) { - CalSearchBarPrivate *priv ; - gint viewid ; + CalSearchBarPrivate *priv; + gint viewid; gchar *start, *end, *due, *ret = NULL; - const gchar *category = NULL ; + const gchar *category = NULL; time_t start_range, end_range; priv = cal_search->priv; @@ -830,7 +830,7 @@ cal_search_bar_new (guint32 flags) } /* Used from qsort() */ -static int +static gint compare_categories_cb (gconstpointer a, gconstpointer b) { const gchar **ca, **cb; diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 072df02049..5fbf0313ab 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -112,7 +112,7 @@ typedef struct EActivityHandler *activity_handler; - float vpane_pos; + gfloat vpane_pos; } CalendarComponentView; struct _CalendarComponentPrivate { @@ -142,7 +142,7 @@ extern ECompEditorRegistry *comp_editor_registry; static void calcomp_vpane_realized (GtkWidget *vpane, CalendarComponentView *view) { - gtk_paned_set_position (GTK_PANED (vpane), (int)(view->vpane_pos*vpane->allocation.height)); + gtk_paned_set_position (GTK_PANED (vpane), (gint)(view->vpane_pos*vpane->allocation.height)); } @@ -151,7 +151,7 @@ calcomp_vpane_resized (GtkWidget *vpane, GdkEventButton *e, CalendarComponentVie { view->vpane_pos = gtk_paned_get_position (GTK_PANED (vpane)); - calendar_config_set_tag_vpane_pos (view->vpane_pos/(float)vpane->allocation.height); + calendar_config_set_tag_vpane_pos (view->vpane_pos/(gfloat)vpane->allocation.height); return FALSE; } @@ -888,7 +888,7 @@ impl_handleURI (PortableServer_Servant servant, const gchar *uri, CORBA_Environm EUri *euri = e_uri_new (uri); const gchar *p; gchar *header, *content; - size_t len, clen; + gsize len, clen; time_t start = -1, end = -1; p = euri->query; diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index 58f77968d6..02b051a095 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -808,7 +808,7 @@ calendar_config_set_month_vpane_pos (gint vpane_pos) gconf_client_set_int (config, CALENDAR_CONFIG_MONTH_VPANE_POS, vpane_pos, NULL); } -float +gfloat calendar_config_get_tag_vpane_pos (void) { calendar_config_init (); @@ -818,7 +818,7 @@ calendar_config_get_tag_vpane_pos (void) void -calendar_config_set_tag_vpane_pos (float vpane_pos) +calendar_config_set_tag_vpane_pos (gfloat vpane_pos) { calendar_config_init (); diff --git a/calendar/gui/calendar-config.h b/calendar/gui/calendar-config.h index c4f264c230..c7f0556ac8 100644 --- a/calendar/gui/calendar-config.h +++ b/calendar/gui/calendar-config.h @@ -182,8 +182,8 @@ void calendar_config_set_month_hpane_pos (gint hpane_pos); gint calendar_config_get_month_vpane_pos (void); void calendar_config_set_month_vpane_pos (gint vpane_pos); -float calendar_config_get_tag_vpane_pos (void); -void calendar_config_set_tag_vpane_pos (float vpane_pos); +gfloat calendar_config_get_tag_vpane_pos (void); +void calendar_config_set_tag_vpane_pos (gfloat vpane_pos); /* The current list of task lists selected */ GSList *calendar_config_get_tasks_selected (void); diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c index a217254b18..6a1c71740f 100644 --- a/calendar/gui/comp-editor-factory.c +++ b/calendar/gui/comp-editor-factory.c @@ -277,7 +277,7 @@ edit_existing (OpenClient *oc, const gchar *uid) break; default: - g_message ("edit_exiting(): Unsupported object type %d", (int) vtype); + g_message ("edit_exiting(): Unsupported object type %d", (gint) vtype); g_object_unref (comp); return; } diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c index 5284656d1d..ab411f9e7b 100644 --- a/calendar/gui/dialogs/alarm-dialog.c +++ b/calendar/gui/dialogs/alarm-dialog.c @@ -1105,7 +1105,7 @@ action_changed_cb (GtkWidget *action_combo, gpointer data) gint page = 0, i; action = e_dialog_combo_box_get (dialog->action_combo, action_map); - for (i = 0; action_map[i] != -1 ; i++) { + for (i = 0; action_map[i] != -1; i++) { if (action == action_map[i]) { page = i; break; diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c index ce6f607b5f..96f91c741f 100644 --- a/calendar/gui/dialogs/cal-prefs-dialog.c +++ b/calendar/gui/dialogs/cal-prefs-dialog.c @@ -420,7 +420,7 @@ ba_reminder_interval_changed (GtkWidget *widget, CalendarPrefsDialog *prefs) gint value; str = gtk_entry_get_text (GTK_ENTRY (widget)); - value = (int) g_ascii_strtod (str, NULL); + value = (gint) g_ascii_strtod (str, NULL); calendar_config_set_ba_reminder (NULL, &value, NULL); } diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 4063a317f4..598dbf4ff4 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -2455,7 +2455,7 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method, gboolean str num_attachments = e_cal_component_get_num_attachments (send_comp); - for (i = 0; i < num_attachments ; i++) { + for (i = 0; i < num_attachments; i++) { attach_list = g_slist_append (attach_list, g_strdup ("CID:...")); } e_cal_component_set_attachment_list (send_comp, attach_list); diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index 5e24495b5c..5fbf69df74 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -643,7 +643,7 @@ nth_weekday (gint pos, icalrecurrencetype_weekday weekday) { g_assert (pos > 0 && pos <= 5); - return (pos << 3) | (int) weekday; + return (pos << 3) | (gint) weekday; } #endif @@ -1312,7 +1312,7 @@ make_recurrence_special (RecurrencePage *rpage) } /* Counts the elements in the by_xxx fields of an icalrecurrencetype */ -static int +static gint count_by_xxx (short *field, gint max_elements) { gint i; diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c index 4cff39864a..23f4b1f840 100644 --- a/calendar/gui/dialogs/task-details-page.c +++ b/calendar/gui/dialogs/task-details-page.c @@ -186,7 +186,7 @@ priority_value_to_index (gint priority_value) return retval; } -static int +static gint priority_index_to_value (TaskEditorPriority priority) { gint retval; diff --git a/calendar/gui/e-alarm-list.c b/calendar/gui/e-alarm-list.c index 32e5b4214a..4fdf5e71eb 100644 --- a/calendar/gui/e-alarm-list.c +++ b/calendar/gui/e-alarm-list.c @@ -170,7 +170,7 @@ all_rows_deleted (EAlarmList *alarm_list) i = g_list_length (alarm_list->list); gtk_tree_path_append_index (path, i); - for ( ; i >= 0; i--) { + for (; i >= 0; i--) { gtk_tree_model_row_deleted (GTK_TREE_MODEL (alarm_list), path); gtk_tree_path_prev (path); } diff --git a/calendar/gui/e-cal-model-calendar.c b/calendar/gui/e-cal-model-calendar.c index 25bb9364d3..452ce88b34 100644 --- a/calendar/gui/e-cal-model-calendar.c +++ b/calendar/gui/e-cal-model-calendar.c @@ -107,7 +107,7 @@ e_cal_model_calendar_finalize (GObject *object) } /* ETableModel methods */ -static int +static gint ecmc_column_count (ETableModel *etm) { return E_CAL_MODEL_CALENDAR_FIELD_LAST; diff --git a/calendar/gui/e-cal-model-memos.c b/calendar/gui/e-cal-model-memos.c index 904868adfe..414a0698e3 100644 --- a/calendar/gui/e-cal-model-memos.c +++ b/calendar/gui/e-cal-model-memos.c @@ -108,7 +108,7 @@ e_cal_model_memos_finalize (GObject *object) } /* ETableModel methods */ -static int +static gint ecmm_column_count (ETableModel *etm) { return E_CAL_MODEL_MEMOS_FIELD_LAST; diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c index 4e384f2774..63749c5aaa 100644 --- a/calendar/gui/e-cal-model-tasks.c +++ b/calendar/gui/e-cal-model-tasks.c @@ -112,7 +112,7 @@ e_cal_model_tasks_finalize (GObject *object) } /* ETableModel methods */ -static int +static gint ecmt_column_count (ETableModel *etm) { return E_CAL_MODEL_TASKS_FIELD_LAST; @@ -310,7 +310,7 @@ get_geo (ECalModelComponent *comp_data) return (gpointer) ""; } -static int +static gint get_percent (ECalModelComponent *comp_data) { icalproperty *prop; diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 68214fa051..eec7403ff3 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -298,13 +298,13 @@ e_cal_model_finalize (GObject *object) /* ETableModel methods */ -static int +static gint ecm_column_count (ETableModel *etm) { return E_CAL_MODEL_FIELD_LAST; } -static int +static gint ecm_row_count (ETableModel *etm) { ECalModelPrivate *priv; diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index 27cf7dbfeb..9eb53d9006 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -361,7 +361,7 @@ ec_query_tooltip (GtkWidget *widget, gint x, gint y, gboolean keyboard_mode, Gtk e_cal_component_get_organizer (new_comp, &organizer); if (organizer.cn) { - gchar *ptr ; + gchar *ptr; ptr = strchr( organizer.value, ':'); if (ptr) { diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index a2b1b735de..2bca3e7ed9 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -2427,7 +2427,7 @@ e_calendar_view_get_tooltips (ECalendarViewEventData *data) e_cal_component_get_organizer (newcomp, &organiser); if (organiser.cn) { - gchar *ptr ; + gchar *ptr; ptr = strchr(organiser.value, ':'); if (ptr) { diff --git a/calendar/gui/e-date-time-list.c b/calendar/gui/e-date-time-list.c index bf75f5ff04..5160f1b419 100644 --- a/calendar/gui/e-date-time-list.c +++ b/calendar/gui/e-date-time-list.c @@ -168,7 +168,7 @@ all_rows_deleted (EDateTimeList *date_time_list) i = g_list_length (date_time_list->list); gtk_tree_path_append_index (path, i); - for ( ; i >= 0; i--) { + for (; i >= 0; i--) { gtk_tree_model_row_deleted (GTK_TREE_MODEL (date_time_list), path); gtk_tree_path_prev (path); } diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c index 6f9d6333d6..6d65dc063f 100644 --- a/calendar/gui/e-day-view-main-item.c +++ b/calendar/gui/e-day-view-main-item.c @@ -618,7 +618,7 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem, gdouble date_fraction; gboolean short_event = FALSE, resize_flag = FALSE; const gchar *end_resize_suffix; - gchar *end_resize_time; + gchar *end_regsizeime; gint start_hour, start_display_hour, start_minute, start_suffix_width; gint end_hour, end_display_hour, end_minute, end_suffix_width; gboolean show_span = FALSE, format_time; @@ -970,12 +970,12 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem, if (e_calendar_view_get_use_24_hour_format (E_CALENDAR_VIEW (day_view))) { cairo_translate (cr, item_x + item_w - E_DAY_VIEW_BAR_WIDTH - 32, item_y + item_h - 8); - end_resize_time = g_strdup_printf ("%2i:%02i", + end_regsizeime = g_strdup_printf ("%2i:%02i", end_display_hour, end_minute); } else { cairo_translate (cr, item_x + item_w - E_DAY_VIEW_BAR_WIDTH - 48, item_y + item_h - 8); - end_resize_time = g_strdup_printf ("%2i:%02i%s", + end_regsizeime = g_strdup_printf ("%2i:%02i%s", end_display_hour, end_minute, end_resize_suffix); } @@ -985,7 +985,7 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem, else cairo_set_source_rgb (cr, 1, 1, 1); cairo_set_font_options (cr, font_options); - cairo_show_text (cr, end_resize_time); + cairo_show_text (cr, end_regsizeime); cairo_close_path (cr); cairo_restore (cr); } @@ -1019,7 +1019,7 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem, cairo_restore (cr); /* This is for achieving the white stripes in vbar across event color */ - for (i = 0; i <= (bar_y2 - bar_y1) ; i+=4) { + for (i = 0; i <= (bar_y2 - bar_y1); i+=4) { cairo_set_source_rgb (cr, 1, 1, 1); cairo_set_line_width (cr, 0.3); cairo_move_to (cr, item_x + 1, bar_y1 + i); diff --git a/calendar/gui/e-day-view-time-item.c b/calendar/gui/e-day-view-time-item.c index 78bf55863f..232534d51a 100644 --- a/calendar/gui/e-day-view-time-item.c +++ b/calendar/gui/e-day-view-time-item.c @@ -274,11 +274,11 @@ e_day_view_time_item_get_column_width (EDayViewTimeItem *dvtmitem) static void edvti_draw_zone (GnomeCanvasItem *canvas_item, GdkDrawable *drawable, - int x, - int y, - int width, - int height, - int x_offset, + gint x, + gint y, + gint width, + gint height, + gint x_offset, icaltimezone *use_zone) { EDayView *day_view; @@ -609,10 +609,10 @@ edvti_draw_zone (GnomeCanvasItem *canvas_item, static void e_day_view_time_item_draw (GnomeCanvasItem *canvas_item, GdkDrawable *drawable, - int x, - int y, - int width, - int height) + gint x, + gint y, + gint width, + gint height) { EDayViewTimeItem *dvtmitem; diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c index 7579f00986..31cce40a5a 100644 --- a/calendar/gui/e-day-view-top-item.c +++ b/calendar/gui/e-day-view-top-item.c @@ -44,20 +44,20 @@ static void e_day_view_top_item_set_property (GObject *object, static void e_day_view_top_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, - int flags); + gint flags); static void e_day_view_top_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable, - int x, - int y, - int width, - int height); + gint x, + gint y, + gint width, + gint height); static void e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, gint event_num, GdkDrawable *drawable, - int x, - int y, - int width, - int height); + gint x, + gint y, + gint width, + gint height); static void e_day_view_top_item_draw_triangle (EDayViewTopItem *dvtitem, GdkDrawable *drawable, gint x, @@ -68,8 +68,8 @@ static void e_day_view_top_item_draw_triangle (EDayViewTopItem *dvtitem, static double e_day_view_top_item_point (GnomeCanvasItem *item, double x, double y, - int cx, - int cy, + gint cx, + gint cy, GnomeCanvasItem **actual_item); static gint e_day_view_top_item_event (GnomeCanvasItem *item, GdkEvent *event); @@ -155,7 +155,7 @@ static void e_day_view_top_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, - int flags) + gint flags) { if (GNOME_CANVAS_ITEM_CLASS (e_day_view_top_item_parent_class)->update) (* GNOME_CANVAS_ITEM_CLASS (e_day_view_top_item_parent_class)->update) (item, affine, clip_path, flags); @@ -174,10 +174,10 @@ e_day_view_top_item_update (GnomeCanvasItem *item, static void e_day_view_top_item_draw (GnomeCanvasItem *canvas_item, GdkDrawable *drawable, - int x, - int y, - int width, - int height) + gint x, + gint y, + gint width, + gint height) { EDayViewTopItem *dvtitem; EDayView *day_view; @@ -358,10 +358,10 @@ static void e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, gint event_num, GdkDrawable *drawable, - int x, - int y, - int width, - int height) + gint x, + gint y, + gint width, + gint height) { EDayView *day_view; EDayViewEvent *event; diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index ba05c400c0..088f544aae 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -5982,7 +5982,7 @@ e_day_view_on_text_item_event (GnomeCanvasItem *item, data->cal_view = (ECalendarView *)day_view; data->day = day; data->event_num = event_num; - data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, int)) tooltip_get_view_event; + data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, gint)) tooltip_get_view_event; pevent->timeout = g_timeout_add (500, (GSourceFunc)e_calendar_view_get_tooltips, data); return TRUE; diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c index b555c41f6c..da60b19f43 100644 --- a/calendar/gui/e-meeting-store.c +++ b/calendar/gui/e-meeting-store.c @@ -217,7 +217,7 @@ get_flags (GtkTreeModel *model) return GTK_TREE_MODEL_ITERS_PERSIST | GTK_TREE_MODEL_LIST_ONLY; } -static int +static gint get_n_columns (GtkTreeModel *model) { g_return_val_if_fail (E_IS_MEETING_STORE (model), 0); @@ -400,7 +400,7 @@ iter_has_child (GtkTreeModel *model, GtkTreeIter *iter) return FALSE; } -static int +static gint iter_n_children (GtkTreeModel *model, GtkTreeIter *iter) { g_return_val_if_fail (E_IS_MEETING_STORE (model), -1); diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index e8cc938429..1ea1c9082a 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -872,7 +872,7 @@ e_meeting_time_selector_unrealize (GtkWidget *widget) (*GTK_WIDGET_CLASS (e_meeting_time_selector_parent_class)->unrealize)(widget); } -static int +static gint get_cell_height (GtkTreeView *tree) { GtkTreeViewColumn *column; diff --git a/calendar/gui/e-timezone-entry.c b/calendar/gui/e-timezone-entry.c index 2d0cf1ab5d..28660fd3b9 100644 --- a/calendar/gui/e-timezone-entry.c +++ b/calendar/gui/e-timezone-entry.c @@ -79,7 +79,7 @@ static void e_timezone_entry_class_init (ETimezoneEntryClass *class) { GtkObjectClass *object_class = (GtkObjectClass *) class; - GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class) ; + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class); object_class = (GtkObjectClass*) class; diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c index f72c9dfcb1..6ab551e6fc 100644 --- a/calendar/gui/e-week-view-event-item.c +++ b/calendar/gui/e-week-view-event-item.c @@ -46,13 +46,13 @@ static void e_week_view_event_item_set_property (GObject *object, static void e_week_view_event_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, - int flags); + gint flags); static void e_week_view_event_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable, - int x, - int y, - int width, - int height); + gint x, + gint y, + gint width, + gint height); static void e_week_view_draw_time (EWeekView *week_view, GdkDrawable *drawable, gint time_x, @@ -74,8 +74,8 @@ static void e_week_view_event_item_draw_triangle (EWeekViewEventItem *wveitem, static double e_week_view_event_item_point (GnomeCanvasItem *item, double x, double y, - int cx, - int cy, + gint cx, + gint cy, GnomeCanvasItem **actual_item); static gint e_week_view_event_item_event (GnomeCanvasItem *item, GdkEvent *event); @@ -179,7 +179,7 @@ static void e_week_view_event_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, - int flags) + gint flags) { EWeekViewEventItem *wveitem; EWeekView *week_view; @@ -226,10 +226,10 @@ e_week_view_event_item_update (GnomeCanvasItem *item, static void e_week_view_event_item_draw (GnomeCanvasItem *canvas_item, GdkDrawable *drawable, - int x, - int y, - int width, - int height) + gint x, + gint y, + gint width, + gint height) { EWeekViewEventItem *wveitem; EWeekView *week_view; diff --git a/calendar/gui/e-week-view-layout.c b/calendar/gui/e-week-view-layout.c index 134b318118..8f0cb5ece8 100644 --- a/calendar/gui/e-week-view-layout.c +++ b/calendar/gui/e-week-view-layout.c @@ -432,7 +432,7 @@ e_week_view_layout_get_span_position (EWeekViewEvent *event, if (span->row >= rows_per_compressed_cell) { if (multi_week_view) { if (compress_weekend) { - /* If it ends on a Saturday and is 1 day long + /* If it ends on a Saturday and is 1 day glong we skip it, else we shorten it. If it ends on a Sunday it must be 1 day long and we skip it. */ diff --git a/calendar/gui/e-week-view-main-item.c b/calendar/gui/e-week-view-main-item.c index a43e816406..34bbe0f0c0 100644 --- a/calendar/gui/e-week-view-main-item.c +++ b/calendar/gui/e-week-view-main-item.c @@ -38,13 +38,13 @@ static void e_week_view_main_item_set_property (GObject *object, static void e_week_view_main_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, - int flags); + gint flags); static void e_week_view_main_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable, - int x, - int y, - int width, - int height); + gint x, + gint y, + gint width, + gint height); static void e_week_view_main_item_draw_day (EWeekViewMainItem *wvmitem, gint day, GDate *date, @@ -56,8 +56,8 @@ static void e_week_view_main_item_draw_day (EWeekViewMainItem *wvmitem, static double e_week_view_main_item_point (GnomeCanvasItem *item, double x, double y, - int cx, - int cy, + gint cx, + gint cy, GnomeCanvasItem **actual_item); /* The arguments we take */ @@ -127,7 +127,7 @@ static void e_week_view_main_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, - int flags) + gint flags) { if (GNOME_CANVAS_ITEM_CLASS (e_week_view_main_item_parent_class)->update) (* GNOME_CANVAS_ITEM_CLASS (e_week_view_main_item_parent_class)->update) (item, affine, clip_path, flags); @@ -146,10 +146,10 @@ e_week_view_main_item_update (GnomeCanvasItem *item, static void e_week_view_main_item_draw (GnomeCanvasItem *canvas_item, GdkDrawable *drawable, - int x, - int y, - int width, - int height) + gint x, + gint y, + gint width, + gint height) { EWeekViewMainItem *wvmitem; EWeekView *week_view; diff --git a/calendar/gui/e-week-view-titles-item.c b/calendar/gui/e-week-view-titles-item.c index 7a5ae4bf9b..e9ff467b63 100644 --- a/calendar/gui/e-week-view-titles-item.c +++ b/calendar/gui/e-week-view-titles-item.c @@ -36,18 +36,18 @@ static void e_week_view_titles_item_set_property(GObject *object, static void e_week_view_titles_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, - int flags); + gint flags); static void e_week_view_titles_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable, - int x, - int y, - int width, - int height); + gint x, + gint y, + gint width, + gint height); static double e_week_view_titles_item_point (GnomeCanvasItem *item, double x, double y, - int cx, - int cy, + gint cx, + gint cy, GnomeCanvasItem **actual_item); /* The arguments we take */ @@ -114,7 +114,7 @@ static void e_week_view_titles_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, - int flags) + gint flags) { if (GNOME_CANVAS_ITEM_CLASS (e_week_view_titles_item_parent_class)->update) (* GNOME_CANVAS_ITEM_CLASS (e_week_view_titles_item_parent_class)->update) (item, affine, clip_path, flags); @@ -134,10 +134,10 @@ e_week_view_titles_item_update (GnomeCanvasItem *item, static void e_week_view_titles_item_draw (GnomeCanvasItem *canvas_item, GdkDrawable *drawable, - int x, - int y, - int width, - int height) + gint x, + gint y, + gint width, + gint height) { EWeekViewTitlesItem *wvtitem; EWeekView *week_view; diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 97f85a5f4f..839cad6688 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -2707,7 +2707,7 @@ tooltip_event_cb (GnomeCanvasItem *item, data->cal_view = (ECalendarView *)view; data->day = -1; data->event_num = event_num; - data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, int)) tooltip_get_view_event; + data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, gint)) tooltip_get_view_event; pevent->timeout = g_timeout_add (500, (GSourceFunc)e_calendar_view_get_tooltips, data); g_object_set_data ((GObject *)view, "tooltip-timeout", GUINT_TO_POINTER (pevent->timeout)); @@ -3291,7 +3291,7 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item, data->cal_view = (ECalendarView *)week_view; data->day = -1; data->event_num = nevent; - data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, int)) tooltip_get_view_event; + data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, gint)) tooltip_get_view_event; pevent->timeout = g_timeout_add (500, (GSourceFunc)e_calendar_view_get_tooltips, data); g_object_set_data ((GObject *)week_view, "tooltip-timeout", GUINT_TO_POINTER (pevent->timeout)); diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index ff99530429..458a5c1dc9 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -2416,9 +2416,9 @@ display_view (GnomeCalendar *gcal, GnomeCalendarViewType view_type, gboolean gra E_CALENDAR_VIEW (priv->views [view_type])->in_focus = TRUE; gtk_notebook_set_current_page ( - GTK_NOTEBOOK (priv->notebook), (int) view_type); + GTK_NOTEBOOK (priv->notebook), (gint) view_type); - for (i = 0; i < GNOME_CAL_LAST_VIEW ; i++) { + for (i = 0; i < GNOME_CAL_LAST_VIEW; i++) { if (i == view_type) continue; E_CALENDAR_VIEW (priv->views [i])->in_focus = FALSE; diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 19d0aa37c2..cc290b2c3d 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -655,7 +655,7 @@ comp_subject (ECalComponentItipMethod method, ECalComponent *comp) sender = itip_get_comp_attendee (comp, NULL); if (sender) { - for (l = alist; l != NULL ; l = l->next) { + for (l = alist; l != NULL; l = l->next) { a = l->data; if ((sender && *sender) && (g_ascii_strcasecmp (itip_strip_mailto (a->value), sender) || (a->sentby && g_ascii_strcasecmp (itip_strip_mailto (a->sentby), sender)))) break; @@ -1161,7 +1161,7 @@ append_cal_attachments (EMsgComposer *composer, struct CalMimeAttach *mime_attach; GSList *l; - for (l = attach_list; l ; l = l->next) { + for (l = attach_list; l; l = l->next) { CamelMimePart *attachment; mime_attach = (struct CalMimeAttach *) l->data; diff --git a/calendar/gui/memos-component.c b/calendar/gui/memos-component.c index ff540bbab7..1efc7e64ea 100644 --- a/calendar/gui/memos-component.c +++ b/calendar/gui/memos-component.c @@ -766,7 +766,7 @@ setup_create_ecal (MemosComponent *component, MemosComponentView *component_view /* Save the primary source for use elsewhere */ calendar_config_set_primary_memos (e_source_peek_uid (source)); - return priv->create_ecal ; + return priv->create_ecal; } /* Ensures the calendar is selected */ diff --git a/calendar/gui/memos-control.c b/calendar/gui/memos-control.c index a12d9e2935..46719a55fe 100644 --- a/calendar/gui/memos-control.c +++ b/calendar/gui/memos-control.c @@ -53,10 +53,10 @@ static void memos_control_activate_cb (BonoboControl *control, gpointer user_data); static void memos_control_open_memo_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void memos_control_new_memo_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void memos_control_cut_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path); @@ -68,13 +68,13 @@ static void memos_control_paste_cmd (BonoboUIComponent *uic, const gchar *path); static void memos_control_delete_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void memos_control_print_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void memos_control_print_preview_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); struct focus_changed_data { BonoboControl *control; @@ -296,7 +296,7 @@ memos_control_deactivate (BonoboControl *control, EMemos *memos) static void memos_control_open_memo_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { EMemos *memos; @@ -307,7 +307,7 @@ static void memos_control_open_memo_cmd (BonoboUIComponent *uic, static void memos_control_new_memo_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { EMemos *memos; @@ -365,7 +365,7 @@ memos_control_paste_cmd (BonoboUIComponent *uic, static void memos_control_delete_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { EMemos *memos; diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c index 6c5504afa3..6ebf17fd6c 100644 --- a/calendar/gui/migration.c +++ b/calendar/gui/migration.c @@ -207,7 +207,7 @@ dialog_set_progress (double percent) { gchar text[5]; - snprintf (text, sizeof (text), "%d%%", (int) (percent * 100.0f)); + snprintf (text, sizeof (text), "%d%%", (gint) (percent * 100.0f)); gtk_progress_bar_set_fraction (progress, percent); gtk_progress_bar_set_text (progress, text); @@ -243,7 +243,7 @@ get_source_name (ESourceGroup *group, const gchar *path) gboolean conflict; GString *s = g_string_new (NULL); - for (i = 0; p[i]; i ++) ; + for (i = 0; p[i]; i ++); num_elements = i; i--; @@ -644,9 +644,9 @@ migrate_pilot_data (const gchar *component, const gchar *conduit, const gchar *o ((ext = strrchr (dent, '.')) && !strcmp (ext, ".xml"))) { /* pilot map file - src and dest file formats are identical */ guchar inbuf[4096]; - size_t nread, nwritten; + gsize nread, nwritten; gint fd0, fd1; - ssize_t n; + gssize n; filename = g_build_filename (old_path, dent, NULL); if ((fd0 = g_open (filename, O_RDONLY|O_BINARY, 0)) == -1) { @@ -1140,7 +1140,7 @@ add_gw_esource (ESourceList *source_list, const gchar *group_name, const gchar { ESourceGroup *group; ESource *source; - GSList *ids, *temp ; + GSList *ids, *temp; GError *error = NULL; gchar *relative_uri; const gchar *soap_port; diff --git a/calendar/gui/misc.c b/calendar/gui/misc.c index 9fdf6f971b..36490c5463 100644 --- a/calendar/gui/misc.c +++ b/calendar/gui/misc.c @@ -55,7 +55,7 @@ string_is_empty (const gchar *value) if (value) { p = value; while (*p) { - if (!isspace ((unsigned char) *p)) { + if (!isspace ((guchar) *p)) { empty = FALSE; break; } @@ -123,7 +123,7 @@ calculate_time (time_t start, time_t end) } if (i == 0 || difference != 0) { /* TRANSLATORS: here, "second" is the time division (like "minute"), not the ordinal number (like "third") */ - times[i++] = g_strdup_printf (ngettext("%d second", "%d seconds", difference), (int)difference); + times[i++] = g_strdup_printf (ngettext("%d second", "%d seconds", difference), (gint)difference); } times[i] = NULL; diff --git a/calendar/gui/print.c b/calendar/gui/print.c index 659897bda6..6931474349 100644 --- a/calendar/gui/print.c +++ b/calendar/gui/print.c @@ -241,7 +241,7 @@ build_month (gint month, gint year, gint *days, gint *start, gint *end) /* Note that months are zero-based, so September is month 8 */ if ((year == 1752) && (month == 8)) { - memcpy (days, sept_1752, 42 * sizeof (int)); + memcpy (days, sept_1752, 42 * sizeof (gint)); if (start) *start = SEPT_1752_START; @@ -817,7 +817,7 @@ print_day_background (GtkPrintContext *context, GnomeCalendar *gcal, row = 0; hour_minute_x = left + width * 0.58; for (i = pdi->start_hour; i < pdi->end_hour; i++) { - y = top + yinc * (row + 1) ; + y = top + yinc * (row + 1); cr = gtk_print_context_get_cairo_context (context); cairo_set_source_rgb (cr, 0, 0, 0); @@ -2635,7 +2635,7 @@ print_comp_draw_real (GtkPrintOperation *operation, categories); top = bound_text (context, font, categories_string, -1, 0.0, top, width, height, TRUE, &page_start, &pages); - top += get_font_size (font) - 6 ; + top += get_font_size (font) - 6; g_free (categories_string); } diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index e848b9b468..7d98e7c305 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -761,7 +761,7 @@ setup_create_ecal (TasksComponent *component, TasksComponentView *component_view /* Save the primary source for use elsewhere */ calendar_config_set_primary_tasks (e_source_peek_uid (source)); - return priv->create_ecal ; + return priv->create_ecal; } /* Ensures the calendar is selected */ @@ -1049,7 +1049,7 @@ impl_handleURI (PortableServer_Servant servant, const gchar *uri, CORBA_Environm EUri *euri = e_uri_new (uri); const gchar *p; gchar *header, *content; - size_t len, clen; + gsize len, clen; p = euri->query; if (p) { diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c index 15a4e38db7..e5109da7a0 100644 --- a/calendar/gui/tasks-control.c +++ b/calendar/gui/tasks-control.c @@ -55,10 +55,10 @@ static void tasks_control_activate_cb (BonoboControl *control, gpointer user_data); static void tasks_control_open_task_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_new_task_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_cut_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path); @@ -70,19 +70,19 @@ static void tasks_control_paste_cmd (BonoboUIComponent *uic, const gchar *path); static void tasks_control_delete_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_complete_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_purge_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_print_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_print_preview_cmd (BonoboUIComponent *uic, gpointer data, - const char *path); + const gchar *path); static void tasks_control_assign_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path); @@ -377,7 +377,7 @@ tasks_control_deactivate (BonoboControl *control, ETasks *tasks) static void tasks_control_open_task_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; @@ -388,7 +388,7 @@ static void tasks_control_open_task_cmd (BonoboUIComponent *uic, static void tasks_control_new_task_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; @@ -447,7 +447,7 @@ tasks_control_paste_cmd (BonoboUIComponent *uic, static void tasks_control_delete_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; @@ -458,7 +458,7 @@ tasks_control_delete_cmd (BonoboUIComponent *uic, static void tasks_control_complete_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; @@ -503,7 +503,7 @@ confirm_purge (ETasks *tasks) static void tasks_control_purge_cmd (BonoboUIComponent *uic, gpointer data, - const char *path) + const gchar *path) { ETasks *tasks; |