aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ruby-mwdom
Commit message (Expand)AuthorAgeFilesLines
* Fix MASTER_SITESerwin2006-12-011-1/+1
* Update WWWehaupt2006-03-151-1/+1
* - Add SHA256pav2005-11-261-0/+1
* With portmgr hat on, reset maintainership of knu's ports since he haslinimon2005-11-111-1/+1
* Add SIZE data.knu2004-03-221-0/+1
* De-pkg-comment.knu2003-02-182-1/+1
* Make these ports depend on ruby-xmlscan-old instead of ruby-xmlscan.knu2003-02-011-1/+1
* Catch up with the Ruby Application Archive's URL scheme change.knu2002-12-081-1/+1
* Use RUBY_MOD*.knu2002-10-072-11/+11
* Add ruby-mwdom, DOM level2 module, XMLWriter and XHTMLWriter for Ruby.knu2001-08-225-0/+56
width: 0.7%;'/> -rw-r--r--a11y/e-table/gal-a11y-e-cell-popup.h6
-rw-r--r--a11y/e-table/gal-a11y-e-cell-registry.c6
-rw-r--r--a11y/e-table/gal-a11y-e-cell-registry.h12
-rw-r--r--a11y/e-table/gal-a11y-e-cell-text.c18
-rw-r--r--a11y/e-table/gal-a11y-e-cell-text.h6
-rw-r--r--a11y/e-table/gal-a11y-e-cell-toggle.c6
-rw-r--r--a11y/e-table/gal-a11y-e-cell-toggle.h6
-rw-r--r--a11y/e-table/gal-a11y-e-cell-tree.c6
-rw-r--r--a11y/e-table/gal-a11y-e-cell-tree.h8
-rw-r--r--a11y/e-table/gal-a11y-e-cell-vbox.c8
-rw-r--r--a11y/e-table/gal-a11y-e-cell-vbox.h8
-rw-r--r--a11y/e-table/gal-a11y-e-cell.c22
-rw-r--r--a11y/e-table/gal-a11y-e-cell.h18
-rw-r--r--a11y/e-table/gal-a11y-e-table-click-to-add.c6
-rw-r--r--a11y/e-table/gal-a11y-e-table-column-header.c4
-rw-r--r--a11y/e-table/gal-a11y-e-table-item.c40
-rw-r--r--a11y/e-table/gal-a11y-e-table.c4
-rw-r--r--a11y/e-table/gal-a11y-e-tree.c2
-rw-r--r--a11y/e-text/gal-a11y-e-text.c68
-rw-r--r--a11y/ea-cell-table.c8
-rw-r--r--a11y/ea-cell-table.h4
-rw-r--r--a11y/ea-factory.h2
-rw-r--r--a11y/gal-a11y-factory.h2
-rw-r--r--a11y/gal-a11y-util.h2
-rw-r--r--a11y/widgets/ea-calendar-cell.c10
-rw-r--r--a11y/widgets/ea-calendar-item.c16
-rw-r--r--a11y/widgets/ea-combo-button.c2
-rw-r--r--addressbook/conduit/address-conduit.c170
-rw-r--r--addressbook/gui/component/addressbook-component.c42
-rw-r--r--addressbook/gui/component/addressbook-component.h2
-rw-r--r--addressbook/gui/component/addressbook-config.c106
-rw-r--r--addressbook/gui/component/addressbook-migrate.c132
-rw-r--r--addressbook/gui/component/addressbook-migrate.h2
-rw-r--r--addressbook/gui/component/addressbook-view.c104
-rw-r--r--addressbook/gui/component/addressbook-view.h4
-rw-r--r--addressbook/gui/component/addressbook.c12
-rw-r--r--addressbook/gui/component/autocompletion-config.c4
-rw-r--r--addressbook/gui/component/component-factory.c4
-rw-r--r--addressbook/gui/component/openldap-extract.h190
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor-fullname.c6
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c104
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.h2
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c2
-rw-r--r--addressbook/gui/contact-editor/eab-editor.c4
-rw-r--r--addressbook/gui/contact-editor/eab-editor.h2
-rw-r--r--addressbook/gui/contact-editor/test-editor.c16
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-editor.c2
-rw-r--r--addressbook/gui/merging/eab-contact-compare.c8
-rw-r--r--addressbook/gui/merging/eab-contact-merging.c40
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c28
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.h18
-rw-r--r--addressbook/gui/widgets/e-addressbook-reflow-adapter.c34
-rw-r--r--addressbook/gui/widgets/e-addressbook-reflow-adapter.h2
-rw-r--r--addressbook/gui/widgets/e-addressbook-table-adapter.c48
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c104
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.h2
-rw-r--r--addressbook/gui/widgets/e-minicard-label.c4
-rw-r--r--addressbook/gui/widgets/e-minicard-view-widget.c4
-rw-r--r--addressbook/gui/widgets/e-minicard-view-widget.h2
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c24
-rw-r--r--addressbook/gui/widgets/e-minicard.c66
-rw-r--r--addressbook/gui/widgets/e-minicard.h6
-rw-r--r--addressbook/gui/widgets/eab-config.c4
-rw-r--r--addressbook/gui/widgets/eab-config.h2
-rw-r--r--addressbook/gui/widgets/eab-contact-display.c98
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c76
-rw-r--r--addressbook/gui/widgets/eab-gui-util.h8
-rw-r--r--addressbook/gui/widgets/eab-menu.c16
-rw-r--r--addressbook/gui/widgets/eab-menu.h4
-rw-r--r--addressbook/gui/widgets/eab-popup-control.c2
-rw-r--r--addressbook/gui/widgets/eab-popup.c18
-rw-r--r--addressbook/gui/widgets/eab-popup.h12
-rw-r--r--addressbook/gui/widgets/gal-view-factory-minicard.c6
-rw-r--r--addressbook/gui/widgets/gal-view-minicard.c18
-rw-r--r--addressbook/gui/widgets/gal-view-minicard.h2
-rw-r--r--addressbook/importers/evolution-csv-importer.c34
-rw-r--r--addressbook/importers/evolution-ldif-importer.c44
-rw-r--r--addressbook/importers/evolution-vcard-importer.c32
-rw-r--r--addressbook/printing/e-contact-print.c60
-rw-r--r--addressbook/printing/test-print.c4
-rw-r--r--addressbook/tools/evolution-addressbook-export-list-cards.c14
-rw-r--r--addressbook/tools/evolution-addressbook-export-list-folders.c4
-rw-r--r--addressbook/tools/evolution-addressbook-export.c12
-rw-r--r--addressbook/util/eab-book-util.c54
-rw-r--r--addressbook/util/eab-book-util.h18
-rw-r--r--calendar/common/authentication.c20
-rw-r--r--calendar/common/authentication.h2
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c116
-rw-r--r--calendar/conduits/common/libecalendar-common-conduit.c62
-rw-r--r--calendar/conduits/common/libecalendar-common-conduit.h18
-rw-r--r--calendar/conduits/memo/memo-conduit.c86
-rw-r--r--calendar/conduits/todo/todo-conduit.c106
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.c16
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.h6
-rw-r--r--calendar/gui/alarm-notify/alarm-notify.c28
-rw-r--r--calendar/gui/alarm-notify/alarm-notify.h2
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c58
-rw-r--r--calendar/gui/alarm-notify/config-data.c18
-rw-r--r--calendar/gui/alarm-notify/config-data.h8
-rw-r--r--calendar/gui/alarm-notify/notify-main.c8
-rw-r--r--calendar/gui/alarm-notify/util.c16
-rw-r--r--calendar/gui/alarm-notify/util.h4
-rw-r--r--calendar/gui/cal-search-bar.c60
-rw-r--r--calendar/gui/cal-search-bar.h6
-rw-r--r--calendar/gui/calendar-commands.c30
-rw-r--r--calendar/gui/calendar-component.c116
-rw-r--r--calendar/gui/calendar-component.h4
-rw-r--r--calendar/gui/calendar-config.c62
-rw-r--r--calendar/gui/calendar-config.h36
-rw-r--r--calendar/gui/calendar-view-factory.c12
-rw-r--r--calendar/gui/calendar-view.c28
-rw-r--r--calendar/gui/calendar-view.h4
-rw-r--r--calendar/gui/comp-editor-factory.c14
-rw-r--r--calendar/gui/comp-util.c44
-rw-r--r--calendar/gui/comp-util.h2
-rw-r--r--calendar/gui/dialogs/alarm-dialog.c62
-rw-r--r--calendar/gui/dialogs/alarm-list-dialog.c6
-rw-r--r--calendar/gui/dialogs/cal-attachment-select-file.c10
-rw-r--r--calendar/gui/dialogs/cal-attachment-select-file.h4
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c46
-rw-r--r--calendar/gui/dialogs/calendar-setup.c46
-rw-r--r--calendar/gui/dialogs/cancel-comp.c2
-rw-r--r--calendar/gui/dialogs/changed-comp.c2
-rw-r--r--calendar/gui/dialogs/comp-editor-page.c2
-rw-r--r--calendar/gui/dialogs/comp-editor-page.h4
-rw-r--r--calendar/gui/dialogs/comp-editor-util.c20
-rw-r--r--calendar/gui/dialogs/comp-editor-util.h2
-rw-r--r--calendar/gui/dialogs/comp-editor.c50
-rw-r--r--calendar/gui/dialogs/copy-source-dialog.c6
-rw-r--r--calendar/gui/dialogs/delete-comp.c12
-rw-r--r--calendar/gui/dialogs/delete-comp.h4
-rw-r--r--calendar/gui/dialogs/delete-error.c2
-rw-r--r--calendar/gui/dialogs/e-delegate-dialog.c16
-rw-r--r--calendar/gui/dialogs/e-delegate-dialog.h14
-rw-r--r--calendar/gui/dialogs/e-send-options-utils.c24
-rw-r--r--calendar/gui/dialogs/event-editor.c4
-rw-r--r--calendar/gui/dialogs/event-page.c88
-rw-r--r--calendar/gui/dialogs/memo-page.c40
-rw-r--r--calendar/gui/dialogs/recur-comp.c2
-rw-r--r--calendar/gui/dialogs/recurrence-page.c58
-rw-r--r--calendar/gui/dialogs/schedule-page.c2
-rw-r--r--calendar/gui/dialogs/select-source-dialog.c6
-rw-r--r--calendar/gui/dialogs/send-comp.c6
-rw-r--r--calendar/gui/dialogs/task-details-page.c18
-rw-r--r--calendar/gui/dialogs/task-editor.c2
-rw-r--r--calendar/gui/dialogs/task-page.c54
-rw-r--r--calendar/gui/e-alarm-list.c10
-rw-r--r--calendar/gui/e-cal-component-memo-preview.c24
-rw-r--r--calendar/gui/e-cal-component-memo-preview.h2
-rw-r--r--calendar/gui/e-cal-component-preview.c32
-rw-r--r--calendar/gui/e-cal-component-preview.h4
-rw-r--r--calendar/gui/e-cal-config.c4
-rw-r--r--calendar/gui/e-cal-config.h2
-rw-r--r--calendar/gui/e-cal-event.c4
-rw-r--r--calendar/gui/e-cal-list-view.c6
-rw-r--r--calendar/gui/e-cal-menu.c12
-rw-r--r--calendar/gui/e-cal-menu.h2
-rw-r--r--calendar/gui/e-cal-model-calendar.c72
-rw-r--r--calendar/gui/e-cal-model-memos.c48
-rw-r--r--calendar/gui/e-cal-model-tasks.c116
-rw-r--r--calendar/gui/e-cal-model.c152
-rw-r--r--calendar/gui/e-cal-model.h10
-rw-r--r--calendar/gui/e-cal-popup.c32
-rw-r--r--calendar/gui/e-cal-popup.h2
-rw-r--r--calendar/gui/e-calendar-table.c178
-rw-r--r--calendar/gui/e-calendar-table.h2
-rw-r--r--calendar/gui/e-calendar-view.c150
-rw-r--r--calendar/gui/e-calendar-view.h16
-rw-r--r--calendar/gui/e-cell-date-edit-config.c2
-rw-r--r--calendar/gui/e-cell-date-edit-text.c16
-rw-r--r--calendar/gui/e-cell-date-edit-text.h2
-rw-r--r--calendar/gui/e-comp-editor-registry.c6
-rw-r--r--calendar/gui/e-comp-editor-registry.h2
-rw-r--r--calendar/gui/e-date-edit-config.c2
-rw-r--r--calendar/gui/e-date-time-list.c4
-rw-r--r--calendar/gui/e-day-view-config.c14
-rw-r--r--calendar/gui/e-day-view-main-item.c56
-rw-r--r--calendar/gui/e-day-view-time-item.c20
-rw-r--r--calendar/gui/e-day-view-top-item.c8
-rw-r--r--calendar/gui/e-day-view.c92
-rw-r--r--calendar/gui/e-day-view.h8
-rw-r--r--calendar/gui/e-itip-control.c108
-rw-r--r--calendar/gui/e-meeting-attendee.c4
-rw-r--r--calendar/gui/e-meeting-list-view.c78
-rw-r--r--calendar/gui/e-meeting-store.c78
-rw-r--r--calendar/gui/e-meeting-store.h4
-rw-r--r--calendar/gui/e-meeting-time-sel-item.c44
-rw-r--r--calendar/gui/e-meeting-time-sel.c26
-rw-r--r--calendar/gui/e-meeting-time-sel.h6
-rw-r--r--calendar/gui/e-memo-table.c56
-rw-r--r--calendar/gui/e-memos.c52
-rw-r--r--calendar/gui/e-memos.h2
-rw-r--r--calendar/gui/e-mini-calendar-config.c2
-rw-r--r--calendar/gui/e-tasks.c80
-rw-r--r--calendar/gui/e-tasks.h8
-rw-r--r--calendar/gui/e-timezone-entry.c4
-rw-r--r--calendar/gui/e-week-view-config.c2
-rw-r--r--calendar/gui/e-week-view-event-item.c6
-rw-r--r--calendar/gui/e-week-view-layout.c4
-rw-r--r--calendar/gui/e-week-view-main-item.c2
-rw-r--r--calendar/gui/e-week-view-titles-item.c2
-rw-r--r--calendar/gui/e-week-view.c60
-rw-r--r--calendar/gui/gnome-cal.c116
-rw-r--r--calendar/gui/gnome-cal.h10
-rw-r--r--calendar/gui/goto.c4
-rw-r--r--calendar/gui/itip-bonobo-control.c12
-rw-r--r--calendar/gui/itip-utils.c98
-rw-r--r--calendar/gui/itip-utils.h14
-rw-r--r--calendar/gui/main.c4
-rw-r--r--calendar/gui/memos-component.c82
-rw-r--r--calendar/gui/memos-component.h4
-rw-r--r--calendar/gui/memos-control.c18
-rw-r--r--calendar/gui/memos-control.h2
-rw-r--r--calendar/gui/migration.c102
-rw-r--r--calendar/gui/migration.h6
-rw-r--r--calendar/gui/misc.c22
-rw-r--r--calendar/gui/misc.h6
-rw-r--r--calendar/gui/print.c140
-rw-r--r--calendar/gui/tag-calendar.c2
-rw-r--r--calendar/gui/tasks-component.c96
-rw-r--r--calendar/gui/tasks-component.h4
-rw-r--r--calendar/gui/tasks-control.c38
-rw-r--r--calendar/gui/tasks-control.h2
-rw-r--r--calendar/gui/weekday-picker.c44
-rw-r--r--calendar/gui/weekday-picker.h4
-rw-r--r--calendar/importers/icalendar-importer.c42
-rw-r--r--calendar/importers/main.c2
-rw-r--r--composer/e-composer-header.c2
-rw-r--r--composer/e-msg-composer.c14
-rw-r--r--e-util/e-bconf-map.c154
-rw-r--r--e-util/e-bconf-map.h24
-rw-r--r--e-util/e-bit-array.c72
-rw-r--r--e-util/e-bit-array.h30
-rw-r--r--e-util/e-categories-config.c10
-rw-r--r--e-util/e-categories-config.h2
-rw-r--r--e-util/e-config-listener.c48
-rw-r--r--e-util/e-config-listener.h36
-rw-r--r--e-util/e-config.c78
-rw-r--r--e-util/e-config.h52
-rw-r--r--e-util/e-corba-utils.c4
-rw-r--r--e-util/e-corba-utils.h4
-rw-r--r--e-util/e-dialog-utils.c48
-rw-r--r--e-util/e-dialog-utils.h14
-rw-r--r--e-util/e-dialog-widgets.c64
-rw-r--r--e-util/e-dialog-widgets.h16
-rw-r--r--e-util/e-error.c98
-rw-r--r--e-util/e-error.h8
-rw-r--r--e-util/e-event.c46
-rw-r--r--e-util/e-event.h28
-rw-r--r--e-util/e-folder-map.c22
-rw-r--r--e-util/e-fsutils.c10
-rw-r--r--e-util/e-fsutils.h4
-rw-r--r--e-util/e-html-utils.c106
-rw-r--r--e-util/e-html-utils.h4
-rw-r--r--e-util/e-icon-factory.c24
-rw-r--r--e-util/e-import.c36
-rw-r--r--e-util/e-import.h52
-rw-r--r--e-util/e-menu.c64
-rw-r--r--e-util/e-menu.h54
-rw-r--r--e-util/e-mktemp.c28
-rw-r--r--e-util/e-mktemp.h6
-rw-r--r--e-util/e-non-intrusive-error-dialog.c24
-rw-r--r--e-util/e-non-intrusive-error-dialog.h6
-rw-r--r--e-util/e-pilot-map.c74
-rw-r--r--e-util/e-pilot-map.h14
-rw-r--r--e-util/e-pilot-util.c16
-rw-r--r--e-util/e-pilot-util.h4
-rw-r--r--e-util/e-plugin.c168
-rw-r--r--e-util/e-plugin.h74
-rw-r--r--e-util/e-popup.c50
-rw-r--r--e-util/e-popup.h34
-rw-r--r--e-util/e-profile-event.c10
-rw-r--r--e-util/e-profile-event.h8
-rw-r--r--e-util/e-request.c10
-rw-r--r--e-util/e-request.h8
-rw-r--r--e-util/e-signature-list.c14
-rw-r--r--e-util/e-signature-list.h2
-rw-r--r--e-util/e-signature.c66
-rw-r--r--e-util/e-signature.h14
-rw-r--r--e-util/e-sorter-array.c40
-rw-r--r--e-util/e-sorter-array.h14
-rw-r--r--e-util/e-sorter.c24
-rw-r--r--e-util/e-sorter.h24
-rw-r--r--e-util/e-util-labels.c58
-rw-r--r--e-util/e-util-labels.h18
-rw-r--r--e-util/e-util-private.h40
-rw-r--r--e-util/e-util.c42
-rw-r--r--e-util/e-util.h6
-rw-r--r--e-util/e-win32-reloc.c52
-rw-r--r--e-util/e-xml-utils.c48
-rw-r--r--e-util/gconf-bridge.c36
-rw-r--r--e-util/gconf-bridge.h8
-rw-r--r--filter/filter-code.c6
-rw-r--r--filter/filter-colour.c30
-rw-r--r--filter/filter-datespec.c56
-rw-r--r--filter/filter-element.c16
-rw-r--r--filter/filter-element.h8
-rw-r--r--filter/filter-file.c32
-rw-r--r--filter/filter-file.h8
-rw-r--r--filter/filter-input.c44
-rw-r--r--filter/filter-input.h6
-rw-r--r--filter/filter-int.c30
-rw-r--r--filter/filter-int.h12
-rw-r--r--filter/filter-option.c54
-rw-r--r--filter/filter-option.h16
-rw-r--r--filter/filter-part.c48
-rw-r--r--filter/filter-part.h18
-rw-r--r--filter/filter-rule.c98
-rw-r--r--filter/filter-rule.h26
-rw-r--r--filter/rule-context.c112
-rw-r--r--filter/rule-context.h52
-rw-r--r--filter/rule-editor.c52
-rw-r--r--filter/rule-editor.h18
-rw-r--r--iconv-detect.c18
-rw-r--r--mail/e-searching-tokenizer.c150
-rw-r--r--mail/e-searching-tokenizer.h10
-rw-r--r--mail/em-account-editor.c346
-rw-r--r--mail/em-account-editor.h8
-rw-r--r--mail/em-account-prefs.c26
-rw-r--r--mail/em-composer-prefs.c10
-rw-r--r--mail/em-composer-utils.c228
-rw-r--r--mail/em-composer-utils.h30
-rw-r--r--mail/em-config.c10
-rw-r--r--mail/em-config.h6
-rw-r--r--mail/em-event.c12
-rw-r--r--mail/em-event.h18
-rw-r--r--mail/em-filter-context.c24
-rw-r--r--mail/em-filter-context.h4
-rw-r--r--mail/em-filter-editor.c10
-rw-r--r--mail/em-filter-folder-element.c34
-rw-r--r--mail/em-filter-folder-element.h4
-rw-r--r--mail/em-filter-i18n.h148
-rw-r--r--mail/em-filter-rule.c30
-rw-r--r--mail/em-filter-source-element.c46
-rw-r--r--mail/em-filter-source-element.h2
-rw-r--r--mail/em-folder-browser.c164
-rw-r--r--mail/em-folder-properties.c42
-rw-r--r--mail/em-folder-properties.h2
-rw-r--r--mail/em-folder-selection-button.c22
-rw-r--r--mail/em-folder-selection-button.h6
-rw-r--r--mail/em-folder-selection.c12
-rw-r--r--mail/em-folder-selection.h6
-rw-r--r--mail/em-folder-selector.c40
-rw-r--r--mail/em-folder-selector.h18
-rw-r--r--mail/em-folder-tree-model.c160
-rw-r--r--mail/em-folder-tree-model.h48
-rw-r--r--mail/em-folder-tree.c180
-rw-r--r--mail/em-folder-tree.h16
-rw-r--r--mail/em-folder-utils.c70
-rw-r--r--mail/em-folder-utils.h4
-rw-r--r--mail/em-folder-view.c356
-rw-r--r--mail/em-folder-view.h30
-rw-r--r--mail/em-format-hook.c10
-rw-r--r--mail/em-format-hook.h4
-rw-r--r--mail/em-format-html-display.c120
-rw-r--r--mail/em-format-html-display.h18
-rw-r--r--mail/em-format-html-print.c4
-rw-r--r--mail/em-format-html.c180
-rw-r--r--mail/em-format-html.h32
-rw-r--r--mail/em-format-quote.c52
-rw-r--r--mail/em-format-quote.h2
-rw-r--r--mail/em-format.c104
-rw-r--r--mail/em-format.h52
-rw-r--r--mail/em-html-stream.c8
-rw-r--r--mail/em-icon-stream.c40
-rw-r--r--mail/em-icon-stream.h10
-rw-r--r--mail/em-inline-filter.c36
-rw-r--r--mail/em-inline-filter.h4
-rw-r--r--mail/em-junk-hook.c20
-rw-r--r--mail/em-junk-hook.h14
-rw-r--r--mail/em-mailer-prefs.c126
-rw-r--r--mail/em-mailer-prefs.h6
-rw-r--r--mail/em-menu.c16
-rw-r--r--mail/em-menu.h6
-rw-r--r--mail/em-migrate.c398
-rw-r--r--mail/em-migrate.h2
-rw-r--r--mail/em-network-prefs.c30
-rw-r--r--mail/em-popup.c68
-rw-r--r--mail/em-popup.h18
-rw-r--r--mail/em-search-context.c4
-rw-r--r--mail/em-stripsig-filter.c26
-rw-r--r--mail/em-subscribe-editor.c60
-rw-r--r--mail/em-utils.c230
-rw-r--r--mail/em-utils.h40
-rw-r--r--mail/em-vfolder-context.c4
-rw-r--r--mail/em-vfolder-editor.c2
-rw-r--r--mail/em-vfolder-rule.c88
-rw-r--r--mail/em-vfolder-rule.h8
-rw-r--r--mail/importers/elm-importer.c38
-rw-r--r--mail/importers/evolution-mbox-importer.c26
-rw-r--r--mail/importers/mail-importer.c56
-rw-r--r--mail/importers/mail-importer.h18
-rw-r--r--mail/importers/pine-importer.c28
-rw-r--r--mail/mail-autofilter.c86
-rw-r--r--mail/mail-autofilter.h12
-rw-r--r--mail/mail-component-factory.c6
-rw-r--r--mail/mail-component.c144
-rw-r--r--mail/mail-component.h18
-rw-r--r--mail/mail-config-factory.c2
-rw-r--r--mail/mail-config-factory.h2
-rw-r--r--mail/mail-config.c114
-rw-r--r--mail/mail-config.h40
-rw-r--r--mail/mail-folder-cache.c108
-rw-r--r--mail/mail-folder-cache.h8
-rw-r--r--mail/mail-mt.c122
-rw-r--r--mail/mail-mt.h22
-rw-r--r--mail/mail-ops.c336
-rw-r--r--mail/mail-ops.h142
-rw-r--r--mail/mail-send-recv.c76
-rw-r--r--mail/mail-session.c112
-rw-r--r--mail/mail-session.h24
-rw-r--r--mail/mail-tools.c54
-rw-r--r--mail/mail-tools.h12
-rw-r--r--mail/mail-vfolder.c116
-rw-r--r--mail/mail-vfolder.h14
-rw-r--r--mail/message-list.c404
-rw-r--r--mail/message-list.h34
-rw-r--r--mail/message-tag-followup.c22
-rw-r--r--mail/message-tag-followup.h4
-rw-r--r--plugins/addressbook-file/addressbook-file.c4
-rw-r--r--plugins/attachment-reminder/attachment-reminder.c18
-rw-r--r--plugins/audio-inline/audio-inline.c18
-rw-r--r--plugins/backup-restore/backup-restore.c38
-rw-r--r--plugins/backup-restore/backup.c58
-rw-r--r--plugins/bbdb/bbdb.c34
-rw-r--r--plugins/bbdb/bbdb.h2
-rw-r--r--plugins/bbdb/gaimbuddies.c76
-rw-r--r--plugins/bbdb/test-evobuddy.c2
-rw-r--r--plugins/bogo-junk-plugin/bf-junk-filter.c18
-rw-r--r--plugins/caldav/caldav-source.c48
-rw-r--r--plugins/calendar-file/calendar-file.c4
-rw-r--r--plugins/calendar-http/calendar-http.c38
-rw-r--r--plugins/calendar-weather/calendar-weather.c60
-rw-r--r--plugins/copy-tool/copy-tool.c8
-rw-r--r--plugins/default-source/default-source.c6
-rw-r--r--plugins/email-custom-header/email-custom-header.c26
-rw-r--r--plugins/email-custom-header/email-custom-header.h2
-rw-r--r--plugins/exchange-operations/exchange-account-setup.c82
-rw-r--r--plugins/exchange-operations/exchange-calendar.c30
-rw-r--r--plugins/exchange-operations/exchange-change-password.c10
-rw-r--r--plugins/exchange-operations/exchange-change-password.h2
-rw-r--r--plugins/exchange-operations/exchange-config-listener.c96
-rw-r--r--plugins/exchange-operations/exchange-config-listener.h8
-rw-r--r--plugins/exchange-operations/exchange-contacts.c36
-rw-r--r--plugins/exchange-operations/exchange-delegates-user.c34
-rw-r--r--plugins/exchange-operations/exchange-delegates-user.h6
-rw-r--r--plugins/exchange-operations/exchange-delegates.c72
-rw-r--r--plugins/exchange-operations/exchange-delegates.h2
-rw-r--r--plugins/exchange-operations/exchange-folder-permission.c28
-rw-r--r--plugins/exchange-operations/exchange-folder-size-display.c12
-rw-r--r--plugins/exchange-operations/exchange-folder-size-display.h2
-rw-r--r--plugins/exchange-operations/exchange-folder-subscription.c14
-rw-r--r--plugins/exchange-operations/exchange-folder.c60
-rw-r--r--plugins/exchange-operations/exchange-mail-send-options.c10
-rw-r--r--plugins/exchange-operations/exchange-operations.c26
-rw-r--r--plugins/exchange-operations/exchange-operations.h10
-rw-r--r--plugins/exchange-operations/exchange-permissions-dialog.c34
-rw-r--r--plugins/exchange-operations/exchange-send-options.c8
-rw-r--r--plugins/exchange-operations/exchange-send-options.h6
-rw-r--r--plugins/exchange-operations/exchange-user-dialog.c12
-rw-r--r--plugins/exchange-operations/exchange-user-dialog.h6
-rw-r--r--plugins/external-editor/external-editor.c8
-rw-r--r--plugins/face/face.c4
-rw-r--r--plugins/folder-unsubscribe/folder-unsubscribe.c4
-rw-r--r--plugins/google-account-setup/google-contacts-source.c24
-rw-r--r--plugins/google-account-setup/google-source.c78
-rw-r--r--plugins/groupwise-account-setup/camel-gw-listener.c106
-rw-r--r--plugins/groupwise-account-setup/groupwise-account-setup.c10
-rw-r--r--plugins/groupwise-features/addressbook-groupwise.c4
-rw-r--r--plugins/groupwise-features/install-shared.c24
-rw-r--r--plugins/groupwise-features/junk-mail-settings.c12
-rw-r--r--plugins/groupwise-features/junk-settings.c16
-rw-r--r--plugins/groupwise-features/mail-retract.c16
-rw-r--r--plugins/groupwise-features/mail-send-options.c8
-rw-r--r--plugins/groupwise-features/process-meeting.c60
-rw-r--r--plugins/groupwise-features/proxy-login.c52
-rw-r--r--plugins/groupwise-features/proxy-login.h10
-rw-r--r--plugins/groupwise-features/proxy.c38
-rw-r--r--plugins/groupwise-features/proxy.h2
-rw-r--r--plugins/groupwise-features/send-options.c22
-rw-r--r--plugins/groupwise-features/share-folder-common.c50
-rw-r--r--plugins/groupwise-features/share-folder.c16
-rw-r--r--plugins/groupwise-features/status-track.c24
-rw-r--r--plugins/hula-account-setup/camel-hula-listener.c40
-rw-r--r--plugins/hula-account-setup/hula-account-setup.c6
-rw-r--r--plugins/imap-features/imap-headers.c12
-rw-r--r--plugins/ipod-sync/evolution-ipod-sync.c4
-rw-r--r--plugins/ipod-sync/evolution-ipod-sync.h6
-rw-r--r--plugins/ipod-sync/format-handler.h4
-rw-r--r--plugins/ipod-sync/ical-format.c6
-rw-r--r--plugins/ipod-sync/ipod-sync.c12
-rw-r--r--plugins/ipod-sync/ipod.c34
-rw-r--r--plugins/ipod-sync/sync.c16
-rw-r--r--plugins/itip-formatter/itip-formatter.c138
-rw-r--r--plugins/itip-formatter/itip-view.c112
-rw-r--r--plugins/itip-formatter/itip-view.h58
-rw-r--r--plugins/mail-account-disable/mail-account-disable.c6
-rw-r--r--plugins/mail-notification/mail-notification.c26
-rw-r--r--plugins/mail-to-task/mail-to-task.c88
-rw-r--r--plugins/mailing-list-actions/mailing-list-actions.c20
-rw-r--r--plugins/mark-all-read/mark-all-read.c6
-rw-r--r--plugins/mono/mono-plugin.c24
-rw-r--r--plugins/mono/mono-plugin.h6
-rw-r--r--plugins/plugin-manager/plugin-manager.c30
-rw-r--r--plugins/prefer-plain/prefer-plain.c34
-rw-r--r--plugins/profiler/profiler.c2
-rw-r--r--plugins/pst-import/pst-importer.c92
-rw-r--r--plugins/publish-calendar/publish-calendar.c30
-rw-r--r--plugins/publish-calendar/publish-format-fb.c6
-rw-r--r--plugins/publish-calendar/publish-format-ical.c6
-rw-r--r--plugins/publish-calendar/publish-location.c82
-rw-r--r--plugins/publish-calendar/publish-location.h8
-rw-r--r--plugins/publish-calendar/url-editor-dialog.c18
-rw-r--r--plugins/python/python-plugin-loader.c20
-rw-r--r--plugins/python/python-plugin-loader.h8
-rw-r--r--plugins/sa-junk-plugin/em-junk-filter.c76
-rw-r--r--plugins/save-calendar/csv-format.c20
-rw-r--r--plugins/save-calendar/format-handler.h4
-rw-r--r--plugins/save-calendar/ical-format.c10
-rw-r--r--plugins/save-calendar/rdf-format.c58
-rw-r--r--plugins/save-calendar/save-calendar.c8
-rw-r--r--plugins/startup-wizard/startup-wizard.c12
-rw-r--r--plugins/templates/templates.c42
-rw-r--r--plugins/tnef-attachments/tnef-plugin.c94
-rw-r--r--plugins/vcard-inline/vcard-inline.c4
-rw-r--r--plugins/webdav-account-setup/webdav-contacts-source.c20
-rw-r--r--shell/e-component-registry.c52
-rw-r--r--shell/e-component-registry.h20
-rw-r--r--shell/e-component-view.c8
-rw-r--r--shell/e-component-view.h10
-rw-r--r--shell/e-config-upgrade.c8
-rw-r--r--shell/e-config-upgrade.h2
-rw-r--r--shell/e-shell-importer.c36
-rw-r--r--shell/e-shell-nm.c4
-rw-r--r--shell/e-shell-settings-dialog.c40
-rw-r--r--shell/e-shell-settings-dialog.h2
-rw-r--r--shell/e-shell-view.c8
-rw-r--r--shell/e-shell-window-commands.c74
-rw-r--r--shell/e-shell-window.c58
-rw-r--r--shell/e-shell-window.h10
-rw-r--r--shell/e-shell.c78
-rw-r--r--shell/e-shell.h8
-rw-r--r--shell/e-sidebar.c48
-rw-r--r--shell/e-sidebar.h18
-rw-r--r--shell/e-user-creatable-items-handler.c90
-rw-r--r--shell/e-user-creatable-items-handler.h6
-rw-r--r--shell/es-event.c10
-rw-r--r--shell/es-event.h16
-rw-r--r--shell/es-menu.c6
-rw-r--r--shell/es-menu.h2
-rw-r--r--shell/evolution-listener.c2
-rw-r--r--shell/evolution-listener.h6
-rw-r--r--shell/evolution-shell-component-utils.c8
-rw-r--r--shell/evolution-shell-component-utils.h8
-rw-r--r--shell/importer/evolution-importer-client.c10
-rw-r--r--shell/importer/evolution-importer-client.h8
-rw-r--r--shell/importer/evolution-importer-listener.c6
-rw-r--r--shell/importer/evolution-importer-listener.h4
-rw-r--r--shell/importer/evolution-importer.c6
-rw-r--r--shell/importer/evolution-importer.h16
-rw-r--r--shell/importer/evolution-intelligent-importer.c18
-rw-r--r--shell/importer/evolution-intelligent-importer.h10
-rw-r--r--shell/importer/intelligent.c32
-rw-r--r--shell/main.c18
-rw-r--r--shell/test/evolution-test-component.c6
-rw-r--r--smime/gui/ca-trust-dialog.c4
-rw-r--r--smime/gui/cert-trust-dialog.c4
-rw-r--r--smime/gui/certificate-manager.c16
-rw-r--r--smime/gui/certificate-viewer.c12
-rw-r--r--smime/gui/component.c12
-rw-r--r--smime/gui/e-cert-selector.c8
-rw-r--r--smime/gui/e-cert-selector.h4
-rw-r--r--smime/lib/e-asn1-object.c36
-rw-r--r--smime/lib/e-asn1-object.h12
-rw-r--r--smime/lib/e-cert-db.c116
-rw-r--r--smime/lib/e-cert-db.h28
-rw-r--r--smime/lib/e-cert-trust.c10
-rw-r--r--smime/lib/e-cert-trust.h10
-rw-r--r--smime/lib/e-cert.c122
-rw-r--r--smime/lib/e-cert.h38
-rw-r--r--smime/lib/e-pkcs12.c46
-rw-r--r--smime/lib/e-pkcs12.h4
-rw-r--r--smime/tests/import-cert.c4
-rw-r--r--tools/killev.c34
-rw-r--r--widgets/e-timezone-dialog/e-timezone-dialog.c38
-rw-r--r--widgets/menus/gal-define-views-dialog.c18
-rw-r--r--widgets/menus/gal-define-views-model.c36
-rw-r--r--widgets/menus/gal-define-views-model.h6
-rw-r--r--widgets/menus/gal-view-collection.c114
-rw-r--r--widgets/menus/gal-view-collection.h58
-rw-r--r--widgets/menus/gal-view-etable.c10
-rw-r--r--widgets/menus/gal-view-etable.h2
-rw-r--r--widgets/menus/gal-view-factory-etable.c6
-rw-r--r--widgets/menus/gal-view-factory.c6
-rw-r--r--widgets/menus/gal-view-factory.h12
-rw-r--r--widgets/menus/gal-view-instance-save-as-dialog.c10
-rw-r--r--widgets/menus/gal-view-instance.c52
-rw-r--r--widgets/menus/gal-view-instance.h26
-rw-r--r--widgets/menus/gal-view-menus.c46
-rw-r--r--widgets/menus/gal-view-new-dialog.c2
-rw-r--r--widgets/menus/gal-view.c10
-rw-r--r--widgets/menus/gal-view.h20
-rw-r--r--widgets/misc/e-activity-handler.c68
-rw-r--r--widgets/misc/e-activity-handler.h18
-rw-r--r--widgets/misc/e-calendar-item.c22
-rw-r--r--widgets/misc/e-calendar-item.h2
-rw-r--r--widgets/misc/e-canvas-background.c10
-rw-r--r--widgets/misc/e-canvas-utils.c10
-rw-r--r--widgets/misc/e-canvas-vbox.c4
-rw-r--r--widgets/misc/e-canvas.c28
-rw-r--r--widgets/misc/e-canvas.h10
-rw-r--r--widgets/misc/e-cell-date-edit.c46
-rw-r--r--widgets/misc/e-cell-percent.c20
-rw-r--r--widgets/misc/e-cell-percent.h2
-rw-r--r--widgets/misc/e-charset-picker.c54
-rw-r--r--widgets/misc/e-charset-picker.h14
-rw-r--r--widgets/misc/e-colors.c2
-rw-r--r--widgets/misc/e-colors.h2
-rw-r--r--widgets/misc/e-combo-button.c16
-rw-r--r--widgets/misc/e-combo-button.h2
-rw-r--r--widgets/misc/e-combo-cell-editable.c2
-rw-r--r--widgets/misc/e-cursors.c16
-rw-r--r--widgets/misc/e-dateedit.c22
-rw-r--r--widgets/misc/e-dropdown-button.c14
-rw-r--r--widgets/misc/e-dropdown-button.h4
-rw-r--r--widgets/misc/e-filter-bar.c106
-rw-r--r--widgets/misc/e-filter-bar.h32
-rw-r--r--widgets/misc/e-gui-utils.c8
-rw-r--r--widgets/misc/e-gui-utils.h8
-rw-r--r--widgets/misc/e-icon-entry.c14
-rw-r--r--widgets/misc/e-icon-entry.h2
-rw-r--r--widgets/misc/e-image-chooser.c40
-rw-r--r--widgets/misc/e-image-chooser.h6
-rw-r--r--widgets/misc/e-info-label.c10
-rw-r--r--widgets/misc/e-info-label.h4
-rw-r--r--widgets/misc/e-map.c56
-rw-r--r--widgets/misc/e-multi-config-dialog.c20
-rw-r--r--widgets/misc/e-multi-config-dialog.h6
-rw-r--r--widgets/misc/e-popup-menu.c18
-rw-r--r--widgets/misc/e-popup-menu.h8
-rw-r--r--widgets/misc/e-reflow-model.c24
-rw-r--r--widgets/misc/e-reflow-model.h44
-rw-r--r--widgets/misc/e-reflow.c120
-rw-r--r--widgets/misc/e-reflow.h18
-rw-r--r--widgets/misc/e-search-bar.c112
-rw-r--r--widgets/misc/e-search-bar.h44
-rw-r--r--widgets/misc/e-selection-model-array.c44
-rw-r--r--widgets/misc/e-selection-model-array.h12
-rw-r--r--widgets/misc/e-selection-model-simple.c14
-rw-r--r--widgets/misc/e-selection-model-simple.h16
-rw-r--r--widgets/misc/e-selection-model.c58
-rw-r--r--widgets/misc/e-selection-model.h60
-rw-r--r--widgets/misc/e-send-options.c4
-rw-r--r--widgets/misc/e-spinner.c22
-rw-r--r--widgets/misc/e-task-bar.c16
-rw-r--r--widgets/misc/e-task-bar.h6
-rw-r--r--widgets/misc/e-task-widget.c24
-rw-r--r--widgets/misc/e-task-widget.h20
-rw-r--r--widgets/misc/e-unicode.c60
-rw-r--r--widgets/misc/e-url-entry.c2
-rw-r--r--widgets/misc/test-calendar.c4
-rw-r--r--widgets/misc/test-dateedit.c4
-rw-r--r--widgets/misc/test-dropdown-button.c8
-rw-r--r--widgets/misc/test-error.c4
-rw-r--r--widgets/misc/test-info-label.c4
-rw-r--r--widgets/misc/test-multi-config-dialog.c14
-rw-r--r--widgets/table/e-cell-checkbox.c4
-rw-r--r--widgets/table/e-cell-combo.c30
-rw-r--r--widgets/table/e-cell-date.c14
-rw-r--r--widgets/table/e-cell-date.h2
-rw-r--r--widgets/table/e-cell-hbox.c50
-rw-r--r--widgets/table/e-cell-hbox.h16
-rw-r--r--widgets/table/e-cell-number.c8
-rw-r--r--widgets/table/e-cell-number.h2
-rw-r--r--widgets/table/e-cell-pixbuf.c28
-rw-r--r--widgets/table/e-cell-pixbuf.h6
-rw-r--r--widgets/table/e-cell-popup.c56
-rw-r--r--widgets/table/e-cell-popup.h2
-rw-r--r--widgets/table/e-cell-size.c8
-rw-r--r--widgets/table/e-cell-size.h2
-rw-r--r--widgets/table/e-cell-text.c246
-rw-r--r--widgets/table/e-cell-text.h38
-rw-r--r--widgets/table/e-cell-toggle.c48
-rw-r--r--widgets/table/e-cell-toggle.h12
-rw-r--r--widgets/table/e-cell-tree.c78
-rw-r--r--widgets/table/e-cell-vbox.c76
-rw-r--r--widgets/table/e-cell-vbox.h10
-rw-r--r--widgets/table/e-cell.c74
-rw-r--r--widgets/table/e-cell.h146
-rw-r--r--widgets/table/e-table-click-to-add.c4
-rw-r--r--widgets/table/e-table-click-to-add.h2
-rw-r--r--widgets/table/e-table-col.c8
-rw-r--r--widgets/table/e-table-col.h40
-rw-r--r--widgets/table/e-table-column-specification.c62
-rw-r--r--widgets/table/e-table-column-specification.h20
-rw-r--r--widgets/table/e-table-column.c42
-rw-r--r--widgets/table/e-table-config-field.c10
-rw-r--r--widgets/table/e-table-config-field.h2
-rw-r--r--widgets/table/e-table-config.c78
-rw-r--r--widgets/table/e-table-config.h10
-rw-r--r--widgets/table/e-table-example-1.c46
-rw-r--r--widgets/table/e-table-example-2.c50
-rw-r--r--widgets/table/e-table-extras.c8
-rw-r--r--widgets/table/e-table-field-chooser-dialog.c2
-rw-r--r--widgets/table/e-table-field-chooser-item.c38
-rw-r--r--widgets/table/e-table-field-chooser-item.h8
-rw-r--r--widgets/table/e-table-group-container.c56
-rw-r--r--widgets/table/e-table-group-container.h12
-rw-r--r--widgets/table/e-table-group-leaf.c6
-rw-r--r--widgets/table/e-table-group-leaf.h16
-rw-r--r--widgets/table/e-table-group.c22
-rw-r--r--widgets/table/e-table-group.h54
-rw-r--r--widgets/table/e-table-header-item.c148
-rw-r--r--widgets/table/e-table-header-item.h24
-rw-r--r--widgets/table/e-table-header-utils.c56
-rw-r--r--widgets/table/e-table-header-utils.h12
-rw-r--r--widgets/table/e-table-header.c122
-rw-r--r--widgets/table/e-table-header.h54
-rw-r--r--widgets/table/e-table-item.c294
-rw-r--r--widgets/table/e-table-item.h146
-rw-r--r--widgets/table/e-table-memory-callbacks.c30
-rw-r--r--widgets/table/e-table-memory-callbacks.h24
-rw-r--r--widgets/table/e-table-memory-store.c142
-rw-r--r--widgets/table/e-table-memory-store.h22
-rw-r--r--widgets/table/e-table-memory.c10
-rw-r--r--widgets/table/e-table-memory.h8
-rw-r--r--widgets/table/e-table-model.c50
-rw-r--r--widgets/table/e-table-model.h88
-rw-r--r--widgets/table/e-table-one.c42
-rw-r--r--widgets/table/e-table-scrolled.c16
-rw-r--r--widgets/table/e-table-scrolled.h16
-rw-r--r--widgets/table/e-table-search.c10
-rw-r--r--widgets/table/e-table-search.h2
-rw-r--r--widgets/table/e-table-selection-model.c22
-rw-r--r--widgets/table/e-table-simple.c50
-rw-r--r--widgets/table/e-table-simple.h40
-rw-r--r--widgets/table/e-table-sort-info.c62
-rw-r--r--widgets/table/e-table-sort-info.h12
-rw-r--r--widgets/table/e-table-sorted-variable.c8
-rw-r--r--widgets/table/e-table-sorted-variable.h4
-rw-r--r--widgets/table/e-table-sorted.c26
-rw-r--r--widgets/table/e-table-sorted.h4
-rw-r--r--widgets/table/e-table-sorter.c70
-rw-r--r--widgets/table/e-table-sorter.h20
-rw-r--r--widgets/table/e-table-sorting-utils.c92
-rw-r--r--widgets/table/e-table-sorting-utils.h34
-rw-r--r--widgets/table/e-table-specification.c102
-rw-r--r--widgets/table/e-table-specification.h14
-rw-r--r--widgets/table/e-table-state.c54
-rw-r--r--widgets/table/e-table-state.h14
-rw-r--r--widgets/table/e-table-subset-variable.c14
-rw-r--r--widgets/table/e-table-subset-variable.h2
-rw-r--r--widgets/table/e-table-subset.c96
-rw-r--r--widgets/table/e-table-subset.h44
-rw-r--r--widgets/table/e-table-tooltip.h8
-rw-r--r--widgets/table/e-table-tree.h6
-rw-r--r--widgets/table/e-table-utils.c16
-rw-r--r--widgets/table/e-table-without.c44
-rw-r--r--widgets/table/e-table-without.h6
-rw-r--r--widgets/table/e-table.c152
-rw-r--r--widgets/table/e-table.h144
-rw-r--r--widgets/table/e-tree-memory-callbacks.c34
-rw-r--r--widgets/table/e-tree-memory-callbacks.h28
-rw-r--r--widgets/table/e-tree-memory.c20
-rw-r--r--widgets/table/e-tree-memory.h8
-rw-r--r--widgets/table/e-tree-model.c34
-rw-r--r--widgets/table/e-tree-model.h52
-rw-r--r--widgets/table/e-tree-scrolled.c16
-rw-r--r--widgets/table/e-tree-scrolled.h16
-rw-r--r--widgets/table/e-tree-selection-model.c22
-rw-r--r--widgets/table/e-tree-simple.c26
-rw-r--r--widgets/table/e-tree-simple.h8
-rw-r--r--widgets/table/e-tree-sorted-variable.c44
-rw-r--r--widgets/table/e-tree-sorted-variable.h10
-rw-r--r--widgets/table/e-tree-sorted.c120
-rw-r--r--widgets/table/e-tree-sorted.h4
-rw-r--r--widgets/table/e-tree-table-adapter.c140
-rw-r--r--widgets/table/e-tree-table-adapter.h10
-rw-r--r--widgets/table/e-tree.c168
-rw-r--r--widgets/table/e-tree.h108
-rw-r--r--widgets/text/e-text-model.c14
-rw-r--r--widgets/text/e-text-model.h2
-rw-r--r--widgets/text/e-text.c160
-rw-r--r--widgets/text/e-text.h28
799 files changed, 13634 insertions, 13634 deletions
diff --git a/a11y/addressbook/ea-addressbook-view.c b/a11y/addressbook/ea-addressbook-view.c
index 6c2da221b9..75309daa14 100644
--- a/a11y/addressbook/ea-addressbook-view.c
+++ b/a11y/addressbook/ea-addressbook-view.c
@@ -25,8 +25,8 @@
#include <glib/gi18n.h>
#include "ea-addressbook-view.h"
-static G_CONST_RETURN gchar* ea_ab_view_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_ab_view_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_ab_view_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_ab_view_get_description (AtkObject *accessible);
static void ea_ab_view_class_init (EABViewClass *klass);
@@ -84,7 +84,7 @@ ea_ab_view_class_init (EABViewClass *klass)
class->get_description = ea_ab_view_get_description;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_ab_view_get_name (AtkObject *accessible)
{
g_return_val_if_fail (EA_IS_AB_VIEW(accessible), NULL);
@@ -94,7 +94,7 @@ ea_ab_view_get_name (AtkObject *accessible)
return _("evolution address book");
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_ab_view_get_description (AtkObject *accessible)
{
if (accessible->description)
diff --git a/a11y/addressbook/ea-minicard-view.c b/a11y/addressbook/ea-minicard-view.c
index dab53e6ce5..d13975b34a 100644
--- a/a11y/addressbook/ea-minicard-view.c
+++ b/a11y/addressbook/ea-minicard-view.c
@@ -29,14 +29,14 @@
#include "eab-gui-util.h"
#include "e-addressbook-view.h"
-static const char * action_name[] = {
+static const gchar * action_name[] = {
N_("New Contact"),
N_("New Contact List")
};
-static G_CONST_RETURN gchar* ea_minicard_view_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_minicard_view_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_minicard_view_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_minicard_view_get_description (AtkObject *accessible);
static void ea_minicard_view_class_init (EaMinicardViewClass *klass);
@@ -58,8 +58,8 @@ static gboolean selection_interface_is_child_selected (AtkSelection *selection,
static void atk_action_interface_init (AtkActionIface *iface);
static gboolean atk_action_interface_do_action (AtkAction *iface, gint i);
static gint atk_action_interface_get_n_action (AtkAction *iface);
-static G_CONST_RETURN gchar* atk_action_interface_get_description (AtkAction *iface, gint i);
-static G_CONST_RETURN gchar* atk_action_interface_get_name (AtkAction *iface, gint i);
+static G_CONST_RETURN gchar * atk_action_interface_get_description (AtkAction *iface, gint i);
+static G_CONST_RETURN gchar * atk_action_interface_get_name (AtkAction *iface, gint i);
static gpointer parent_class = NULL;
@@ -135,7 +135,7 @@ ea_minicard_view_class_init (EaMinicardViewClass *klass)
class->ref_child = ea_minicard_view_ref_child;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_minicard_view_get_name (AtkObject *accessible)
{
EReflow *reflow;
@@ -169,7 +169,7 @@ ea_minicard_view_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_minicard_view_get_description (AtkObject *accessible)
{
g_return_val_if_fail (EA_IS_MINICARD_VIEW(accessible), NULL);
@@ -403,13 +403,13 @@ static gint atk_action_interface_get_n_action (AtkAction *iface)
return G_N_ELEMENTS (action_name);
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
atk_action_interface_get_description (AtkAction *iface, gint i)
{
return atk_action_interface_get_name (iface, i);
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
atk_action_interface_get_name (AtkAction *iface, gint i)
{
if( i >= G_N_ELEMENTS (action_name) || i < 0)
diff --git a/a11y/addressbook/ea-minicard.c b/a11y/addressbook/ea-minicard.c
index d77d591fcc..b1b1ebbe33 100644
--- a/a11y/addressbook/ea-minicard.c
+++ b/a11y/addressbook/ea-minicard.c
@@ -27,12 +27,12 @@
#include "ea-minicard-view.h"
#include "e-minicard.h"
-static const char * action_name[] = {
+static const gchar * action_name[] = {
N_("Open")
};
-static G_CONST_RETURN gchar* ea_minicard_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_minicard_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_minicard_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_minicard_get_description (AtkObject *accessible);
static void ea_minicard_class_init (EaMinicardClass *klass);
@@ -44,8 +44,8 @@ static AtkStateSet *ea_minicard_ref_state_set (AtkObject *obj);
static void atk_action_interface_init (AtkActionIface *iface);
static gboolean atk_action_interface_do_action (AtkAction *iface, gint i);
static gint atk_action_interface_get_n_action (AtkAction *iface);
-static G_CONST_RETURN gchar* atk_action_interface_get_description (AtkAction *iface, gint i);
-static G_CONST_RETURN gchar* atk_action_interface_get_name (AtkAction *iface, gint i);
+static G_CONST_RETURN gchar * atk_action_interface_get_description (AtkAction *iface, gint i);
+static G_CONST_RETURN gchar * atk_action_interface_get_name (AtkAction *iface, gint i);
static gpointer parent_class = NULL;
@@ -117,7 +117,7 @@ ea_minicard_class_init (EaMinicardClass *klass)
* we access the main content of current minicard, including
* header text, label(field, field name)
*/
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_minicard_get_name (AtkObject *accessible)
{
#define BUFFERSIZE 500
@@ -159,7 +159,7 @@ ea_minicard_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_minicard_get_description (AtkObject *accessible)
{
if (accessible->description)
@@ -256,13 +256,13 @@ static gint atk_action_interface_get_n_action (AtkAction *iface)
return G_N_ELEMENTS (action_name);
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
atk_action_interface_get_description (AtkAction *iface, gint i)
{
return atk_action_interface_get_name (iface, i);
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
atk_action_interface_get_name (AtkAction *iface, gint i)
{
if( i >= G_N_ELEMENTS (action_name) || i < 0)
diff --git a/a11y/calendar/ea-cal-view-event.c b/a11y/calendar/ea-cal-view-event.c
index e0c0f8fdac..5da164323f 100644
--- a/a11y/calendar/ea-cal-view-event.c
+++ b/a11y/calendar/ea-cal-view-event.c
@@ -31,8 +31,8 @@ static void ea_cal_view_event_class_init (EaCalViewEventClass *klass);
static void ea_cal_view_event_init (EaCalViewEvent *a11y);
static void ea_cal_view_event_dispose (GObject *object);
-static G_CONST_RETURN gchar* ea_cal_view_event_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_cal_view_event_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_cal_view_event_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_cal_view_event_get_description (AtkObject *accessible);
static AtkObject* ea_cal_view_event_get_parent (AtkObject *accessible);
static gint ea_cal_view_event_get_index_in_parent (AtkObject *accessible);
static AtkStateSet *ea_cal_view_event_ref_state_set (AtkObject *accessible);
@@ -46,7 +46,7 @@ static void ea_cal_view_get_extents (AtkComponent *component,
static void atk_action_interface_init (AtkActionIface *iface);
static gboolean ea_cal_view_event_do_action (AtkAction *action, gint i);
static gint ea_cal_view_event_get_n_actions (AtkAction *action);
-static G_CONST_RETURN gchar* ea_cal_view_event_action_get_name (AtkAction *action, gint i);
+static G_CONST_RETURN gchar * ea_cal_view_event_action_get_name (AtkAction *action, gint i);
#ifdef ACC_DEBUG
@@ -240,7 +240,7 @@ ea_cal_view_event_dispose (GObject *object)
G_OBJECT_CLASS(parent_class)->dispose (object);
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_cal_view_event_get_name (AtkObject *accessible)
{
AtkGObjectAccessible *atk_gobj;
@@ -251,7 +251,7 @@ ea_cal_view_event_get_name (AtkObject *accessible)
const gchar *recur_string;
const gchar *meeting_string;
gchar *summary_string;
- const char *summary;
+ const gchar *summary;
g_return_val_if_fail (EA_IS_CAL_VIEW_EVENT (accessible), NULL);
@@ -287,13 +287,13 @@ ea_cal_view_event_get_name (AtkObject *accessible)
ATK_OBJECT_CLASS (parent_class)->set_name (accessible, name_string);
#ifdef ACC_DEBUG
printf("EvoAcc: name for event accobj=%p, is %s\n",
- (void *)accessible, new_name);
+ (gpointer)accessible, new_name);
#endif
g_free (name_string);
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_cal_view_event_get_description (AtkObject *accessible)
{
if (accessible->description)
@@ -526,7 +526,7 @@ ea_cal_view_get_extents (AtkComponent *component,
#define CAL_VIEW_EVENT_ACTION_NUM 1
-static const char * action_name [CAL_VIEW_EVENT_ACTION_NUM] = {
+static const gchar * action_name [CAL_VIEW_EVENT_ACTION_NUM] = {
N_("Grab Focus")
};
@@ -563,7 +563,7 @@ ea_cal_view_event_get_n_actions (AtkAction *action)
return CAL_VIEW_EVENT_ACTION_NUM;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_cal_view_event_action_get_name (AtkAction *action, gint i)
{
if (i >= 0 && i < CAL_VIEW_EVENT_ACTION_NUM)
diff --git a/a11y/calendar/ea-cal-view.c b/a11y/calendar/ea-cal-view.c
index 7e337ac16b..952afcc791 100644
--- a/a11y/calendar/ea-cal-view.c
+++ b/a11y/calendar/ea-cal-view.c
@@ -45,11 +45,11 @@ static void ea_cal_view_dates_change_cb (GnomeCalendar *gcal, gpointer data);
static void atk_action_interface_init (AtkActionIface *iface);
static gboolean action_interface_do_action (AtkAction *action, gint i);
static gint action_interface_get_n_actions (AtkAction *action);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
action_interface_get_description(AtkAction *action, gint i);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
action_interface_get_keybinding (AtkAction *action, gint i);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
action_interface_action_get_name(AtkAction *action, gint i);
static gpointer parent_class = NULL;
@@ -212,7 +212,7 @@ ea_cal_view_event_changed_cb (ECalendarView *cal_view, ECalendarViewEvent *event
}
if (event_atk_obj) {
#ifdef ACC_DEBUG
- printf ("AccDebug: event=%p changed\n", (void *)event);
+ printf ("AccDebug: event=%p changed\n", (gpointer)event);
#endif
g_object_notify (G_OBJECT(event_atk_obj), "accessible-name");
g_signal_emit_by_name (event_atk_obj, "visible_data_changed");
@@ -254,7 +254,7 @@ ea_cal_view_event_added_cb (ECalendarView *cal_view, ECalendarViewEvent *event,
if (index < 0)
return;
#ifdef ACC_DEBUG
- printf ("AccDebug: event=%p added\n", (void *)event);
+ printf ("AccDebug: event=%p added\n", (gpointer)event);
#endif
g_signal_emit_by_name (atk_obj, "children_changed::add",
index, event_atk_obj, NULL);
@@ -295,7 +295,7 @@ ea_cal_view_dates_change_cb (GnomeCalendar *gcal, gpointer data)
#define CAL_VIEW_ACTION_NUM 5
-static const char * action_name [CAL_VIEW_ACTION_NUM] = {
+static const gchar * action_name [CAL_VIEW_ACTION_NUM] = {
N_("New Appointment"),
N_("New All Day Event"),
N_("New Meeting"),
@@ -374,13 +374,13 @@ action_interface_get_n_actions (AtkAction *action)
return CAL_VIEW_ACTION_NUM;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
action_interface_get_description(AtkAction *action, gint index)
{
return action_interface_action_get_name (action, index);
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
action_interface_get_keybinding (AtkAction *action, gint index)
{
GtkWidget *widget;
@@ -417,7 +417,7 @@ action_interface_get_keybinding (AtkAction *action, gint index)
return NULL;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
action_interface_action_get_name(AtkAction *action, gint i)
{
if (i >= 0 && i < CAL_VIEW_ACTION_NUM)
diff --git a/a11y/calendar/ea-calendar.c b/a11y/calendar/ea-calendar.c
index 26e73da6da..fb8d523275 100644
--- a/a11y/calendar/ea-calendar.c
+++ b/a11y/calendar/ea-calendar.c
@@ -172,7 +172,7 @@ ea_calendar_focus_watcher (GSignalInvocationHint *ihint,
/* focus out */
ea_event = NULL;
#ifdef ACC_DEBUG
- printf ("EvoAcc: focus notify on day main item %p\n", (void *)object);
+ printf ("EvoAcc: focus notify on day main item %p\n", (gpointer)object);
#endif
atk_focus_tracker_notify (ea_event);
}
@@ -195,7 +195,7 @@ ea_calendar_focus_watcher (GSignalInvocationHint *ihint,
/* focus out */
ea_event = NULL;
#ifdef ACC_DEBUG
- printf ("EvoAcc: focus notify on week main item %p\n", (void *)object);
+ printf ("EvoAcc: focus notify on week main item %p\n", (gpointer)object);
#endif
atk_focus_tracker_notify (ea_event);
}
diff --git a/a11y/calendar/ea-day-view-cell.c b/a11y/calendar/ea-day-view-cell.c
index bc303f380f..bbc92a192f 100644
--- a/a11y/calendar/ea-day-view-cell.c
+++ b/a11y/calendar/ea-day-view-cell.c
@@ -79,7 +79,7 @@ e_day_view_cell_new (EDayView *day_view, gint row, gint column)
cell->column = column;
#ifdef ACC_DEBUG
- printf ("EvoAcc: e_day_view_cell created %p\n", (void *)cell);
+ printf ("EvoAcc: e_day_view_cell created %p\n", (gpointer)cell);
#endif
return cell;
@@ -89,8 +89,8 @@ e_day_view_cell_new (EDayView *day_view, gint row, gint column)
static void ea_day_view_cell_class_init (EaDayViewCellClass *klass);
-static G_CONST_RETURN gchar* ea_day_view_cell_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_day_view_cell_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_day_view_cell_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_day_view_cell_get_description (AtkObject *accessible);
static AtkStateSet* ea_day_view_cell_ref_state_set (AtkObject *obj);
static AtkObject * ea_day_view_cell_get_parent (AtkObject *accessible);
static gint ea_day_view_cell_get_index_in_parent (AtkObject *accessible);
@@ -196,7 +196,7 @@ static void ea_day_view_cell_finalize (GObject *object)
}
#endif
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_day_view_cell_get_name (AtkObject *accessible)
{
AtkGObjectAccessible *atk_gobj;
@@ -230,7 +230,7 @@ ea_day_view_cell_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_day_view_cell_get_description (AtkObject *accessible)
{
return ea_day_view_cell_get_name (accessible);
diff --git a/a11y/calendar/ea-day-view-main-item.c b/a11y/calendar/ea-day-view-main-item.c
index 783710dc61..c1176b4417 100644
--- a/a11y/calendar/ea-day-view-main-item.c
+++ b/a11y/calendar/ea-day-view-main-item.c
@@ -32,8 +32,8 @@
static void ea_day_view_main_item_class_init (EaDayViewMainItemClass *klass);
static void ea_day_view_main_item_finalize (GObject *object);
-static G_CONST_RETURN gchar* ea_day_view_main_item_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_day_view_main_item_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_day_view_main_item_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_day_view_main_item_get_description (AtkObject *accessible);
static gint ea_day_view_main_item_get_n_children (AtkObject *obj);
static AtkObject* ea_day_view_main_item_ref_child (AtkObject *obj,
@@ -95,10 +95,10 @@ static AtkObject* table_interface_get_column_header (AtkTable *table,
gint in_col);
static AtkObject* table_interface_get_caption (AtkTable *table);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_column_description (AtkTable *table, gint in_col);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_row_description (AtkTable *table, gint row);
static AtkObject* table_interface_get_summary (AtkTable *table);
@@ -282,7 +282,7 @@ ea_day_view_main_item_finalize (GObject *object)
#endif
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_day_view_main_item_get_name (AtkObject *accessible)
{
AtkObject *parent;
@@ -295,7 +295,7 @@ ea_day_view_main_item_get_name (AtkObject *accessible)
return atk_object_get_name (parent);
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_day_view_main_item_get_description (AtkObject *accessible)
{
return _("a table to view and select the current time range");
@@ -1045,7 +1045,7 @@ table_interface_get_caption (AtkTable *table)
return NULL;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_column_description (AtkTable *table,
gint in_col)
{
@@ -1081,7 +1081,7 @@ table_interface_get_column_description (AtkTable *table,
return description;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_row_description (AtkTable *table,
gint row)
{
diff --git a/a11y/calendar/ea-day-view.c b/a11y/calendar/ea-day-view.c
index 107f983bb0..9eb3e343f3 100644
--- a/a11y/calendar/ea-day-view.c
+++ b/a11y/calendar/ea-day-view.c
@@ -31,8 +31,8 @@
static void ea_day_view_class_init (EaDayViewClass *klass);
-static G_CONST_RETURN gchar* ea_day_view_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_day_view_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_day_view_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_day_view_get_description (AtkObject *accessible);
static gint ea_day_view_get_n_children (AtkObject *obj);
static AtkObject* ea_day_view_ref_child (AtkObject *obj,
gint i);
@@ -111,13 +111,13 @@ ea_day_view_new (GtkWidget *widget)
atk_object_initialize (accessible, widget);
#ifdef ACC_DEBUG
- printf ("EvoAcc: ea_day_view created %p\n", (void *)accessible);
+ printf ("EvoAcc: ea_day_view created %p\n", (gpointer)accessible);
#endif
return accessible;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_day_view_get_name (AtkObject *accessible)
{
EDayView *day_view;
@@ -172,7 +172,7 @@ ea_day_view_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_day_view_get_description (AtkObject *accessible)
{
EDayView *day_view;
diff --git a/a11y/calendar/ea-gnome-calendar.c b/a11y/calendar/ea-gnome-calendar.c
index 4d6e752b8e..e5d9654c1a 100644
--- a/a11y/calendar/ea-gnome-calendar.c
+++ b/a11y/calendar/ea-gnome-calendar.c
@@ -31,8 +31,8 @@
static void ea_gnome_calendar_class_init (EaGnomeCalendarClass *klass);
-static G_CONST_RETURN gchar* ea_gnome_calendar_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_gnome_calendar_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_gnome_calendar_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_gnome_calendar_get_description (AtkObject *accessible);
static gint ea_gnome_calendar_get_n_children (AtkObject* obj);
static AtkObject * ea_gnome_calendar_ref_child (AtkObject *obj, gint i);
@@ -130,7 +130,7 @@ ea_gnome_calendar_new (GtkWidget *widget)
}
#ifdef ACC_DEBUG
- printf ("EvoAcc: ea-gnome-calendar created: %p\n", (void *)accessible);
+ printf ("EvoAcc: ea-gnome-calendar created: %p\n", (gpointer)accessible);
#endif
return accessible;
@@ -143,8 +143,8 @@ ea_gnome_calendar_get_label_description (GnomeCalendar *gcal)
struct icaltimetype start_tt, end_tt;
time_t start_time, end_time;
struct tm start_tm, end_tm;
- static char buffer[512];
- char end_buffer[256];
+ static gchar buffer[512];
+ gchar end_buffer[256];
GnomeCalendarViewType view;
gnome_calendar_get_visible_time_range (gcal, &start_time, &end_time);
@@ -237,7 +237,7 @@ ea_gnome_calendar_get_label_description (GnomeCalendar *gcal)
return buffer;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_gnome_calendar_get_name (AtkObject *accessible)
{
if (accessible->name)
@@ -245,7 +245,7 @@ ea_gnome_calendar_get_name (AtkObject *accessible)
return _("Gnome Calendar");
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_gnome_calendar_get_description (AtkObject *accessible)
{
if (accessible->description)
@@ -328,7 +328,7 @@ ea_gcal_switch_view_cb (GtkNotebook *widget, GtkNotebookPage *page,
#ifdef ACC_DEBUG
printf ("AccDebug: view switch to widget %p (index=%d) \n",
- (void *)new_widget, index);
+ (gpointer)new_widget, index);
#endif
}
diff --git a/a11y/calendar/ea-jump-button.c b/a11y/calendar/ea-jump-button.c
index 7888196b8d..eb24bea42c 100644
--- a/a11y/calendar/ea-jump-button.c
+++ b/a11y/calendar/ea-jump-button.c
@@ -30,15 +30,15 @@
static void ea_jump_button_class_init (EaJumpButtonClass *klass);
-static G_CONST_RETURN gchar* ea_jump_button_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_jump_button_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_jump_button_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_jump_button_get_description (AtkObject *accessible);
/* action interface */
static void atk_action_interface_init (AtkActionIface *iface);
static gboolean jump_button_do_action (AtkAction *action,
gint i);
static gint jump_button_get_n_actions (AtkAction *action);
-static G_CONST_RETURN gchar* jump_button_get_keybinding (AtkAction *action,
+static G_CONST_RETURN gchar * jump_button_get_keybinding (AtkAction *action,
gint i);
static gpointer parent_class = NULL;
@@ -137,7 +137,7 @@ ea_jump_button_new (GObject *obj)
return atk_obj;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_jump_button_get_name (AtkObject *accessible)
{
g_return_val_if_fail (EA_IS_JUMP_BUTTON (accessible), NULL);
@@ -147,7 +147,7 @@ ea_jump_button_get_name (AtkObject *accessible)
return _("Jump button");
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_jump_button_get_description (AtkObject *accessible)
{
if (accessible->description)
@@ -204,7 +204,7 @@ jump_button_get_n_actions (AtkAction *action)
return 1;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
jump_button_get_keybinding (AtkAction *action,
gint i)
{
diff --git a/a11y/calendar/ea-week-view-cell.c b/a11y/calendar/ea-week-view-cell.c
index 4c7a591121..f3f7183c55 100644
--- a/a11y/calendar/ea-week-view-cell.c
+++ b/a11y/calendar/ea-week-view-cell.c
@@ -79,7 +79,7 @@ e_week_view_cell_new (EWeekView *week_view, gint row, gint column)
cell->column = column;
#ifdef ACC_DEBUG
- printf ("EvoAcc: e_week_view_cell created %p\n", (void *)cell);
+ printf ("EvoAcc: e_week_view_cell created %p\n", (gpointer)cell);
#endif
return cell;
@@ -89,8 +89,8 @@ e_week_view_cell_new (EWeekView *week_view, gint row, gint column)
static void ea_week_view_cell_class_init (EaWeekViewCellClass *klass);
-static G_CONST_RETURN gchar* ea_week_view_cell_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_week_view_cell_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_week_view_cell_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_week_view_cell_get_description (AtkObject *accessible);
static AtkStateSet* ea_week_view_cell_ref_state_set (AtkObject *obj);
static AtkObject * ea_week_view_cell_get_parent (AtkObject *accessible);
static gint ea_week_view_cell_get_index_in_parent (AtkObject *accessible);
@@ -196,7 +196,7 @@ static void ea_week_view_cell_finalize (GObject *object)
}
#endif
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_week_view_cell_get_name (AtkObject *accessible)
{
AtkGObjectAccessible *atk_gobj;
@@ -242,7 +242,7 @@ ea_week_view_cell_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_week_view_cell_get_description (AtkObject *accessible)
{
return ea_week_view_cell_get_name (accessible);
diff --git a/a11y/calendar/ea-week-view-main-item.c b/a11y/calendar/ea-week-view-main-item.c
index ae507df235..3ba4508ba3 100644
--- a/a11y/calendar/ea-week-view-main-item.c
+++ b/a11y/calendar/ea-week-view-main-item.c
@@ -31,8 +31,8 @@
static void ea_week_view_main_item_class_init (EaWeekViewMainItemClass *klass);
static void ea_week_view_main_item_finalize (GObject *object);
-static G_CONST_RETURN gchar* ea_week_view_main_item_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_week_view_main_item_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_week_view_main_item_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_week_view_main_item_get_description (AtkObject *accessible);
static gint ea_week_view_main_item_get_n_children (AtkObject *obj);
static AtkObject* ea_week_view_main_item_ref_child (AtkObject *obj,
@@ -95,10 +95,10 @@ static AtkObject* table_interface_get_column_header (AtkTable *table,
gint in_col);
static AtkObject* table_interface_get_caption (AtkTable *table);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_column_description (AtkTable *table, gint in_col);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_row_description (AtkTable *table, gint row);
static AtkObject* table_interface_get_summary (AtkTable *table);
@@ -282,7 +282,7 @@ ea_week_view_main_item_finalize (GObject *object)
#endif
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_week_view_main_item_get_name (AtkObject *accessible)
{
AtkObject *parent;
@@ -292,7 +292,7 @@ ea_week_view_main_item_get_name (AtkObject *accessible)
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_week_view_main_item_get_description (AtkObject *accessible)
{
return _("a table to view and select the current time range");
@@ -1008,7 +1008,7 @@ table_interface_get_caption (AtkTable *table)
return NULL;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_column_description (AtkTable *table,
gint in_col)
{
@@ -1065,7 +1065,7 @@ table_interface_get_column_description (AtkTable *table,
return description;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_row_description (AtkTable *table,
gint row)
{
diff --git a/a11y/calendar/ea-week-view.c b/a11y/calendar/ea-week-view.c
index 1d88e40c46..734f09239a 100644
--- a/a11y/calendar/ea-week-view.c
+++ b/a11y/calendar/ea-week-view.c
@@ -30,8 +30,8 @@
static void ea_week_view_class_init (EaWeekViewClass *klass);
-static G_CONST_RETURN gchar* ea_week_view_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_week_view_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_week_view_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_week_view_get_description (AtkObject *accessible);
static gint ea_week_view_get_n_children (AtkObject *obj);
static AtkObject* ea_week_view_ref_child (AtkObject *obj,
gint i);
@@ -112,13 +112,13 @@ ea_week_view_new (GtkWidget *widget)
atk_object_initialize (accessible, widget);
#ifdef ACC_DEBUG
- printf ("EvoAcc: ea_week_view created %p\n", (void *)accessible);
+ printf ("EvoAcc: ea_week_view created %p\n", (gpointer)accessible);
#endif
return accessible;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_week_view_get_name (AtkObject *accessible)
{
EWeekView *week_view;
@@ -165,7 +165,7 @@ ea_week_view_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_week_view_get_description (AtkObject *accessible)
{
EWeekView *week_view;
@@ -239,7 +239,7 @@ ea_week_view_get_n_children (AtkObject *accessible)
count++;
#ifdef ACC_DEBUG
- printf("AccDebug: week view %p has %d children\n", (void *)week_view, count);
+ printf("AccDebug: week view %p has %d children\n", (gpointer)week_view, count);
#endif
return count;
}
@@ -315,7 +315,7 @@ ea_week_view_ref_child (AtkObject *accessible, gint index)
#ifdef ACC_DEBUG
printf ("EvoAcc: ea_week_view_ref_child [%d]=%p\n",
- index, (void *)atk_object);
+ index, (gpointer)atk_object);
#endif
return atk_object;
}
diff --git a/a11y/e-table/gal-a11y-e-cell-popup.c b/a11y/e-table/gal-a11y-e-cell-popup.c
index 5ae3cef686..f76b2431b0 100644
--- a/a11y/e-table/gal-a11y-e-cell-popup.c
+++ b/a11y/e-table/gal-a11y-e-cell-popup.c
@@ -83,9 +83,9 @@ AtkObject *
gal_a11y_e_cell_popup_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row)
+ gint model_col,
+ gint view_col,
+ gint row)
{
AtkObject *a11y;
GalA11yECell *cell;
diff --git a/a11y/e-table/gal-a11y-e-cell-popup.h b/a11y/e-table/gal-a11y-e-cell-popup.h
index 4bee17e8ce..7fef5cf18d 100644
--- a/a11y/e-table/gal-a11y-e-cell-popup.h
+++ b/a11y/e-table/gal-a11y-e-cell-popup.h
@@ -55,8 +55,8 @@ GType gal_a11y_e_cell_popup_get_type (void);
AtkObject *gal_a11y_e_cell_popup_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
#endif /* ! __GAL_A11Y_E_CELL_POPUP_H__ */
diff --git a/a11y/e-table/gal-a11y-e-cell-registry.c b/a11y/e-table/gal-a11y-e-cell-registry.c
index 1da241fea9..9dc9598608 100644
--- a/a11y/e-table/gal-a11y-e-cell-registry.c
+++ b/a11y/e-table/gal-a11y-e-cell-registry.c
@@ -111,9 +111,9 @@ gal_a11y_e_cell_registry_get_object (GalA11yECellRegistry *registry,
ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row)
+ gint model_col,
+ gint view_col,
+ gint row)
{
GalA11yECellRegistryFunc func = NULL;
GType type;
diff --git a/a11y/e-table/gal-a11y-e-cell-registry.h b/a11y/e-table/gal-a11y-e-cell-registry.h
index bc43a662cc..0620fd1b9c 100644
--- a/a11y/e-table/gal-a11y-e-cell-registry.h
+++ b/a11y/e-table/gal-a11y-e-cell-registry.h
@@ -41,9 +41,9 @@ typedef struct _GalA11yECellRegistryPrivate GalA11yECellRegistryPrivate;
typedef AtkObject *(*GalA11yECellRegistryFunc) (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
struct _GalA11yECellRegistry {
GObject object;
@@ -62,9 +62,9 @@ AtkObject *gal_a11y_e_cell_registry_get_object (GalA11yECellRegistry *re
ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
void gal_a11y_e_cell_registry_add_cell_type (GalA11yECellRegistry *registry,
GType type,
GalA11yECellRegistryFunc func);
diff --git a/a11y/e-table/gal-a11y-e-cell-text.c b/a11y/e-table/gal-a11y-e-cell-text.c
index a2b9f715f8..77823b0a7c 100644
--- a/a11y/e-table/gal-a11y-e-cell-text.c
+++ b/a11y/e-table/gal-a11y-e-cell-text.c
@@ -86,11 +86,11 @@ ect_check (gpointer a11y)
return TRUE;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ect_get_name (AtkObject * a11y)
{
GalA11yECell *gaec;
- char *name;
+ gchar *name;
if (!ect_check (a11y))
return NULL;
@@ -180,7 +180,7 @@ ect_get_character_at_offset (AtkText *text,
}
-static gchar*
+static gchar *
ect_get_text_before_offset (AtkText *text,
gint offset,
AtkTextBoundary boundary_type,
@@ -294,7 +294,7 @@ ect_get_n_selections (AtkText *text)
}
-static gchar*
+static gchar *
ect_get_selection (AtkText *text,
gint selection_num,
gint *start_offset,
@@ -543,7 +543,7 @@ ect_do_action_edit (AtkAction *action)
/* text signal handlers */
static void
-ect_text_inserted_cb (ECellText *text, ECellView *cell_view, int pos, int len, int row, int model_col, gpointer data)
+ect_text_inserted_cb (ECellText *text, ECellView *cell_view, gint pos, gint len, gint row, gint model_col, gpointer data)
{
GalA11yECellText *gaet;
GalA11yECell *gaec;
@@ -560,7 +560,7 @@ ect_text_inserted_cb (ECellText *text, ECellView *cell_view, int pos, int len, i
}
static void
-ect_text_deleted_cb (ECellText *text, ECellView *cell_view, int pos, int len, int row, int model_col, gpointer data)
+ect_text_deleted_cb (ECellText *text, ECellView *cell_view, gint pos, gint len, gint row, gint model_col, gpointer data)
{
GalA11yECellText *gaet;
GalA11yECell *gaec;
@@ -692,9 +692,9 @@ AtkObject *
gal_a11y_e_cell_text_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row)
+ gint model_col,
+ gint view_col,
+ gint row)
{
AtkObject *a11y;
GalA11yECell *gaec;
diff --git a/a11y/e-table/gal-a11y-e-cell-text.h b/a11y/e-table/gal-a11y-e-cell-text.h
index fe404169a1..2e469d76f6 100644
--- a/a11y/e-table/gal-a11y-e-cell-text.h
+++ b/a11y/e-table/gal-a11y-e-cell-text.h
@@ -57,8 +57,8 @@ GType gal_a11y_e_cell_text_get_type (void);
AtkObject *gal_a11y_e_cell_text_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
#endif /* ! __GAL_A11Y_E_CELL_TEXT_H__ */
diff --git a/a11y/e-table/gal-a11y-e-cell-toggle.c b/a11y/e-table/gal-a11y-e-cell-toggle.c
index c0425a0cbb..1101bac7ee 100644
--- a/a11y/e-table/gal-a11y-e-cell-toggle.c
+++ b/a11y/e-table/gal-a11y-e-cell-toggle.c
@@ -143,9 +143,9 @@ AtkObject*
gal_a11y_e_cell_toggle_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row)
+ gint model_col,
+ gint view_col,
+ gint row)
{
AtkObject *a11y;
GalA11yECell *cell;
diff --git a/a11y/e-table/gal-a11y-e-cell-toggle.h b/a11y/e-table/gal-a11y-e-cell-toggle.h
index 769e0b4200..1f41ae1623 100644
--- a/a11y/e-table/gal-a11y-e-cell-toggle.h
+++ b/a11y/e-table/gal-a11y-e-cell-toggle.h
@@ -56,9 +56,9 @@ struct _GalA11yECellToggleClass
AtkObject *gal_a11y_e_cell_toggle_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
#ifdef __cplusplus
}
diff --git a/a11y/e-table/gal-a11y-e-cell-tree.c b/a11y/e-table/gal-a11y-e-cell-tree.c
index 0a5f8e2019..aaf490c726 100644
--- a/a11y/e-table/gal-a11y-e-cell-tree.c
+++ b/a11y/e-table/gal-a11y-e-cell-tree.c
@@ -184,9 +184,9 @@ AtkObject *
gal_a11y_e_cell_tree_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row)
+ gint model_col,
+ gint view_col,
+ gint row)
{
AtkObject *subcell_a11y;
GalA11yECellTree *a11y;
diff --git a/a11y/e-table/gal-a11y-e-cell-tree.h b/a11y/e-table/gal-a11y-e-cell-tree.h
index 43169c2f28..497590b351 100644
--- a/a11y/e-table/gal-a11y-e-cell-tree.h
+++ b/a11y/e-table/gal-a11y-e-cell-tree.h
@@ -44,7 +44,7 @@ typedef struct _GalA11yECellTreePrivate GalA11yECellTreePrivate;
struct _GalA11yECellTree {
GalA11yECell object;
- int model_row_changed_id;
+ gint model_row_changed_id;
};
struct _GalA11yECellTreeClass {
@@ -57,8 +57,8 @@ GType gal_a11y_e_cell_tree_get_type (void);
AtkObject *gal_a11y_e_cell_tree_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
#endif /* ! __GAL_A11Y_E_CELL_TREE_H__ */
diff --git a/a11y/e-table/gal-a11y-e-cell-vbox.c b/a11y/e-table/gal-a11y-e-cell-vbox.c
index 7a5eadba52..b3f92a695a 100644
--- a/a11y/e-table/gal-a11y-e-cell-vbox.c
+++ b/a11y/e-table/gal-a11y-e-cell-vbox.c
@@ -120,7 +120,7 @@ ecv_ref_accessible_at_point (AtkComponent *component,
AtkCoordType coord_type)
{
gint x0, y0, width, height;
- int subcell_height, i;
+ gint subcell_height, i;
GalA11yECell *gaec = GAL_A11Y_E_CELL (component);
ECellVboxView *ecvv = (ECellVboxView *) (gaec->cell_view);
@@ -203,9 +203,9 @@ gal_a11y_e_cell_vbox_get_type (void)
AtkObject *gal_a11y_e_cell_vbox_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row)
+ gint model_col,
+ gint view_col,
+ gint row)
{
AtkObject *a11y;
GalA11yECell *gaec;
diff --git a/a11y/e-table/gal-a11y-e-cell-vbox.h b/a11y/e-table/gal-a11y-e-cell-vbox.h
index 2055ac3195..cf6375a2be 100644
--- a/a11y/e-table/gal-a11y-e-cell-vbox.h
+++ b/a11y/e-table/gal-a11y-e-cell-vbox.h
@@ -44,7 +44,7 @@ typedef struct _GalA11yECellVboxClass GalA11yECellVboxClass;
struct _GalA11yECellVbox
{
GalA11yECell object;
- int a11y_subcell_count;
+ gint a11y_subcell_count;
gpointer *a11y_subcells;
};
@@ -57,9 +57,9 @@ GType gal_a11y_e_cell_vbox_get_type (void);
AtkObject *gal_a11y_e_cell_vbox_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
#ifdef __cplusplus
}
diff --git a/a11y/e-table/gal-a11y-e-cell.c b/a11y/e-table/gal-a11y-e-cell.c
index 3b74675ae5..a316500af7 100644
--- a/a11y/e-table/gal-a11y-e-cell.c
+++ b/a11y/e-table/gal-a11y-e-cell.c
@@ -103,7 +103,7 @@ gal_a11y_e_cell_dispose (GObject *object)
}
/* Static functions */
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
gal_a11y_e_cell_get_name (AtkObject * a11y)
{
GalA11yECell *cell = GAL_A11Y_E_CELL (a11y);
@@ -163,10 +163,10 @@ gal_a11y_e_cell_get_extents (AtkComponent *component,
{
GalA11yECell *a11y = GAL_A11Y_E_CELL (component);
GtkWidget *tableOrTree;
- int row;
- int col;
- int xval;
- int yval;
+ gint row;
+ gint col;
+ gint xval;
+ gint yval;
row = a11y->row;
col = a11y->view_col;
@@ -593,9 +593,9 @@ AtkObject *
gal_a11y_e_cell_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row)
+ gint model_col,
+ gint view_col,
+ gint row)
{
AtkObject *a11y;
@@ -616,9 +616,9 @@ gal_a11y_e_cell_construct (AtkObject *object,
ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row)
+ gint model_col,
+ gint view_col,
+ gint row)
{
GalA11yECell *a11y = GAL_A11Y_E_CELL (object);
a11y->item = item;
diff --git a/a11y/e-table/gal-a11y-e-cell.h b/a11y/e-table/gal-a11y-e-cell.h
index af96c69d47..3ec3070a9b 100644
--- a/a11y/e-table/gal-a11y-e-cell.h
+++ b/a11y/e-table/gal-a11y-e-cell.h
@@ -49,9 +49,9 @@ struct _GalA11yECell {
ETableItem *item;
ECellView *cell_view;
AtkObject *parent;
- int model_col;
- int view_col;
- int row;
+ gint model_col;
+ gint view_col;
+ gint row;
AtkStateSet *state_set;
GList *action_list;
gint action_idle_handler;
@@ -76,16 +76,16 @@ GType gal_a11y_e_cell_get_type (void);
AtkObject *gal_a11y_e_cell_new (ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
void gal_a11y_e_cell_construct (AtkObject *object,
ETableItem *item,
ECellView *cell_view,
AtkObject *parent,
- int model_col,
- int view_col,
- int row);
+ gint model_col,
+ gint view_col,
+ gint row);
void gal_a11y_e_cell_type_add_action_interface (GType type);
diff --git a/a11y/e-table/gal-a11y-e-table-click-to-add.c b/a11y/e-table/gal-a11y-e-table-click-to-add.c
index ed417e1601..e36fe51a00 100644
--- a/a11y/e-table/gal-a11y-e-table-click-to-add.c
+++ b/a11y/e-table/gal-a11y-e-table-click-to-add.c
@@ -36,7 +36,7 @@
static AtkObjectClass *parent_class;
static GType parent_type;
static gint priv_offset;
-#define GET_PRIVATE(object) ((GalA11yETableClickToAddPrivate *) (((char *) object) + priv_offset))
+#define GET_PRIVATE(object) ((GalA11yETableClickToAddPrivate *) (((gchar *) object) + priv_offset))
#define PARENT_TYPE (parent_type)
struct _GalA11yETableClickToAddPrivate {
@@ -51,7 +51,7 @@ etcta_get_n_actions (AtkAction *action)
return 1;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
etcta_get_description (AtkAction *action,
gint i)
{
@@ -61,7 +61,7 @@ etcta_get_description (AtkAction *action,
return NULL;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
etcta_action_get_name (AtkAction *action, gint i)
{
if (i == 0)
diff --git a/a11y/e-table/gal-a11y-e-table-column-header.c b/a11y/e-table/gal-a11y-e-table-column-header.c
index 4df75cc564..41e6ab0fca 100644
--- a/a11y/e-table/gal-a11y-e-table-column-header.c
+++ b/a11y/e-table/gal-a11y-e-table-column-header.c
@@ -32,7 +32,7 @@
static GObjectClass *parent_class;
static gint priv_offset;
-#define GET_PRIVATE(object) ((GalA11yETableColumnHeaderPrivate *) (((char *) object) + priv_offset))
+#define GET_PRIVATE(object) ((GalA11yETableColumnHeaderPrivate *) (((gchar *) object) + priv_offset))
#define PARENT_TYPE (atk_gobject_accessible_get_type ())
struct _GalA11yETableColumnHeaderPrivate {
@@ -141,7 +141,7 @@ gal_a11y_e_table_column_header_get_n_actions (AtkAction *action)
return 1;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
gal_a11y_e_table_column_header_action_get_name (AtkAction *action,
gint i)
{
diff --git a/a11y/e-table/gal-a11y-e-table-item.c b/a11y/e-table/gal-a11y-e-table-item.c
index 935f53b83b..912d055964 100644
--- a/a11y/e-table/gal-a11y-e-table-item.c
+++ b/a11y/e-table/gal-a11y-e-table-item.c
@@ -48,14 +48,14 @@ static AtkComponentIface *component_parent_iface;
static GType parent_type;
static gint priv_offset;
static GQuark quark_accessible_object = 0;
-#define GET_PRIVATE(object) ((GalA11yETableItemPrivate *) (((char *) object) + priv_offset))
+#define GET_PRIVATE(object) ((GalA11yETableItemPrivate *) (((gchar *) object) + priv_offset))
#define PARENT_TYPE (parent_type)
struct _GalA11yETableItemPrivate {
gint cols;
gint rows;
- int selection_change_id;
- int cursor_change_id;
+ gint selection_change_id;
+ gint cursor_change_id;
ETableCol ** columns;
ESelectionModel *selection;
AtkStateSet *state_set;
@@ -93,7 +93,7 @@ eti_ref_state_set (AtkObject *accessible)
}
inline static gint
-view_to_model_row(ETableItem *eti, int row)
+view_to_model_row(ETableItem *eti, gint row)
{
if (eti->uses_source_model) {
ETableSubset *etss = E_TABLE_SUBSET(eti->table_model);
@@ -107,16 +107,16 @@ view_to_model_row(ETableItem *eti, int row)
}
inline static gint
-view_to_model_col(ETableItem *eti, int col)
+view_to_model_col(ETableItem *eti, gint col)
{
ETableCol *ecol = e_table_header_get_column (eti->header, col);
return ecol ? ecol->col_idx : -1;
}
inline static gint
-model_to_view_row(ETableItem *eti, int row)
+model_to_view_row(ETableItem *eti, gint row)
{
- int i;
+ gint i;
if (row == -1)
return -1;
if (eti->uses_source_model) {
@@ -136,9 +136,9 @@ model_to_view_row(ETableItem *eti, int row)
}
inline static gint
-model_to_view_col(ETableItem *eti, int col)
+model_to_view_col(ETableItem *eti, gint col)
{
- int i;
+ gint i;
if (col == -1)
return -1;
for (i = 0; i < eti->cols; i++) {
@@ -159,7 +159,7 @@ static void
eti_a11y_reset_focus_object (GalA11yETableItem *a11y, ETableItem *item, gboolean notify)
{
ESelectionModel * esm;
- int cursor_row, cursor_col, view_row, view_col;
+ gint cursor_row, cursor_col, view_row, view_col;
AtkObject *cell, *old_cell;
esm = item->selection;
@@ -284,9 +284,9 @@ eti_ref_accessible_at_point (AtkComponent *component,
gint y,
AtkCoordType coord_type)
{
- int row = -1;
- int col = -1;
- int x_origin, y_origin;
+ gint row = -1;
+ gint col = -1;
+ gint x_origin, y_origin;
ETableItem *item;
GtkWidget *tableOrTree;
@@ -446,7 +446,7 @@ eti_get_column_extent_at (AtkTable *table,
gint column)
{
ETableItem *item;
- int width;
+ gint width;
item = E_TABLE_ITEM (eti_a11y_get_gobject (ATK_OBJECT (table)));
if (!item)
@@ -469,7 +469,7 @@ eti_get_row_extent_at (AtkTable *table,
gint column)
{
ETableItem *item;
- int height;
+ gint height;
item = E_TABLE_ITEM (eti_a11y_get_gobject (ATK_OBJECT (table)));
if (!item)
@@ -676,7 +676,7 @@ eti_atk_component_iface_init (AtkComponentIface *iface)
}
static void
-eti_rows_inserted (ETableModel * model, int row, int count,
+eti_rows_inserted (ETableModel * model, gint row, gint count,
AtkObject * table_item)
{
gint n_cols,n_rows,i,j;
@@ -711,7 +711,7 @@ eti_rows_inserted (ETableModel * model, int row, int count,
}
static void
-eti_rows_deleted (ETableModel * model, int row, int count,
+eti_rows_deleted (ETableModel * model, gint row, gint count,
AtkObject * table_item)
{
gint i,j, n_rows, n_cols, old_nrows;
@@ -949,7 +949,7 @@ static void eti_a11y_selection_model_added_cb (ETableItem *eti,
static void eti_a11y_selection_changed_cb (ESelectionModel *selection,
GalA11yETableItem *a11y);
static void eti_a11y_cursor_changed_cb (ESelectionModel *selection,
- int row, int col,
+ gint row, gint col,
GalA11yETableItem *a11y);
/**
@@ -1021,7 +1021,7 @@ gal_a11y_e_table_item_new (ETableItem *item)
AtkObject *accessible;
ESelectionModel * esm;
AtkObject *parent;
- const char *name;
+ const gchar *name;
g_return_val_if_fail (item && item->cols >= 0 && item->rows >= 0, NULL);
a11y = g_object_new (gal_a11y_e_table_item_get_type (), NULL);
@@ -1188,7 +1188,7 @@ eti_a11y_selection_changed_cb (ESelectionModel *selection, GalA11yETableItem *a1
static void
eti_a11y_cursor_changed_cb (ESelectionModel *selection,
- int row, int col, GalA11yETableItem *a11y)
+ gint row, gint col, GalA11yETableItem *a11y)
{
ETableItem *item;
GalA11yETableItemPrivate *priv = GET_PRIVATE (a11y);
diff --git a/a11y/e-table/gal-a11y-e-table.c b/a11y/e-table/gal-a11y-e-table.c
index 1966fb29ee..bf75227af4 100644
--- a/a11y/e-table/gal-a11y-e-table.c
+++ b/a11y/e-table/gal-a11y-e-table.c
@@ -37,7 +37,7 @@
static AtkObjectClass *parent_class;
static GType parent_type;
static gint priv_offset;
-#define GET_PRIVATE(object) ((GalA11yETablePrivate *) (((char *) object) + priv_offset))
+#define GET_PRIVATE(object) ((GalA11yETablePrivate *) (((gchar *) object) + priv_offset))
#define PARENT_TYPE (parent_type)
struct _GalA11yETablePrivate {
@@ -125,7 +125,7 @@ et_get_n_children (AtkObject *accessible)
{
GalA11yETable *a11y = GAL_A11Y_E_TABLE (accessible);
ETable * et;
- int n = 0;
+ gint n = 0;
et = E_TABLE(GTK_ACCESSIBLE (a11y)->widget);
diff --git a/a11y/e-table/gal-a11y-e-tree.c b/a11y/e-table/gal-a11y-e-tree.c
index 4ecce81501..879b517aab 100644
--- a/a11y/e-table/gal-a11y-e-tree.c
+++ b/a11y/e-table/gal-a11y-e-tree.c
@@ -34,7 +34,7 @@
static AtkObjectClass *parent_class;
static GType parent_type;
static gint priv_offset;
-#define GET_PRIVATE(object) ((GalA11yETreePrivate *) (((char *) object) + priv_offset))
+#define GET_PRIVATE(object) ((GalA11yETreePrivate *) (((gchar *) object) + priv_offset))
#define PARENT_TYPE (parent_type)
struct _GalA11yETreePrivate {
diff --git a/a11y/e-text/gal-a11y-e-text.c b/a11y/e-text/gal-a11y-e-text.c
index 98484949ff..6717f687b0 100644
--- a/a11y/e-text/gal-a11y-e-text.c
+++ b/a11y/e-text/gal-a11y-e-text.c
@@ -39,11 +39,11 @@ static AtkComponentIface *component_parent_iface;
static GType parent_type;
static gint priv_offset;
static GQuark quark_accessible_object = 0;
-#define GET_PRIVATE(object) ((GalA11yETextPrivate *) (((char *) object) + priv_offset))
+#define GET_PRIVATE(object) ((GalA11yETextPrivate *) (((gchar *) object) + priv_offset))
#define PARENT_TYPE (parent_type)
struct _GalA11yETextPrivate {
- int dummy;
+ gint dummy;
};
static void
@@ -66,8 +66,8 @@ et_get_extents (AtkComponent *component,
EText *item = E_TEXT (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (component)));
double real_width;
double real_height;
- int fake_width;
- int fake_height;
+ gint fake_width;
+ gint fake_height;
if (component_parent_iface &&
component_parent_iface->get_extents)
@@ -94,7 +94,7 @@ et_get_full_text (AtkText *text)
{
EText *etext = E_TEXT (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (text)));
ETextModel *model;
- const char *full_text;
+ const gchar *full_text;
g_object_get (etext, "model", &model, NULL);
@@ -105,7 +105,7 @@ et_get_full_text (AtkText *text)
static void
et_set_full_text (AtkEditableText *text,
- const char *full_text)
+ const gchar *full_text)
{
EText *etext = E_TEXT (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (text)));
ETextModel *model;
@@ -121,7 +121,7 @@ et_get_text (AtkText *text,
gint end_offset)
{
gint start, end, real_start, real_end, len;
- const char *full_text = et_get_full_text (text);
+ const gchar *full_text = et_get_full_text (text);
if (full_text == NULL)
return NULL;
len = g_utf8_strlen (full_text, -1);
@@ -149,12 +149,12 @@ is_a_seperator (gunichar c)
}
static gint
-find_word_start (const char *text,
+find_word_start (const gchar *text,
gint begin_offset,
gint step)
{
gint offset;
- char *at_offset;
+ gchar *at_offset;
gunichar current, previous;
gint len;
@@ -175,12 +175,12 @@ find_word_start (const char *text,
}
static gint
-find_word_end (const char *text,
+find_word_end (const gchar *text,
gint begin_offset,
gint step)
{
gint offset;
- char *at_offset;
+ gchar *at_offset;
gunichar current, previous;
gint len;
@@ -201,14 +201,14 @@ find_word_end (const char *text,
}
static gint
-find_sentence_start (const char *text,
+find_sentence_start (const gchar *text,
gint begin_offset,
gint step)
{
gint offset, last_word_end, len;
- char *at_offset;
+ gchar *at_offset;
gunichar ch;
- int i;
+ gint i;
offset = find_word_start (text, begin_offset, step);
len = g_utf8_strlen (text, -1);
@@ -231,12 +231,12 @@ find_sentence_start (const char *text,
}
static gint
-find_sentence_end (const char *text,
+find_sentence_end (const gchar *text,
gint begin_offset,
gint step)
{
gint offset;
- char *at_offset;
+ gchar *at_offset;
gunichar previous;
gint len;
@@ -255,12 +255,12 @@ find_sentence_end (const char *text,
}
static gint
-find_line_start (const char *text,
+find_line_start (const gchar *text,
gint begin_offset,
gint step)
{
gint offset;
- char *at_offset;
+ gchar *at_offset;
gunichar previous;
gint len;
@@ -279,12 +279,12 @@ find_line_start (const char *text,
}
static gint
-find_line_end (const char *text,
+find_line_end (const gchar *text,
gint begin_offset,
gint step)
{
gint offset;
- char *at_offset;
+ gchar *at_offset;
gunichar current;
gint len;
@@ -310,7 +310,7 @@ et_get_text_after_offset (AtkText *text,
gint *end_offset)
{
gint start, end, len;
- const char *full_text = et_get_full_text (text);
+ const gchar *full_text = et_get_full_text (text);
g_return_val_if_fail (full_text, NULL);
switch (boundary_type)
@@ -363,7 +363,7 @@ et_get_text_at_offset (AtkText *text,
gint *end_offset)
{
gint start, end, len;
- const char *full_text = et_get_full_text (text);
+ const gchar *full_text = et_get_full_text (text);
g_return_val_if_fail (full_text, NULL);
switch (boundary_type)
@@ -412,15 +412,15 @@ static gunichar
et_get_character_at_offset (AtkText *text,
gint offset)
{
- const char *full_text = et_get_full_text (text);
- char *at_offset;
+ const gchar *full_text = et_get_full_text (text);
+ gchar *at_offset;
at_offset = g_utf8_offset_to_pointer (full_text, offset);
return g_utf8_get_char_validated (at_offset, -1);
}
-static gchar*
+static gchar *
et_get_text_before_offset (AtkText *text,
gint offset,
AtkTextBoundary boundary_type,
@@ -428,7 +428,7 @@ et_get_text_before_offset (AtkText *text,
gint *end_offset)
{
gint start, end, len;
- const char *full_text = et_get_full_text (text);
+ const gchar *full_text = et_get_full_text (text);
g_return_val_if_fail (full_text, NULL);
switch (boundary_type)
@@ -478,7 +478,7 @@ et_get_caret_offset (AtkText *text)
{
GObject *obj;
EText *etext;
- int offset;
+ gint offset;
g_return_val_if_fail (ATK_IS_GOBJECT_ACCESSIBLE(text), -1);
obj = atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (text));
@@ -588,7 +588,7 @@ et_get_character_extents (AtkText *text,
static gint
et_get_character_count (AtkText *text)
{
- const char *full_text = et_get_full_text (text);
+ const gchar *full_text = et_get_full_text (text);
return g_utf8_strlen (full_text, -1);
}
@@ -606,8 +606,8 @@ et_get_offset_at_point (AtkText *text,
gint x_widget, y_widget, x_window, y_window;
GdkWindow *window;
GtkWidget *widget;
- int index;
- int trailing;
+ gint index;
+ gint trailing;
g_return_val_if_fail (ATK_IS_GOBJECT_ACCESSIBLE(text), -1);
obj = atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (text));
@@ -670,7 +670,7 @@ et_get_n_selections (AtkText *text)
}
-static gchar*
+static gchar *
et_get_selection (AtkText *text,
gint selection_num,
gint *start_offset,
@@ -679,7 +679,7 @@ et_get_selection (AtkText *text,
gint start, end, real_start, real_end, len;
EText *etext;
if (selection_num == 0) {
- const char *full_text = et_get_full_text (text);
+ const gchar *full_text = et_get_full_text (text);
if (full_text == NULL)
return NULL;
len = g_utf8_strlen (full_text, -1);
@@ -842,9 +842,9 @@ et_insert_text (AtkEditableText *text,
gint *position)
{
/* Utf8 unimplemented */
- char *result;
+ gchar *result;
- const char *full_text = et_get_full_text (ATK_TEXT (text));
+ const gchar *full_text = et_get_full_text (ATK_TEXT (text));
if (full_text == NULL)
return;
diff --git a/a11y/ea-cell-table.c b/a11y/ea-cell-table.c
index 8c0b9ee253..95ae59dea4 100644
--- a/a11y/ea-cell-table.c
+++ b/a11y/ea-cell-table.c
@@ -36,11 +36,11 @@ ea_cell_table_create (gint rows, gint columns, gboolean column_first)
cell_data->columns = columns;
cell_data->rows = rows;
- cell_data->column_labels = g_new0 (gchar*, columns);
+ cell_data->column_labels = g_new0 (gchar *, columns);
for (index = columns -1; index >= 0; --index)
cell_data->column_labels [index] = NULL;
- cell_data->row_labels = g_new0 (gchar*, rows);
+ cell_data->row_labels = g_new0 (gchar *, rows);
for (index = rows -1; index >= 0; --index)
cell_data->row_labels [index] = NULL;
@@ -142,7 +142,7 @@ ea_cell_table_set_cell_at_index (EaCellTable * cell_data,
return TRUE;
}
-G_CONST_RETURN gchar*
+G_CONST_RETURN gchar *
ea_cell_table_get_column_label (EaCellTable * cell_data,
gint column)
{
@@ -164,7 +164,7 @@ ea_cell_table_set_column_label (EaCellTable * cell_data,
cell_data->column_labels[column] = g_strdup(label);
}
-G_CONST_RETURN gchar*
+G_CONST_RETURN gchar *
ea_cell_table_get_row_label (EaCellTable * cell_data,
gint row)
{
diff --git a/a11y/ea-cell-table.h b/a11y/ea-cell-table.h
index f8674ec42a..353bbd0634 100644
--- a/a11y/ea-cell-table.h
+++ b/a11y/ea-cell-table.h
@@ -48,11 +48,11 @@ gpointer ea_cell_table_get_cell_at_index (EaCellTable * cell_data,
gboolean ea_cell_table_set_cell_at_index (EaCellTable * cell_data,
gint index, gpointer cell);
-G_CONST_RETURN gchar*
+G_CONST_RETURN gchar *
ea_cell_table_get_column_label (EaCellTable * cell_data, gint column);
void ea_cell_table_set_column_label (EaCellTable * cell_data,
gint column, const gchar *label);
-G_CONST_RETURN gchar*
+G_CONST_RETURN gchar *
ea_cell_table_get_row_label (EaCellTable * cell_data, gint row);
void ea_cell_table_set_row_label (EaCellTable * cell_data,
gint row, const gchar *label);
diff --git a/a11y/ea-factory.h b/a11y/ea-factory.h
index dcf6a1382f..2331f54a0b 100644
--- a/a11y/ea-factory.h
+++ b/a11y/ea-factory.h
@@ -78,7 +78,7 @@ type_as_function ## _factory_get_type (void) \
\
if (!t) \
{ \
- char *name; \
+ gchar *name; \
static const GTypeInfo tinfo = \
{ \
sizeof (AtkObjectFactoryClass), \
diff --git a/a11y/gal-a11y-factory.h b/a11y/gal-a11y-factory.h
index 1ef8292eba..678689c2a4 100644
--- a/a11y/gal-a11y-factory.h
+++ b/a11y/gal-a11y-factory.h
@@ -66,7 +66,7 @@ type_as_function ## _factory_get_type (void) \
\
if (!t) \
{ \
- char *name; \
+ gchar *name; \
static const GTypeInfo tinfo = \
{ \
sizeof (AtkObjectFactoryClass), \
diff --git a/a11y/gal-a11y-util.h b/a11y/gal-a11y-util.h
index dedad9e049..87a9f15981 100644
--- a/a11y/gal-a11y-util.h
+++ b/a11y/gal-a11y-util.h
@@ -30,7 +30,7 @@ GType gal_a11y_type_register_static_with_private (GType parent_type,
const gchar *type_name,
GTypeInfo *info,
GTypeFlags flags,
- int priv_size,
+ gint priv_size,
gint *priv_offset);
#endif /* ! __GAL_A11Y_UTIL_H__ */
diff --git a/a11y/widgets/ea-calendar-cell.c b/a11y/widgets/ea-calendar-cell.c
index 5b4e9f1d8c..ab103bf1ef 100644
--- a/a11y/widgets/ea-calendar-cell.c
+++ b/a11y/widgets/ea-calendar-cell.c
@@ -80,7 +80,7 @@ e_calendar_cell_new (ECalendarItem *calitem, gint row, gint column)
cell->column = column;
#ifdef ACC_DEBUG
- g_print ("EvoAcc: e_calendar_cell created %p\n", (void *)cell);
+ g_print ("EvoAcc: e_calendar_cell created %p\n", (gpointer)cell);
#endif
return cell;
@@ -91,8 +91,8 @@ e_calendar_cell_new (ECalendarItem *calitem, gint row, gint column)
static void ea_calendar_cell_class_init (EaCalendarCellClass *klass);
static void ea_calendar_cell_init (EaCalendarCell *a11y);
-static G_CONST_RETURN gchar* ea_calendar_cell_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_calendar_cell_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_calendar_cell_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_calendar_cell_get_description (AtkObject *accessible);
static AtkObject * ea_calendar_cell_get_parent (AtkObject *accessible);
static gint ea_calendar_cell_get_index_in_parent (AtkObject *accessible);
static AtkStateSet *ea_calendar_cell_ref_state_set (AtkObject *accessible);
@@ -209,7 +209,7 @@ static void ea_calendar_cell_finalize (GObject *object)
}
#endif
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_calendar_cell_get_name (AtkObject *accessible)
{
GObject *g_obj;
@@ -243,7 +243,7 @@ ea_calendar_cell_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_calendar_cell_get_description (AtkObject *accessible)
{
return ea_calendar_cell_get_name (accessible);
diff --git a/a11y/widgets/ea-calendar-item.c b/a11y/widgets/ea-calendar-item.c
index fdb109d5e6..17795c51a5 100644
--- a/a11y/widgets/ea-calendar-item.c
+++ b/a11y/widgets/ea-calendar-item.c
@@ -38,8 +38,8 @@
static void ea_calendar_item_class_init (EaCalendarItemClass *klass);
static void ea_calendar_item_finalize (GObject *object);
-static G_CONST_RETURN gchar* ea_calendar_item_get_name (AtkObject *accessible);
-static G_CONST_RETURN gchar* ea_calendar_item_get_description (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_calendar_item_get_name (AtkObject *accessible);
+static G_CONST_RETURN gchar * ea_calendar_item_get_description (AtkObject *accessible);
static gint ea_calendar_item_get_n_children (AtkObject *accessible);
static AtkObject *ea_calendar_item_ref_child (AtkObject *accessible, gint index);
static AtkStateSet* ea_calendar_item_ref_state_set (AtkObject *accessible);
@@ -88,10 +88,10 @@ static AtkObject* table_interface_get_column_header (AtkTable *table,
gint in_col);
static AtkObject* table_interface_get_caption (AtkTable *table);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_column_description (AtkTable *table, gint in_col);
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_row_description (AtkTable *table, gint row);
static AtkObject* table_interface_get_summary (AtkTable *table);
@@ -263,7 +263,7 @@ ea_calendar_item_finalize (GObject *object)
#endif
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_calendar_item_get_name (AtkObject *accessible)
{
GObject *g_obj;
@@ -329,7 +329,7 @@ ea_calendar_item_get_name (AtkObject *accessible)
return accessible->name;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_calendar_item_get_description (AtkObject *accessible)
{
if (accessible->description)
@@ -782,7 +782,7 @@ table_interface_get_caption (AtkTable *table)
return NULL;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_column_description (AtkTable *table, gint in_col)
{
AtkGObjectAccessible *atk_gobj;
@@ -816,7 +816,7 @@ table_interface_get_column_description (AtkTable *table, gint in_col)
return description;
}
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
table_interface_get_row_description (AtkTable *table, gint row)
{
AtkGObjectAccessible *atk_gobj;
diff --git a/a11y/widgets/ea-combo-button.c b/a11y/widgets/ea-combo-button.c
index c5180c3927..e25aa7f377 100644
--- a/a11y/widgets/ea-combo-button.c
+++ b/a11y/widgets/ea-combo-button.c
@@ -37,7 +37,7 @@ enum {
};
/* Static functions */
-static G_CONST_RETURN gchar*
+static G_CONST_RETURN gchar *
ea_combo_button_get_name (AtkObject *a11y)
{
GtkWidget *widget;
diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c
index aa7bb74c6a..c82726276c 100644
--- a/addressbook/conduit/address-conduit.c
+++ b/addressbook/conduit/address-conduit.c
@@ -96,7 +96,7 @@ static EContactField priority [] = {
E_CONTACT_FIELD_LAST
};
-static int priority_label [] = {
+static gint priority_label [] = {
LABEL_WORK,
LABEL_HOME,
LABEL_FAX,
@@ -168,10 +168,10 @@ struct _EAddrConduitCfg {
* this function (see e_pilot_utf8_to_pchar() in e-pilot-util.c)
*/
static int
-e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *category)
+e_pilot_add_category_if_possible(gchar *cat_to_add, struct CategoryAppInfo *category)
{
- int i, j;
- int retval = 0; /* 0 is the Unfiled category */
+ gint i, j;
+ gint retval = 0; /* 0 is the Unfiled category */
LOG(g_message("e_pilot_add_category_if_possible\n"));
for(i=0; i<PILOT_MAX_CATEGORIES; i++){
@@ -179,14 +179,14 @@ e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *categ
the PalmOS doesn't let 0-length strings for
categories */
if(strlen(category->name[i]) == 0){
- int cat_to_add_len;
- int desktopUniqueID;
+ gint cat_to_add_len;
+ gint desktopUniqueID;
cat_to_add_len = strlen(cat_to_add);
retval = i;
if(cat_to_add_len > 15){
- char tmpstr[16];
+ gchar tmpstr[16];
strncpy(tmpstr, cat_to_add,16);
tmpstr[16] = '\0';
/* Have to truncate the category name */
@@ -214,7 +214,7 @@ e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *categ
* we don't have much use for it at present.
*/
for (desktopUniqueID = 128; desktopUniqueID <= 255; desktopUniqueID++) {
- int found = 0;
+ gint found = 0;
for(j=0; j<PILOT_MAX_CATEGORIES; j++){
if (category->ID[j] == desktopUniqueID) {
found = 1;
@@ -252,22 +252,22 @@ e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *categ
* is set to zero ("Unfiled").
*/
static
-void e_pilot_local_category_to_remote(int * pilotCategory,
+void e_pilot_local_category_to_remote(gint * pilotCategory,
EContact *contact, struct CategoryAppInfo *category)
{
GList *c_list = NULL, *l;
- char * category_string, *first_category = NULL;
- int i;
+ gchar * category_string, *first_category = NULL;
+ gint i;
*pilotCategory = 0; /* default to "Unfiled" */
c_list = e_contact_get (contact, E_CONTACT_CATEGORY_LIST);
if (c_list) {
/* remember the first category */
- first_category = e_pilot_utf8_to_pchar((const char *)c_list->data);
+ first_category = e_pilot_utf8_to_pchar((const gchar *)c_list->data);
}
l = c_list;
while(l && *pilotCategory == 0) {
/* list != 0, so at least 1 category is assigned */
- category_string = e_pilot_utf8_to_pchar((const char *)l->data);
+ category_string = e_pilot_utf8_to_pchar((const gchar *)l->data);
for (i=0; i < PILOT_MAX_CATEGORIES; i++) {
/* only 15 chars + nul in palm category name */
if (strncmp(category_string,category->name[i], 15) == 0) {
@@ -297,10 +297,10 @@ void e_pilot_local_category_to_remote(int * pilotCategory,
* conversion from a palm category to an evolution category
*/
static
-void e_pilot_remote_category_to_local(int pilotCategory,
+void e_pilot_remote_category_to_local(gint pilotCategory,
EContact *contact, struct CategoryAppInfo *category)
{
- char *category_string = NULL;
+ gchar *category_string = NULL;
if (pilotCategory != 0) {
/* pda has category assigned */
@@ -345,17 +345,17 @@ void e_pilot_remote_category_to_local(int pilotCategory,
}
}
-static char *
-build_setup_path (const char *path, const char *key)
+static gchar *
+build_setup_path (const gchar *path, const gchar *key)
{
return g_strconcat ("/apps/evolution/conduit", "/", path, "/", key, NULL);
}
static gboolean
-e_pilot_setup_get_bool (const char *path, const char *key, gboolean def)
+e_pilot_setup_get_bool (const gchar *path, const gchar *key, gboolean def)
{
gboolean res = def;
- char *full_path;
+ gchar *full_path;
GConfValue *value;
GConfClient *gconf;
@@ -380,10 +380,10 @@ e_pilot_setup_get_bool (const char *path, const char *key, gboolean def)
}
static void
-e_pilot_setup_set_bool (const char *path, const char *key, gboolean value)
+e_pilot_setup_set_bool (const gchar *path, const gchar *key, gboolean value)
{
GError *error = NULL;
- char *full_path;
+ gchar *full_path;
GConfClient *gconf;
g_return_if_fail (path != NULL);
@@ -403,11 +403,11 @@ e_pilot_setup_set_bool (const char *path, const char *key, gboolean value)
}
}
-static char *
-e_pilot_setup_get_string (const char *path, const char *key, const char *def)
+static gchar *
+e_pilot_setup_get_string (const gchar *path, const gchar *key, const gchar *def)
{
- char *res = g_strdup (def);
- char *full_path;
+ gchar *res = g_strdup (def);
+ gchar *full_path;
GConfValue *value;
GConfClient *gconf;
@@ -434,10 +434,10 @@ e_pilot_setup_get_string (const char *path, const char *key, const char *def)
}
static void
-e_pilot_setup_set_string (const char *path, const char *key, const char *value)
+e_pilot_setup_set_string (const gchar *path, const gchar *key, const gchar *value)
{
GError *error = NULL;
- char *full_path;
+ gchar *full_path;
GConfClient *gconf;
g_return_if_fail (path != NULL);
@@ -578,7 +578,7 @@ e_addr_gui_new (EPilotSettings *ps)
EAddrConduitGui *gui;
GtkWidget *lbl;
gint rows, i;
- static const char *items[] = {"Business", "Home", "Other", NULL};
+ static const gchar *items[] = {"Business", "Home", "Other", NULL};
g_return_val_if_fail (ps != NULL, NULL);
g_return_val_if_fail (E_IS_PILOT_SETTINGS (ps), NULL);
@@ -603,7 +603,7 @@ e_addr_gui_new (EPilotSettings *ps)
return gui;
}
-static const int default_address_map[] = {
+static const gint default_address_map[] = {
E_CONTACT_ADDRESS_WORK,
E_CONTACT_ADDRESS_HOME,
E_CONTACT_ADDRESS_OTHER,
@@ -721,7 +721,7 @@ e_addr_context_destroy (EAddrConduitContext *ctxt)
static const gchar *
print_local (EAddrLocalRecord *local)
{
- static char buff[ 4096 ];
+ static gchar buff[ 4096 ];
if (local == NULL) {
sprintf (buff, "[NULL]");
@@ -742,9 +742,9 @@ print_local (EAddrLocalRecord *local)
return "";
}
-static char *print_remote (GnomePilotRecord *remote)
+static gchar *print_remote (GnomePilotRecord *remote)
{
- static char buff[ 4096 ];
+ static gchar buff[ 4096 ];
struct Address addr;
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
@@ -786,10 +786,10 @@ static char *print_remote (GnomePilotRecord *remote)
}
/* Utility routines */
-static char *
+static gchar *
map_name (EAddrConduitContext *ctxt)
{
- char *filename = NULL;
+ gchar *filename = NULL;
filename = g_strdup_printf ("%s/.evolution/addressbook/local/system/pilot-map-%d.xml", g_get_home_dir (), ctxt->cfg->pilot_id);
@@ -951,15 +951,15 @@ is_syncable (EAddrConduitContext *ctxt, EAddrLocalRecord *local)
EContactField next_mail, next_home, next_work, next_fax;
EContactField next_other, next_main, next_pager, next_mobile;
gboolean syncable = TRUE;
- int i, l = 0;
+ gint i, l = 0;
/* See if there are fields we can't sync or not in priority order */
get_next_init (&next_mail, &next_home, &next_work, &next_fax,
&next_other, &next_main, &next_pager, &next_mobile);
for (i = entryPhone1; i <= entryPhone5 && syncable; i++) {
- int phonelabel = local->addr->phoneLabel[i - entryPhone1];
- const char *phone_str = local->addr->entry[i];
+ gint phonelabel = local->addr->phoneLabel[i - entryPhone1];
+ const gchar *phone_str = local->addr->entry[i];
gboolean empty = !(phone_str && *phone_str);
if (empty)
@@ -1029,9 +1029,9 @@ is_syncable (EAddrConduitContext *ctxt, EAddrLocalRecord *local)
}
static void
-set_contact_text (EContact *contact, EContactField field, struct Address address, int entry)
+set_contact_text (EContact *contact, EContactField field, struct Address address, gint entry)
{
- char *text = NULL;
+ gchar *text = NULL;
if (address.entry[entry])
text = e_pilot_utf8_from_pchar (address.entry[entry]);
@@ -1041,8 +1041,8 @@ set_contact_text (EContact *contact, EContactField field, struct Address address
g_free (text);
}
-static char *
-get_entry_text (struct Address address, int entry)
+static gchar *
+get_entry_text (struct Address address, gint entry)
{
if (address.entry[entry])
return e_pilot_utf8_from_pchar (address.entry[entry]);
@@ -1051,7 +1051,7 @@ get_entry_text (struct Address address, int entry)
}
static void
-clear_entry_text (struct Address address, int field)
+clear_entry_text (struct Address address, gint field)
{
if (address.entry[field]) {
free (address.entry[field]);
@@ -1060,7 +1060,7 @@ clear_entry_text (struct Address address, int field)
}
static void
-compute_status (EAddrConduitContext *ctxt, EAddrLocalRecord *local, const char *uid)
+compute_status (EAddrConduitContext *ctxt, EAddrLocalRecord *local, const gchar *uid)
{
EBookChange *ebc;
@@ -1095,7 +1095,7 @@ local_record_to_pilot_record (EAddrLocalRecord *local,
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
#else
- static char record[0xffff];
+ static gchar record[0xffff];
#endif
g_assert (local->addr != NULL );
@@ -1127,7 +1127,7 @@ local_record_to_pilot_record (EAddrLocalRecord *local,
pi_buffer_free(buffer);
#else
- p.record = (unsigned char *)record;
+ p.record = (guchar *)record;
p.length = pack_Address (local->addr, p.record, 0xffff);
#endif
return p;
@@ -1137,10 +1137,10 @@ static void
local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrConduitContext *ctxt)
{
EContactAddress *address = NULL;
- int phone = entryPhone1;
+ gint phone = entryPhone1;
EContactField field;
gboolean syncable;
- int i;
+ gint i;
g_return_if_fail (local != NULL);
g_return_if_fail (contact != NULL);
@@ -1157,7 +1157,7 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
*/
if (local->local.ID != 0) {
struct Address addr;
- int cat = 0;
+ gint cat = 0;
#ifdef PILOT_LINK_0_12
pi_buffer_t * record;
record = pi_buffer_new(DLP_BUF_SIZE);
@@ -1166,7 +1166,7 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
return;
}
#else
- char record[0xffff];
+ gchar record[0xffff];
#endif
if (dlp_ReadRecordById (ctxt->dbi->pilot_socket,
@@ -1183,7 +1183,7 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
#ifdef PILOT_LINK_0_12
unpack_Address (&addr, record, address_v1);
#else
- unpack_Address (&addr, (unsigned char *)record, 0xffff);
+ unpack_Address (&addr, (guchar *)record, 0xffff);
#endif
for (i = 0; i < 5; i++) {
if (addr.entry[entryPhone1 + i])
@@ -1224,7 +1224,7 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
}
if (address) {
- char *add;
+ gchar *add;
/* If the address has 2 lines, make sure both get added */
if (address->ext != NULL &&
@@ -1258,7 +1258,7 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
/* Sync by priority */
for (i = 0, phone = entryPhone1;
priority[i] != E_CONTACT_FIELD_LAST && phone <= entryPhone5; i++) {
- const char *phone_str;
+ const gchar *phone_str;
phone_str = e_contact_get_const (contact, priority[i]);
if (phone_str && *phone_str) {
@@ -1281,8 +1281,8 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
/* Not completely syncable, so do the best we can */
for (i = entryPhone1; i <= entryPhone5; i++) {
- int phonelabel = local->addr->phoneLabel[i - entryPhone1];
- const char *phone_str = NULL;
+ gint phonelabel = local->addr->phoneLabel[i - entryPhone1];
+ const gchar *phone_str = NULL;
if (phonelabel == LABEL_EMAIL && !is_next_done (next_mail)) {
phone_str = e_contact_get_const (contact, next_mail);
@@ -1323,11 +1323,11 @@ local_record_from_ecard (EAddrLocalRecord *local, EContact *contact, EAddrCondui
static void
local_record_from_uid (EAddrLocalRecord *local,
- const char *uid,
+ const gchar *uid,
EAddrConduitContext *ctxt)
{
EContact *contact = NULL;
- const char *cuid;
+ const gchar *cuid;
GList *l;
g_assert (local != NULL);
@@ -1362,10 +1362,10 @@ ecard_from_remote_record(EAddrConduitContext *ctxt,
EContactName *name;
EContactAddress *eaddress;
EContactField mailing_address;
- char *txt, *find, *full_name;
+ gchar *txt, *find, *full_name;
EContactField next_mail, next_home, next_work, next_fax;
EContactField next_other, next_main, next_pager, next_mobile;
- int i;
+ gint i;
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
#endif
@@ -1460,8 +1460,8 @@ ecard_from_remote_record(EAddrConduitContext *ctxt,
&next_other, &next_main, &next_pager, &next_mobile);
for (i = entryPhone1; i <= entryPhone5; i++) {
- int phonelabel = address.phoneLabel[i - entryPhone1];
- char *phonenum = get_entry_text (address, i);
+ gint phonelabel = address.phoneLabel[i - entryPhone1];
+ gchar *phonenum = get_entry_text (address, i);
if (phonelabel == LABEL_EMAIL && !is_next_done (next_mail)) {
e_contact_set (contact, next_mail, phonenum);
@@ -1504,8 +1504,8 @@ static void
check_for_slow_setting (GnomePilotConduit *c, EAddrConduitContext *ctxt)
{
GnomePilotConduitStandard *conduit = GNOME_PILOT_CONDUIT_STANDARD (c);
- int map_count;
- const char *uri;
+ gint map_count;
+ const gchar *uri;
map_count = g_hash_table_size (ctxt->map->pid_map);
if (map_count == 0)
@@ -1580,15 +1580,15 @@ pre_sync (GnomePilotConduit *conduit,
GnomePilotConduitSyncAbs *abs_conduit;
EBookQuery *query;
GList *l;
- int len;
- char *filename;
- char *change_id;
- char *auth;
+ gint len;
+ gchar *filename;
+ gchar *change_id;
+ gchar *auth;
gint num_records, add_records = 0, mod_records = 0, del_records = 0;
#ifdef PILOT_LINK_0_12
pi_buffer_t *buffer;
#else
- unsigned char *buf;
+ guchar *buf;
#endif
abs_conduit = GNOME_PILOT_CONDUIT_SYNC_ABS (conduit);
@@ -1645,7 +1645,7 @@ pre_sync (GnomePilotConduit *conduit,
for (l = ctxt->changed; l != NULL; l = l->next) {
EBookChange *ebc = l->data;
- const char *uid;
+ const gchar *uid;
uid = e_contact_get_const (ebc->contact, E_CONTACT_UID);
if (!e_pilot_map_uid_is_archived (ctxt->map, uid)) {
@@ -1684,9 +1684,9 @@ pre_sync (GnomePilotConduit *conduit,
len = dlp_ReadAppBlock (dbi->pilot_socket, dbi->db_handle, 0,
DLP_BUF_SIZE, buffer);
#else
- buf = (unsigned char*)g_malloc (0xffff);
+ buf = (guchar *)g_malloc (0xffff);
len = dlp_ReadAppBlock (dbi->pilot_socket, dbi->db_handle, 0,
- (unsigned char *)buf, 0xffff);
+ (guchar *)buf, 0xffff);
#endif
if (len < 0) {
WARN (_("Could not read pilot's Address application block"));
@@ -1717,18 +1717,18 @@ post_sync (GnomePilotConduit *conduit,
{
GList *changed;
gchar *filename, *change_id;
- unsigned char *buf;
- int dlpRetVal, len;
+ guchar *buf;
+ gint dlpRetVal, len;
LOG (g_message ( "post_sync: Address Conduit v.%s", CONDUIT_VERSION ));
/* Write AppBlock to PDA - updates categories */
- buf = (unsigned char*)g_malloc (0xffff);
+ buf = (guchar *)g_malloc (0xffff);
len = pack_AddressAppInfo (&(ctxt->ai), buf, 0xffff);
dlpRetVal = dlp_WriteAppBlock (dbi->pilot_socket, dbi->db_handle,
- (unsigned char *)buf, len);
+ (guchar *)buf, len);
g_free (buf);
@@ -1779,7 +1779,7 @@ set_status_cleared (GnomePilotConduitSyncAbs *conduit,
EAddrLocalRecord *local,
EAddrConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ( "set_status_cleared: clearing status\n" ));
@@ -1795,7 +1795,7 @@ for_each (GnomePilotConduitSyncAbs *conduit,
EAddrConduitContext *ctxt)
{
static GList *cards, *iterator;
- static int count;
+ static gint count;
g_return_val_if_fail (local != NULL, -1);
@@ -1845,7 +1845,7 @@ for_each_modified (GnomePilotConduitSyncAbs *conduit,
EAddrConduitContext *ctxt)
{
static GList *iterator;
- static int count;
+ static gint count;
g_return_val_if_fail (local != NULL, 0);
@@ -1899,7 +1899,7 @@ compare (GnomePilotConduitSyncAbs *conduit,
EAddrConduitContext *ctxt)
{
GnomePilotRecord local_pilot;
- int retval = 0;
+ gint retval = 0;
LOG (g_message ("compare: local=%s remote=%s...\n",
print_local (local), print_remote (remote)));
@@ -1927,7 +1927,7 @@ add_record (GnomePilotConduitSyncAbs *conduit,
EAddrConduitContext *ctxt)
{
EContact *contact;
- int retval = 0;
+ gint retval = 0;
g_return_val_if_fail (remote != NULL, -1);
@@ -1958,8 +1958,8 @@ replace_record (GnomePilotConduitSyncAbs *conduit,
{
EContact *new_contact;
EBookChange *ebc;
- char *old_id;
- int retval = 0;
+ gchar *old_id;
+ gint retval = 0;
g_return_val_if_fail (remote != NULL, -1);
@@ -1990,7 +1990,7 @@ replace_record (GnomePilotConduitSyncAbs *conduit,
/* Adding a record causes wombat to assign a new uid so we must tidy */
if (ebc && ebc->change_type == E_BOOK_CHANGE_CARD_DELETED) {
- const char *uid = e_contact_get_const (local->contact, E_CONTACT_UID);
+ const gchar *uid = e_contact_get_const (local->contact, E_CONTACT_UID);
gboolean arch;
arch = e_pilot_map_uid_is_archived (ctxt->map, uid);
@@ -2016,7 +2016,7 @@ delete_record (GnomePilotConduitSyncAbs *conduit,
EAddrConduitContext *ctxt)
{
GError *error = NULL;
- int retval = 0;
+ gint retval = 0;
g_return_val_if_fail (local != NULL, -1);
g_return_val_if_fail (local->contact != NULL, -1);
@@ -2040,7 +2040,7 @@ archive_record (GnomePilotConduitSyncAbs *conduit,
gboolean archive,
EAddrConduitContext *ctxt)
{
- int retval = 0;
+ gint retval = 0;
g_return_val_if_fail (local != NULL, -1);
@@ -2057,7 +2057,7 @@ match (GnomePilotConduitSyncAbs *conduit,
EAddrLocalRecord **local,
EAddrConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ("match: looking for local copy of %s\n",
print_remote (remote)));
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index 2c1d5caa9b..ec715b7cb9 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -61,7 +61,7 @@ static BonoboObjectClass *parent_class = NULL;
struct _AddressbookComponentPrivate {
GConfClient *gconf_client;
- char *base_directory;
+ gchar *base_directory;
GList *views;
};
@@ -71,7 +71,7 @@ ensure_sources (AddressbookComponent *component)
ESourceList *source_list;
ESourceGroup *on_this_computer;
ESource *personal_source;
- char *base_uri, *base_uri_proto, base_uri_proto_seventh;
+ gchar *base_uri, *base_uri_proto, base_uri_proto_seventh;
const gchar *base_dir;
personal_source = NULL;
@@ -204,28 +204,28 @@ impl__get_userCreatableItems (PortableServer_Servant servant,
CORBA_sequence_set_release (list, FALSE);
- list->_buffer[0].id = (char *) "contact";
+ list->_buffer[0].id = (gchar *) "contact";
list->_buffer[0].description = _("New Contact");
- list->_buffer[0].menuDescription = (char *) C_("New", "_Contact");
+ list->_buffer[0].menuDescription = (gchar *) C_("New", "_Contact");
list->_buffer[0].tooltip = _("Create a new contact");
list->_buffer[0].menuShortcut = 'c';
- list->_buffer[0].iconName = (char *) "contact-new";
+ list->_buffer[0].iconName = (gchar *) "contact-new";
list->_buffer[0].type = GNOME_Evolution_CREATABLE_OBJECT;
- list->_buffer[1].id = (char *) "contact_list";
+ list->_buffer[1].id = (gchar *) "contact_list";
list->_buffer[1].description = _("New Contact List");
- list->_buffer[1].menuDescription = (char *) C_("New", "Contact _List");
+ list->_buffer[1].menuDescription = (gchar *) C_("New", "Contact _List");
list->_buffer[1].tooltip = _("Create a new contact list");
list->_buffer[1].menuShortcut = 'l';
- list->_buffer[1].iconName = (char *) "stock_contact-list";
+ list->_buffer[1].iconName = (gchar *) "stock_contact-list";
list->_buffer[1].type = GNOME_Evolution_CREATABLE_OBJECT;
- list->_buffer[2].id = (char *) "address_book";
+ list->_buffer[2].id = (gchar *) "address_book";
list->_buffer[2].description = _("New Address Book");
- list->_buffer[2].menuDescription = (char *) C_("New", "Address _Book");
+ list->_buffer[2].menuDescription = (gchar *) C_("New", "Address _Book");
list->_buffer[2].tooltip = _("Create a new address book");
list->_buffer[2].menuShortcut = '\0';
- list->_buffer[2].iconName = (char *) "address-book-new";
+ list->_buffer[2].iconName = (gchar *) "address-book-new";
list->_buffer[2].type = GNOME_Evolution_CREATABLE_FOLDER;
return list;
@@ -235,7 +235,7 @@ static void
book_loaded_cb (EBook *book, EBookStatus status, gpointer data)
{
EContact *contact;
- char *item_type_name = data;
+ gchar *item_type_name = data;
if (status != E_BOOK_ERROR_OK) {
/* XXX we really need a dialog here, but we don't have
@@ -267,7 +267,7 @@ impl_requestCreateItem (PortableServer_Servant servant,
EBook *book;
GConfClient *gconf_client;
ESourceList *source_list;
- char *uid;
+ gchar *uid;
if (!item_type_name ||
(strcmp (item_type_name, "address_book") &&
@@ -310,7 +310,7 @@ impl_requestCreateItem (PortableServer_Servant servant,
static void
impl_handleURI (PortableServer_Servant servant,
- const char* uri,
+ const gchar * uri,
CORBA_Environment *ev)
{
AddressbookComponent *addressbook_component = ADDRESSBOOK_COMPONENT (bonobo_object_from_servant (servant));
@@ -318,8 +318,8 @@ impl_handleURI (PortableServer_Servant servant,
AddressbookView *view = NULL;
GList *l;
- char *src_uid = NULL;
- char *contact_uid = NULL;
+ gchar *src_uid = NULL;
+ gchar *contact_uid = NULL;
priv = addressbook_component->priv;
l = g_list_last (priv->views);
@@ -330,8 +330,8 @@ impl_handleURI (PortableServer_Servant servant,
if (!strncmp (uri, "contacts:", 9)) {
EUri *euri = e_uri_new (uri);
- const char *p;
- char *header, *content;
+ const gchar *p;
+ gchar *header, *content;
size_t len, clen;
p = euri->query;
@@ -343,7 +343,7 @@ impl_handleURI (PortableServer_Servant servant,
if (p[len] != '=')
break;
- header = (char *) p;
+ header = (gchar *) p;
header[len] = '\0';
p += len + 1;
@@ -462,7 +462,7 @@ static void
addressbook_component_init (AddressbookComponent *component)
{
AddressbookComponentPrivate *priv;
- static int first = TRUE;
+ static gint first = TRUE;
priv = g_new0 (AddressbookComponentPrivate, 1);
@@ -518,7 +518,7 @@ addressbook_component_peek_gconf_client (AddressbookComponent *component)
return component->priv->gconf_client;
}
-const char *
+const gchar *
addressbook_component_peek_base_directory (AddressbookComponent *component)
{
g_return_val_if_fail (ADDRESSBOOK_IS_COMPONENT (component), NULL);
diff --git a/addressbook/gui/component/addressbook-component.h b/addressbook/gui/component/addressbook-component.h
index 222ace82d7..4208994117 100644
--- a/addressbook/gui/component/addressbook-component.h
+++ b/addressbook/gui/component/addressbook-component.h
@@ -59,6 +59,6 @@ GType addressbook_component_get_type (void);
AddressbookComponent *addressbook_component_peek (void);
GConfClient *addressbook_component_peek_gconf_client (AddressbookComponent *component);
-const char *addressbook_component_peek_base_directory (AddressbookComponent *component);
+const gchar *addressbook_component_peek_base_directory (AddressbookComponent *component);
#endif /* _ADDRESSBOOK_COMPONENT_H_ */
diff --git a/addressbook/gui/component/addressbook-config.c b/addressbook/gui/component/addressbook-config.c
index ebb2d18b5d..46ab002ecb 100644
--- a/addressbook/gui/component/addressbook-config.c
+++ b/addressbook/gui/component/addressbook-config.c
@@ -75,8 +75,8 @@
#define CONFIG_CONTROL_FACTORY_ID "OAFIID:GNOME_Evolution_Addressbook_ConfigControlFactory:" BASE_VERSION
#define LDAP_CONFIG_CONTROL_ID "OAFIID:GNOME_Evolution_LDAPStorage_ConfigControl:" BASE_VERSION
-GtkWidget* supported_bases_create_table (char *name, char *string1, char *string2,
- int num1, int num2);
+GtkWidget* supported_bases_create_table (gchar *name, gchar *string1, gchar *string2,
+ gint num1, gint num2);
/* default objectclasses */
#define TOP "top"
@@ -152,7 +152,7 @@ ldap_unparse_auth (AddressbookLDAPAuthType auth_type)
}
static AddressbookLDAPAuthType
-ldap_parse_auth (const char *auth)
+ldap_parse_auth (const gchar *auth)
{
if (!auth)
return ADDRESSBOOK_LDAP_AUTH_NONE;
@@ -196,7 +196,7 @@ ldap_unparse_ssl (AddressbookLDAPSSLType ssl_type)
}
static AddressbookLDAPSSLType
-ldap_parse_ssl (const char *ssl)
+ldap_parse_ssl (const gchar *ssl)
{
if (!ssl)
return ADDRESSBOOK_LDAP_SSL_WHENEVER_POSSIBLE; /* XXX good default? */
@@ -209,7 +209,7 @@ ldap_parse_ssl (const char *ssl)
return ADDRESSBOOK_LDAP_SSL_WHENEVER_POSSIBLE;
}
-static const char *
+static const gchar *
ldap_get_ssl_tooltip (AddressbookLDAPSSLType ssl_type)
{
switch (ssl_type) {
@@ -271,8 +271,8 @@ addressbook_ldap_init (GtkWidget *window, ESource *source)
LDAP *ldap;
gchar *host;
gint port;
- int ldap_error;
- int protocol_version = LDAP_VERSION3;
+ gint ldap_error;
+ gint protocol_version = LDAP_VERSION3;
if (!source_to_uri_parts (source, &host, NULL, NULL, NULL, &port))
return NULL;
@@ -310,7 +310,7 @@ static int
addressbook_root_dse_query (AddressbookSourceDialog *dialog, LDAP *ldap,
const gchar **attrs, LDAPMessage **resp)
{
- int ldap_error;
+ gint ldap_error;
struct timeval timeout;
timeout.tv_sec = (gint) gtk_adjustment_get_value (GTK_RANGE(dialog->timeout_scale)->adjustment);
@@ -328,7 +328,7 @@ addressbook_root_dse_query (AddressbookSourceDialog *dialog, LDAP *ldap,
/* searching page */
GtkWidget*
-supported_bases_create_table (char *name, char *string1, char *string2, int num1, int num2)
+supported_bases_create_table (gchar *name, gchar *string1, gchar *string2, gint num1, gint num2)
{
GtkWidget *table, *scrolled;
GtkTreeSelection *selection;
@@ -359,10 +359,10 @@ do_ldap_root_dse_query (AddressbookSourceDialog *sdialog, GtkListStore *model, E
{
LDAP *ldap;
const gchar *attrs[2];
- int ldap_error;
- char **values;
+ gint ldap_error;
+ gchar **values;
LDAPMessage *resp;
- int i;
+ gint i;
ldap = addressbook_ldap_init (sdialog->window, source);
if (!ldap)
@@ -419,7 +419,7 @@ query_for_supported_bases (GtkWidget *button, AddressbookSourceDialog *sdialog)
GtkWidget *supported_bases_table;
GladeXML *gui;
GtkTreeIter iter;
- char *gladefile;
+ gchar *gladefile;
gladefile = g_build_filename (EVOLUTION_GLADEDIR,
GLADE_FILE_NAME,
@@ -450,7 +450,7 @@ query_for_supported_bases (GtkWidget *button, AddressbookSourceDialog *sdialog)
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK
&& gtk_tree_selection_get_selected (selection, &model, &iter)) {
- char *dn;
+ gchar *dn;
gtk_tree_model_get (model, &iter, 0, &dn, -1);
gtk_entry_set_text((GtkEntry *)sdialog->rootdn, dn);
@@ -474,7 +474,7 @@ addressbook_config_create_new_source (GtkWidget *parent)
static void
eabc_type_changed(GtkComboBox *dropdown, AddressbookSourceDialog *sdialog)
{
- int id = gtk_combo_box_get_active(dropdown);
+ gint id = gtk_combo_box_get_active(dropdown);
GtkTreeModel *model;
GtkTreeIter iter;
@@ -494,7 +494,7 @@ eabc_type_changed(GtkComboBox *dropdown, AddressbookSourceDialog *sdialog)
if (!strncmp(e_source_group_peek_base_uri(sdialog->source_group), "groupwise:", 10)) {
GSList *l;
ESource *source;
- char *tmp;
+ gchar *tmp;
l = e_source_group_peek_sources(sdialog->source_group);
if (l && l->data ) {
@@ -510,7 +510,7 @@ eabc_type_changed(GtkComboBox *dropdown, AddressbookSourceDialog *sdialog)
g_free (tmp);
#ifdef HAVE_LDAP
} else if (!strncmp(e_source_group_peek_base_uri(sdialog->source_group), "ldap:", 5)) {
- char *tmp;
+ gchar *tmp;
tmp = g_strdup_printf ("%s:%s/%s?" /* trigraph prevention */ "?%s",
"", LDAP_PORT_STRING,
@@ -529,7 +529,7 @@ eabc_type_changed(GtkComboBox *dropdown, AddressbookSourceDialog *sdialog)
}
static GtkWidget *
-eabc_general_type(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eabc_general_type(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
GtkComboBox *dropdown;
@@ -538,7 +538,7 @@ eabc_general_type(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, str
GtkTreeIter iter;
GSList *l;
GtkWidget *w, *label;
- int i, row = 0;
+ gint i, row = 0;
if (old)
return old;
@@ -595,13 +595,13 @@ offline_status_changed_cb (GtkWidget *widget, AddressbookSourceDialog *sdialog)
}
static GtkWidget *
-eabc_general_name(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eabc_general_name(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
- const char *uri;
+ const gchar *uri;
GtkWidget *w;
GladeXML *gui;
- char *gladefile;
+ gchar *gladefile;
if (old)
return old;
@@ -634,11 +634,11 @@ eabc_general_name(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, str
static GtkWidget *
-eabc_general_offline(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eabc_general_offline(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
GtkWidget *offline_setting;
- const char *offline_sync;
+ const gchar *offline_sync;
gboolean is_local_book;
is_local_book = g_str_has_prefix (e_source_group_peek_base_uri (sdialog->source_group), "file:");
@@ -701,7 +701,7 @@ host_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
static void
port_entry_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
{
- const char *port = gtk_entry_get_text((GtkEntry *)w);
+ const gchar *port = gtk_entry_get_text((GtkEntry *)w);
if (!strcmp (port, LDAPS_PORT_STRING)) {
sdialog->ssl = ADDRESSBOOK_LDAP_SSL_ALWAYS;
@@ -725,15 +725,15 @@ ssl_combobox_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
static GtkWidget *
-eabc_general_host(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eabc_general_host(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
- const char *tmp;
+ const gchar *tmp;
GtkWidget *w;
- char *uri, port[16];
+ gchar *uri, port[16];
LDAPURLDesc *lud;
GladeXML *gui;
- char *gladefile;
+ gchar *gladefile;
if (!source_group_is_remote(sdialog->source_group))
return NULL;
@@ -783,7 +783,7 @@ eabc_general_host(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, str
static void
auth_entry_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
{
- const char *principal = gtk_entry_get_text((GtkEntry *)w);
+ const gchar *principal = gtk_entry_get_text((GtkEntry *)w);
/* seems messy ... but the api is */
switch (sdialog->auth) {
@@ -814,13 +814,13 @@ auth_combobox_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
}
static GtkWidget *
-eabc_general_auth(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eabc_general_auth(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
GtkWidget *w;
- const char *tmp;
+ const gchar *tmp;
GladeXML *gui;
- char *gladefile;
+ gchar *gladefile;
if (!source_group_is_remote(sdialog->source_group))
return NULL;
@@ -883,14 +883,14 @@ scope_combobox_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
}
static GtkWidget *
-eabc_details_search(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eabc_details_search(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
GtkWidget *w;
LDAPURLDesc *lud;
- char *uri;
+ gchar *uri;
GladeXML *gui;
- char *gladefile;
+ gchar *gladefile;
if (!source_group_is_remote(sdialog->source_group))
return NULL;
@@ -951,7 +951,7 @@ eabc_details_search(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, s
static void
timeout_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
{
- char *timeout;
+ gchar *timeout;
timeout = g_strdup_printf("%f", gtk_adjustment_get_value(((GtkRange *)sdialog->timeout_scale)->adjustment));
e_source_set_property(sdialog->source, "timeout", timeout);
@@ -961,7 +961,7 @@ timeout_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
static void
limit_changed_cb(GtkWidget *w, AddressbookSourceDialog *sdialog)
{
- char limit[16];
+ gchar limit[16];
sprintf(limit, "%d", gtk_spin_button_get_value_as_int((GtkSpinButton *)sdialog->limit_spinbutton));
e_source_set_property(sdialog->source, "limit", limit);
@@ -977,13 +977,13 @@ canbrowse_toggled_cb (GtkWidget *toggle_button, ESource *source)
}
static GtkWidget *
-eabc_details_limit(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eabc_details_limit(EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
GtkWidget *w;
- const char *tmp;
+ const gchar *tmp;
GladeXML *gui;
- char *gladefile;
+ gchar *gladefile;
if (!source_group_is_remote(sdialog->source_group))
return NULL;
@@ -1045,18 +1045,18 @@ static EConfigItem eabc_new_items[] = {
};
static void
-eabc_commit(EConfig *ec, GSList *items, void *data)
+eabc_commit(EConfig *ec, GSList *items, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
xmlNodePtr xml;
#if d(!)0
- char *txt;
+ gchar *txt;
#endif
if (sdialog->original_source) {
d(printf("committing addressbook changes\n"));
/* these api's kinda suck */
- xml = xmlNewNode(NULL, (const unsigned char *)"dummy");
+ xml = xmlNewNode(NULL, (const guchar *)"dummy");
e_source_dump_to_xml_node(sdialog->source, xml);
e_source_update_from_xml_node(sdialog->original_source, xml->children, NULL);
xmlFreeNode(xml);
@@ -1079,7 +1079,7 @@ eabc_commit(EConfig *ec, GSList *items, void *data)
}
static void
-eabc_free(EConfig *ec, GSList *items, void *data)
+eabc_free(EConfig *ec, GSList *items, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
@@ -1098,11 +1098,11 @@ eabc_free(EConfig *ec, GSList *items, void *data)
}
static gboolean
-eabc_check_complete(EConfig *ec, const char *pageid, void *data)
+eabc_check_complete(EConfig *ec, const gchar *pageid, gpointer data)
{
AddressbookSourceDialog *sdialog = data;
- int valid = TRUE;
- const char *tmp;
+ gint valid = TRUE;
+ const gchar *tmp;
ESource *source;
d(printf("check complete, pageid = '%s'\n", pageid?pageid:"<all>"));
@@ -1114,7 +1114,7 @@ eabc_check_complete(EConfig *ec, const char *pageid, void *data)
#ifdef HAVE_LDAP
if (valid && source_group_is_remote(sdialog->source_group)) {
- char *uri = e_source_get_uri(sdialog->source);
+ gchar *uri = e_source_get_uri(sdialog->source);
LDAPURLDesc *lud;
/* check host and port set */
@@ -1158,7 +1158,7 @@ eabc_check_complete(EConfig *ec, const char *pageid, void *data)
static void
source_changed(ESource *source, AddressbookSourceDialog *sdialog)
{
- char *xml;
+ gchar *xml;
xml = e_source_to_standalone_xml(source);
printf("source changed:\n%s\n", xml);
@@ -1171,11 +1171,11 @@ addressbook_config_edit_source (GtkWidget *parent, ESource *source)
{
AddressbookSourceDialog *sdialog = g_new0 (AddressbookSourceDialog, 1);
EABConfig *ec;
- int i;
+ gint i;
GSList *items = NULL;
EABConfigTargetSource *target;
- char *xml;
- char *gladefile;
+ gchar *xml;
+ gchar *gladefile;
gladefile = g_build_filename (EVOLUTION_GLADEDIR,
GLADE_FILE_NAME,
diff --git a/addressbook/gui/component/addressbook-migrate.c b/addressbook/gui/component/addressbook-migrate.c
index ca691761c9..8017e8979f 100644
--- a/addressbook/gui/component/addressbook-migrate.c
+++ b/addressbook/gui/component/addressbook-migrate.c
@@ -106,7 +106,7 @@ dialog_close (MigrationContext *context)
}
static void
-dialog_set_label (MigrationContext *context, const char *str)
+dialog_set_label (MigrationContext *context, const gchar *str)
{
gtk_label_set_text (GTK_LABEL (context->label), str);
@@ -119,9 +119,9 @@ dialog_set_label (MigrationContext *context, const char *str)
}
static void
-dialog_set_folder_name (MigrationContext *context, const char *folder_name)
+dialog_set_folder_name (MigrationContext *context, const gchar *folder_name)
{
- char *text;
+ gchar *text;
text = g_strdup_printf (_("Migrating '%s':"), folder_name);
gtk_label_set_text (GTK_LABEL (context->folder_label), text);
@@ -140,7 +140,7 @@ dialog_set_folder_name (MigrationContext *context, const char *folder_name)
static void
dialog_set_progress (MigrationContext *context, double percent)
{
- char text[5];
+ gchar text[5];
snprintf (text, sizeof (text), "%d%%", (int) (percent * 100.0f));
@@ -156,7 +156,7 @@ dialog_set_progress (MigrationContext *context, double percent)
}
static gboolean
-check_for_conflict (ESourceGroup *group, char *name)
+check_for_conflict (ESourceGroup *group, gchar *name)
{
GSList *sources;
GSList *s;
@@ -173,16 +173,16 @@ check_for_conflict (ESourceGroup *group, char *name)
return FALSE;
}
-static char *
-get_source_name (ESourceGroup *group, const char *path)
+static gchar *
+get_source_name (ESourceGroup *group, const gchar *path)
{
#ifndef G_OS_WIN32
- char **p = g_strsplit (path, "/", 0);
+ gchar **p = g_strsplit (path, "/", 0);
#else
- char **p = g_strsplit_set (path, "\\/", 0);
+ gchar **p = g_strsplit_set (path, "\\/", 0);
#endif
- int i, j, starting_index;
- int num_elements;
+ gint i, j, starting_index;
+ gint num_elements;
gboolean conflict;
GString *s = g_string_new ("");
@@ -227,8 +227,8 @@ migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book)
{
EBookQuery *query = e_book_query_any_field_contains ("");
GList *l, *contacts;
- int num_added = 0;
- int num_contacts;
+ gint num_added = 0;
+ gint num_contacts;
/* both books are loaded, start the actual migration */
e_book_get_contacts (old_book, query, &contacts, NULL);
@@ -341,7 +341,7 @@ migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book)
"OTHER");
if (v && v->data) {
- if (!strncmp ((char*)v->data, "<?xml", 5)) {
+ if (!strncmp ((gchar *)v->data, "<?xml", 5)) {
/* k, this is the nasty part. we glomb all the
value strings back together again (if there is
more than one), then work our magic */
@@ -381,9 +381,9 @@ migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book)
}
static void
-migrate_contact_folder_to_source (MigrationContext *context, char *old_path, ESource *new_source)
+migrate_contact_folder_to_source (MigrationContext *context, gchar *old_path, ESource *new_source)
{
- char *old_uri = g_filename_to_uri (old_path, NULL, NULL);
+ gchar *old_uri = g_filename_to_uri (old_path, NULL, NULL);
GError *e = NULL;
EBook *old_book = NULL, *new_book = NULL;
@@ -423,7 +423,7 @@ migrate_contact_folder_to_source (MigrationContext *context, char *old_path, ESo
}
static void
-migrate_contact_folder (MigrationContext *context, char *old_path, ESourceGroup *dest_group, char *source_name)
+migrate_contact_folder (MigrationContext *context, gchar *old_path, ESourceGroup *dest_group, gchar *source_name)
{
ESource *new_source;
@@ -449,7 +449,7 @@ create_groups (MigrationContext *context,
{
GSList *groups;
ESourceGroup *group;
- char *base_uri, *base_uri_proto;
+ gchar *base_uri, *base_uri_proto;
const gchar *base_dir;
*on_this_computer = NULL;
@@ -528,9 +528,9 @@ create_groups (MigrationContext *context,
static gboolean
migrate_local_folders (MigrationContext *context, ESourceGroup *on_this_computer, ESource *personal_source)
{
- char *old_path = NULL;
+ gchar *old_path = NULL;
GSList *dirs, *l;
- char *local_contact_folder = NULL;
+ gchar *local_contact_folder = NULL;
old_path = g_strdup_printf ("%s/evolution/local", g_get_home_dir ());
@@ -542,15 +542,15 @@ migrate_local_folders (MigrationContext *context, ESourceGroup *on_this_computer
NULL);
for (l = dirs; l; l = l->next) {
- char *source_name;
+ gchar *source_name;
/* we handle the system folder differently */
- if (personal_source && !strcmp ((char*)l->data, local_contact_folder)) {
+ if (personal_source && !strcmp ((gchar *)l->data, local_contact_folder)) {
g_hash_table_insert (context->folder_uid_map, g_strdup (l->data), g_strdup (e_source_peek_uid (personal_source)));
migrate_contact_folder_to_source (context, local_contact_folder, personal_source);
continue;
}
- source_name = get_source_name (on_this_computer, (char*)l->data);
+ source_name = get_source_name (on_this_computer, (gchar *)l->data);
migrate_contact_folder (context, l->data, on_this_computer, source_name);
g_free (source_name);
}
@@ -563,13 +563,13 @@ migrate_local_folders (MigrationContext *context, ESourceGroup *on_this_computer
return TRUE;
}
-static char *
+static gchar *
get_string_child (xmlNode *node,
- const char *name)
+ const gchar *name)
{
xmlNode *p;
xmlChar *xml_string;
- char *retval;
+ gchar *retval;
p = e_xml_get_child_by_name (node, (xmlChar *) name);
if (p == NULL)
@@ -580,7 +580,7 @@ get_string_child (xmlNode *node,
return g_strdup("");
xml_string = xmlNodeListGetString (node->doc, p, 1);
- retval = g_strdup ((char *) xml_string);
+ retval = g_strdup ((gchar *) xml_string);
xmlFree (xml_string);
return retval;
@@ -588,12 +588,12 @@ get_string_child (xmlNode *node,
static int
get_integer_child (xmlNode *node,
- const char *name,
- int defval)
+ const gchar *name,
+ gint defval)
{
xmlNode *p;
xmlChar *xml_string;
- int retval;
+ gint retval;
p = e_xml_get_child_by_name (node, (xmlChar *) name);
if (p == NULL)
@@ -604,7 +604,7 @@ get_integer_child (xmlNode *node,
return defval;
xml_string = xmlNodeListGetString (node->doc, p, 1);
- retval = atoi ((char *)xml_string);
+ retval = atoi ((gchar *)xml_string);
xmlFree (xml_string);
return retval;
@@ -613,7 +613,7 @@ get_integer_child (xmlNode *node,
static gboolean
migrate_ldap_servers (MigrationContext *context, ESourceGroup *on_ldap_servers)
{
- char *sources_xml = g_strdup_printf ("%s/evolution/addressbook-sources.xml",
+ gchar *sources_xml = g_strdup_printf ("%s/evolution/addressbook-sources.xml",
g_get_home_dir ());
printf ("trying to migrate from %s\n", sources_xml);
@@ -622,14 +622,14 @@ migrate_ldap_servers (MigrationContext *context, ESourceGroup *on_ldap_servers)
xmlDoc *doc = xmlParseFile (sources_xml);
xmlNode *root;
xmlNode *child;
- int num_contactservers;
- int servernum;
+ gint num_contactservers;
+ gint servernum;
if (!doc)
return FALSE;
root = xmlDocGetRootElement (doc);
- if (root == NULL || strcmp ((const char *)root->name, "addressbooks") != 0) {
+ if (root == NULL || strcmp ((const gchar *)root->name, "addressbooks") != 0) {
xmlFreeDoc (doc);
return FALSE;
}
@@ -637,7 +637,7 @@ migrate_ldap_servers (MigrationContext *context, ESourceGroup *on_ldap_servers)
/* count the number of servers, so we can give progress */
num_contactservers = 0;
for (child = root->children; child; child = child->next) {
- if (!strcmp ((const char *)child->name, "contactserver")) {
+ if (!strcmp ((const gchar *)child->name, "contactserver")) {
num_contactservers++;
}
}
@@ -647,11 +647,11 @@ migrate_ldap_servers (MigrationContext *context, ESourceGroup *on_ldap_servers)
servernum = 0;
for (child = root->children; child; child = child->next) {
- if (!strcmp ((const char *)child->name, "contactserver")) {
- char *port, *host, *rootdn, *scope, *authmethod, *ssl;
- char *emailaddr, *binddn, *limitstr;
- int limit;
- char *name, *description;
+ if (!strcmp ((const gchar *)child->name, "contactserver")) {
+ gchar *port, *host, *rootdn, *scope, *authmethod, *ssl;
+ gchar *emailaddr, *binddn, *limitstr;
+ gint limit;
+ gchar *name, *description;
GString *uri = g_string_new ("");
ESource *source;
@@ -711,7 +711,7 @@ migrate_ldap_servers (MigrationContext *context, ESourceGroup *on_ldap_servers)
}
static ESource*
-get_source_by_name (ESourceList *source_list, const char *name)
+get_source_by_name (ESourceList *source_list, const gchar *name)
{
GSList *groups;
GSList *g;
@@ -731,7 +731,7 @@ get_source_by_name (ESourceList *source_list, const char *name)
for (s = sources; s; s = s->next) {
ESource *source = E_SOURCE (s->data);
- const char *source_name = e_source_peek_name (source);
+ const gchar *source_name = e_source_peek_name (source);
if (!strcmp (name, source_name))
return source;
@@ -744,7 +744,7 @@ get_source_by_name (ESourceList *source_list, const char *name)
static gboolean
migrate_completion_folders (MigrationContext *context)
{
- char *uris_xml = gconf_client_get_string (addressbook_component_peek_gconf_client (context->component),
+ gchar *uris_xml = gconf_client_get_string (addressbook_component_peek_gconf_client (context->component),
"/apps/evolution/addressbook/completion/uris",
NULL);
@@ -761,14 +761,14 @@ migrate_completion_folders (MigrationContext *context)
dialog_set_folder_name (context, _("Autocompletion Settings"));
root = xmlDocGetRootElement (doc);
- if (root == NULL || strcmp ((const char *)root->name, "EvolutionFolderList") != 0) {
+ if (root == NULL || strcmp ((const gchar *)root->name, "EvolutionFolderList") != 0) {
xmlFreeDoc (doc);
return FALSE;
}
for (child = root->children; child; child = child->next) {
- if (!strcmp ((const char *)child->name, "folder")) {
- char *physical_uri = e_xml_get_string_prop_by_name (child, (const unsigned char *)"physical-uri");
+ if (!strcmp ((const gchar *)child->name, "folder")) {
+ gchar *physical_uri = e_xml_get_string_prop_by_name (child, (const guchar *)"physical-uri");
ESource *source = NULL;
/* if the physical uri is file://...
@@ -783,8 +783,8 @@ migrate_completion_folders (MigrationContext *context)
for the uri. */
if (!strncmp (physical_uri, "file://", 7)) {
- char *filename = g_filename_from_uri (physical_uri, NULL, NULL);
- char *uid = NULL;
+ gchar *filename = g_filename_from_uri (physical_uri, NULL, NULL);
+ gchar *uid = NULL;
if (filename)
uid = g_hash_table_lookup (context->folder_uid_map,
@@ -794,7 +794,7 @@ migrate_completion_folders (MigrationContext *context)
source = e_source_list_peek_source_by_uid (context->source_list, uid);
}
else {
- char *name = e_xml_get_string_prop_by_name (child, (const unsigned char *)"display-name");
+ gchar *name = e_xml_get_string_prop_by_name (child, (const guchar *)"display-name");
source = get_source_by_name (context->source_list, name);
@@ -833,14 +833,14 @@ migrate_contact_lists_for_local_folders (MigrationContext *context, ESourceGroup
EBook *book;
EBookQuery *query;
GList *l, *contacts;
- int num_contacts, num_converted;
+ gint num_contacts, num_converted;
dialog_set_folder_name (context, e_source_peek_name (source));
book = e_book_new (source, NULL);
if (!book
|| !e_book_open (book, TRUE, NULL)) {
- char *uri = e_source_get_uri (source);
+ gchar *uri = e_source_get_uri (source);
g_warning ("failed to migrate contact lists for source %s", uri);
g_free (uri);
continue;
@@ -864,8 +864,8 @@ migrate_contact_lists_for_local_folders (MigrationContext *context, ESourceGroup
GList *v = e_vcard_attribute_get_values (a);
if (v && v->data) {
- if (!strncmp ((char*)v->data, "<?xml", 5)) {
- EDestination *dest = e_destination_import ((char*)v->data);
+ if (!strncmp ((gchar *)v->data, "<?xml", 5)) {
+ EDestination *dest = e_destination_import ((gchar *)v->data);
e_destination_export_to_vcard_attribute (dest, a);
@@ -908,14 +908,14 @@ migrate_company_phone_for_local_folders (MigrationContext *context, ESourceGroup
EBook *book;
EBookQuery *query;
GList *l, *contacts;
- int num_contacts, num_converted;
+ gint num_contacts, num_converted;
dialog_set_folder_name (context, e_source_peek_name (source));
book = e_book_new (source, NULL);
if (!book
|| !e_book_open (book, TRUE, NULL)) {
- char *uri = e_source_get_uri (source);
+ gchar *uri = e_source_get_uri (source);
g_warning ("failed to migrate company phone numbers for source %s", uri);
g_free (uri);
continue;
@@ -932,7 +932,7 @@ migrate_company_phone_for_local_folders (MigrationContext *context, ESourceGroup
GError *e = NULL;
GList *attrs, *attr;
gboolean converted = FALSE;
- int num_work_voice = 0;
+ gint num_work_voice = 0;
attrs = e_vcard_get_attributes (E_VCARD (contact));
for (attr = attrs; attr;) {
@@ -1001,11 +1001,11 @@ migrate_company_phone_for_local_folders (MigrationContext *context, ESourceGroup
}
static void
-migrate_pilot_data (const char *old_path, const char *new_path)
+migrate_pilot_data (const gchar *old_path, const gchar *new_path)
{
- const char *dent;
- const char *ext;
- char *filename;
+ const gchar *dent;
+ const gchar *ext;
+ gchar *filename;
GDir *dir;
if (!(dir = g_dir_open (old_path, 0, NULL)))
@@ -1017,9 +1017,9 @@ migrate_pilot_data (const char *old_path, const char *new_path)
(!strncmp (dent, "pilot-sync-evolution-addressbook-", 33) &&
((ext = strrchr (dent, '.')) && !strcmp (ext, ".db")))) {
/* src and dest file formats are identical for both map and changelog files */
- unsigned char inbuf[4096];
+ guchar inbuf[4096];
size_t nread, nwritten;
- int fd0, fd1;
+ gint fd0, fd1;
ssize_t n;
filename = g_build_filename (old_path, dent, NULL);
@@ -1103,8 +1103,8 @@ migration_context_free (MigrationContext *context)
g_free (context);
}
-int
-addressbook_migrate (AddressbookComponent *component, int major, int minor, int revision, GError **err)
+gint
+addressbook_migrate (AddressbookComponent *component, gint major, gint minor, gint revision, GError **err)
{
ESourceGroup *on_this_computer;
ESourceGroup *on_ldap_servers;
@@ -1165,7 +1165,7 @@ addressbook_migrate (AddressbookComponent *component, int major, int minor, int
}
if (minor < 5 || (minor == 5 && revision <= 10)) {
- char *old_path, *new_path;
+ gchar *old_path, *new_path;
dialog_set_label (context, _("Evolution's Palm Sync changelog and map files have changed.\n\n"
"Please be patient while Evolution migrates your Pilot Sync data..."));
diff --git a/addressbook/gui/component/addressbook-migrate.h b/addressbook/gui/component/addressbook-migrate.h
index 5727b3d0ab..c10f29cfdd 100644
--- a/addressbook/gui/component/addressbook-migrate.h
+++ b/addressbook/gui/component/addressbook-migrate.h
@@ -28,6 +28,6 @@
struct _GError;
-int addressbook_migrate (AddressbookComponent *component, int major, int minor, int revision, struct _GError **err);
+gint addressbook_migrate (AddressbookComponent *component, gint major, gint minor, gint revision, struct _GError **err);
#endif /* _ADDRESSBOOK_MIGRATE_H_ */
diff --git a/addressbook/gui/component/addressbook-view.c b/addressbook/gui/component/addressbook-view.c
index e6b99c6405..379660c993 100644
--- a/addressbook/gui/component/addressbook-view.c
+++ b/addressbook/gui/component/addressbook-view.c
@@ -83,7 +83,7 @@ struct _AddressbookViewPrivate {
EBook *book;
guint activity_id;
ESourceList *source_list;
- char *passwd;
+ gchar *passwd;
EUserCreatableItemsHandler *creatable_items_handler;
EABMenu *menu;
@@ -101,7 +101,7 @@ static GtkTargetEntry drag_types[] = {
};
static gint num_drag_types = sizeof(drag_types) / sizeof(drag_types[0]);
-static void set_status_message (EABView *eav, const char *message, AddressbookView *view);
+static void set_status_message (EABView *eav, const gchar *message, AddressbookView *view);
static void search_result (EABView *eav, EBookViewStatus status, AddressbookView *view);
static void activate_source (AddressbookView *view, ESource *source);
@@ -115,7 +115,7 @@ static ESource *get_primary_source (AddressbookView *view);
typedef struct {
GtkWidget *editor;
- char *uid;
+ gchar *uid;
AddressbookView *view;
} EditorUidClosure;
@@ -139,7 +139,7 @@ get_current_view (AddressbookView *view)
}
static void
-save_all_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+save_all_contacts_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -149,7 +149,7 @@ save_all_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-save_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+save_contact_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -158,7 +158,7 @@ save_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-view_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+view_contact_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -167,7 +167,7 @@ view_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-delete_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+delete_contact_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -176,7 +176,7 @@ delete_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-print_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+print_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -185,7 +185,7 @@ print_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-print_preview_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+print_preview_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -194,7 +194,7 @@ print_preview_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-stop_loading_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+stop_loading_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -203,7 +203,7 @@ stop_loading_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-cut_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+cut_contacts_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -212,7 +212,7 @@ cut_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-copy_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+copy_contacts_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -221,7 +221,7 @@ copy_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-paste_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+paste_contacts_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -230,7 +230,7 @@ paste_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-select_all_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+select_all_contacts_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -239,7 +239,7 @@ select_all_contacts_cb (BonoboUIComponent *uih, void *user_data, const char *pat
}
static void
-send_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+send_contact_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -248,7 +248,7 @@ send_contact_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-send_contact_to_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+send_contact_to_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -257,7 +257,7 @@ send_contact_to_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-copy_all_contacts_to_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+copy_all_contacts_to_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -267,7 +267,7 @@ copy_all_contacts_to_cb (BonoboUIComponent *uih, void *user_data, const char *pa
}
static void
-copy_contact_to_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+copy_contact_to_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -276,7 +276,7 @@ copy_contact_to_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-move_all_contacts_to_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+move_all_contacts_to_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -285,7 +285,7 @@ move_all_contacts_to_cb (BonoboUIComponent *uih, void *user_data, const char *pa
}
static void
-move_contact_to_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+move_contact_to_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
EABView *v = get_current_view (view);
@@ -294,7 +294,7 @@ move_contact_to_cb (BonoboUIComponent *uih, void *user_data, const char *path)
}
static void
-forget_passwords_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+forget_passwords_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
e_passwords_forget_passwords();
}
@@ -307,7 +307,7 @@ new_addressbook_folder (AddressbookView *view)
}
static void
-new_folder_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+new_folder_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
new_addressbook_folder (view);
@@ -356,7 +356,7 @@ delete_addressbook_folder (AddressbookView *view)
}
static void
-delete_folder_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+delete_folder_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
if (view)
@@ -369,7 +369,7 @@ edit_addressbook_folder (AddressbookView *view)
{
AddressbookViewPrivate *priv = view->priv;
ESource *selected_source;
- const char *uid;
+ const gchar *uid;
EditorUidClosure *closure;
selected_source = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (priv->selector));
@@ -380,7 +380,7 @@ edit_addressbook_folder (AddressbookView *view)
closure = g_hash_table_lookup (priv->uid_to_editor, uid);
if (!closure) {
- char *uid_copy = g_strdup (uid);
+ gchar *uid_copy = g_strdup (uid);
closure = g_new (EditorUidClosure, 1);
closure->editor = addressbook_config_edit_source (gtk_widget_get_toplevel(priv->notebook), selected_source);
@@ -400,7 +400,7 @@ edit_addressbook_folder (AddressbookView *view)
}
static void
-edit_folder_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+edit_folder_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
if (view)
@@ -413,8 +413,8 @@ rename_addressbook_folder (AddressbookView *view)
{
AddressbookViewPrivate *priv = view->priv;
ESource *source;
- const char *old_name;
- char *prompt, *new_name;
+ const gchar *old_name;
+ gchar *prompt, *new_name;
gboolean done = FALSE;
source = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (priv->selector));
@@ -441,7 +441,7 @@ rename_addressbook_folder (AddressbookView *view)
}
static void
-rename_folder_cb (BonoboUIComponent *uih, void *user_data, const char *path)
+rename_folder_cb (BonoboUIComponent *uih, gpointer user_data, const gchar *path)
{
AddressbookView *view = (AddressbookView *) user_data;
if (view)
@@ -453,7 +453,7 @@ folder_can_delete (AddressbookView *view)
{
AddressbookViewPrivate *priv = view->priv;
ESource *source ;
- const char *source_uri;
+ const gchar *source_uri;
source = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (priv->selector));
if(source) {
@@ -468,7 +468,7 @@ folder_can_delete (AddressbookView *view)
}
static void
-set_status_message (EABView *eav, const char *message, AddressbookView *view)
+set_status_message (EABView *eav, const gchar *message, AddressbookView *view)
{
AddressbookViewPrivate *priv = view->priv;
EActivityHandler *activity_handler = priv->activity_handler;
@@ -479,7 +479,7 @@ set_status_message (EABView *eav, const char *message, AddressbookView *view)
priv->activity_id = 0;
}
} else if (priv->activity_id == 0) {
- char *clientid = g_strdup_printf ("%p", (gpointer) view);
+ gchar *clientid = g_strdup_printf ("%p", (gpointer) view);
priv->activity_id = e_activity_handler_operation_started (
activity_handler, clientid, message, TRUE);
@@ -492,7 +492,7 @@ set_status_message (EABView *eav, const char *message, AddressbookView *view)
}
static void
-set_folder_bar_message (EABView *eav, const char *message, AddressbookView *view)
+set_folder_bar_message (EABView *eav, const gchar *message, AddressbookView *view)
{
AddressbookViewPrivate *priv = view->priv;
EABView *current_view = get_current_view (view);
@@ -501,7 +501,7 @@ set_folder_bar_message (EABView *eav, const char *message, AddressbookView *view
ESource *source = eav->source;
if (source) {
- const char *name = e_source_peek_name (source);
+ const gchar *name = e_source_peek_name (source);
e_info_label_set_info((EInfoLabel*)priv->info_widget, name, message);
}
@@ -628,7 +628,7 @@ control_activate (BonoboControl *control,
AddressbookViewPrivate *priv = view->priv;
Bonobo_UIContainer remote_ui_container;
EABView *v = get_current_view (view);
- char *xmlfile;
+ gchar *xmlfile;
remote_ui_container = bonobo_control_get_remote_ui_container (control, NULL);
bonobo_ui_component_set_container (uic, remote_ui_container, NULL);
@@ -684,7 +684,7 @@ control_activate_cb (BonoboControl *control,
}
static void
-gather_uids_foreach (char *key,
+gather_uids_foreach (gchar *key,
gpointer value,
GList **list)
{
@@ -701,7 +701,7 @@ source_list_changed_cb (ESourceList *source_list, AddressbookView *view)
uids = NULL;
g_hash_table_foreach (priv->uid_to_view, (GHFunc)gather_uids_foreach, &uids);
for (l = uids; l; l = l->next) {
- char *uid = l->data;
+ gchar *uid = l->data;
if (e_source_list_peek_source_by_uid (source_list, uid)) {
/* the source still exists, do nothing */
}
@@ -721,7 +721,7 @@ source_list_changed_cb (ESourceList *source_list, AddressbookView *view)
uids = NULL;
g_hash_table_foreach (priv->uid_to_editor, (GHFunc)gather_uids_foreach, &uids);
for (l = uids; l; l = l->next) {
- char *uid = l->data;
+ gchar *uid = l->data;
if (e_source_list_peek_source_by_uid (source_list, uid)) {
/* the source still exists, do nothing */
}
@@ -801,7 +801,7 @@ get_primary_source (AddressbookView *view)
{
AddressbookViewPrivate *priv = view->priv;
ESource *source;
- char *uid;
+ gchar *uid;
uid = gconf_client_get_string (priv->gconf_client,
"/apps/evolution/addressbook/display/primary_addressbook",
@@ -867,7 +867,7 @@ book_removed (EBook *book, EBookStatus status, gpointer data)
}
static void
-delete_addressbook_cb(EPopup *ep, EPopupItem *pitem, void *data)
+delete_addressbook_cb(EPopup *ep, EPopupItem *pitem, gpointer data)
{
AddressbookView *view = data;
AddressbookViewPrivate *priv = view->priv;
@@ -903,13 +903,13 @@ delete_addressbook_cb(EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-new_addressbook_cb(EPopup *ep, EPopupItem *pitem, void *data)
+new_addressbook_cb(EPopup *ep, EPopupItem *pitem, gpointer data)
{
addressbook_config_create_new_source (gtk_widget_get_toplevel(ep->target->widget));
}
static void
-rename_addressbook_cb (EPopup *ep, EPopupItem *pitem, void *data)
+rename_addressbook_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
AddressbookView *view = data;
ESourceSelector *selector;
@@ -919,7 +919,7 @@ rename_addressbook_cb (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-save_addressbook_cb(EPopup *ep, EPopupItem *pitem, void *data)
+save_addressbook_cb(EPopup *ep, EPopupItem *pitem, gpointer data)
{
AddressbookView *view = data;
EABView *v = get_current_view (view);
@@ -928,7 +928,7 @@ save_addressbook_cb(EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-edit_addressbook_cb(EPopup *ep, EPopupItem *pitem, void *data)
+edit_addressbook_cb(EPopup *ep, EPopupItem *pitem, gpointer data)
{
AddressbookView *view = data;
if (view)
@@ -958,7 +958,7 @@ static EPopupItem abv_source_popups[] = {
};
static void
-abv_source_popup_free(EPopup *ep, GSList *list, void *data)
+abv_source_popup_free(EPopup *ep, GSList *list, gpointer data)
{
g_slist_free(list);
}
@@ -969,7 +969,7 @@ popup_event_callback(ESourceSelector *selector, ESource *source, GdkEventButton
EABPopup *ep;
EABPopupTargetSource *t;
GSList *menus = NULL;
- int i;
+ gint i;
GtkMenu *menu;
/** @HookPoint-EABPopup:Addressbook Source Selector Context Menu
@@ -1035,7 +1035,7 @@ removed_contact_cb (EBook *book, EBookStatus status, gpointer closure)
}
static void
-merged_contact_cb (EBook *book, EBookStatus status, const char *id, gpointer closure)
+merged_contact_cb (EBook *book, EBookStatus status, const gchar *id, gpointer closure)
{
MergeContext *merge_context = closure;
@@ -1088,7 +1088,7 @@ selector_tree_data_dropped (ESourceSelector *selector,
}
e_book_open (target_book, FALSE, NULL);
- eab_book_and_contact_list_from_string ((char *)data->data, &source_book, &contactlist);
+ eab_book_and_contact_list_from_string ((gchar *)data->data, &source_book, &contactlist);
v = get_current_view (view);
g_object_get (v->model, "book",&source_book, NULL);
@@ -1252,7 +1252,7 @@ addressbook_view_init (AddressbookView *view)
}
static void
-destroy_editor (char *key,
+destroy_editor (gchar *key,
gpointer value,
gpointer nada)
{
@@ -1342,7 +1342,7 @@ activate_source (AddressbookView *view,
ESource *source)
{
AddressbookViewPrivate *priv = view->priv;
- const char *uid;
+ const gchar *uid;
GtkWidget *uid_view;
EBook *book;
BookOpenData *data;
@@ -1496,8 +1496,8 @@ addressbook_view_peek_folder_view (AddressbookView *view)
void
addressbook_view_edit_contact (AddressbookView* view,
- const char* source_uid,
- const char* contact_uid)
+ const gchar * source_uid,
+ const gchar * contact_uid)
{
AddressbookViewPrivate *priv = view->priv;
diff --git a/addressbook/gui/component/addressbook-view.h b/addressbook/gui/component/addressbook-view.h
index 08bbbb3e99..bdb37e021a 100644
--- a/addressbook/gui/component/addressbook-view.h
+++ b/addressbook/gui/component/addressbook-view.h
@@ -59,7 +59,7 @@ GtkWidget *addressbook_view_peek_statusbar (AddressbookView *view
BonoboControl *addressbook_view_peek_folder_view (AddressbookView *view);
void addressbook_view_edit_contact (AddressbookView* view,
- const char* source_id,
- const char* contact_id);
+ const gchar * source_id,
+ const gchar * contact_id);
#endif /* _ADDRESSBOOK_VIEW_H_ */
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index f36012ab94..45790e15c0 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -57,10 +57,10 @@ free_load_source_data (LoadSourceData *data)
/*this function removes of anything present after semicolon
in uri*/
-static gchar*
+static gchar *
remove_parameters_from_uri (const gchar *uri)
{
- char *euri_str;
+ gchar *euri_str;
EUri *euri;
euri = e_uri_new (uri);
@@ -167,8 +167,8 @@ static void
addressbook_authenticate (EBook *book, gboolean previous_failure, ESource *source,
EBookCallback cb, gpointer closure)
{
- const char *password = NULL;
- char *pass_dup = NULL;
+ const gchar *password = NULL;
+ gchar *pass_dup = NULL;
const gchar *auth;
const gchar *user;
gchar *uri = remove_parameters_from_uri(e_book_get_uri (book));
@@ -197,8 +197,8 @@ addressbook_authenticate (EBook *book, gboolean previous_failure, ESource *sourc
user = "";
if (!password) {
- char *prompt;
- char *password_prompt;
+ gchar *prompt;
+ gchar *password_prompt;
gboolean remember;
const gchar *failed_auth;
guint32 flags = E_PASSWORDS_REMEMBER_FOREVER|E_PASSWORDS_SECRET|E_PASSWORDS_ONLINE;
diff --git a/addressbook/gui/component/autocompletion-config.c b/addressbook/gui/component/autocompletion-config.c
index f45f2228e1..9773f5bd5b 100644
--- a/addressbook/gui/component/autocompletion-config.c
+++ b/addressbook/gui/component/autocompletion-config.c
@@ -80,7 +80,7 @@ source_selection_changed (ESourceSelector *selector,
}
static void
-config_control_destroy_notify (void *data,
+config_control_destroy_notify (gpointer data,
GObject *where_the_config_control_was)
{
AutocompletionConfig *ac = (AutocompletionConfig *) data;
@@ -101,7 +101,7 @@ initialize_selection (AutocompletionConfig *ac)
GSList *sources;
for (sources = e_source_group_peek_sources (group); sources; sources = sources->next) {
ESource *source = E_SOURCE (sources->data);
- const char *completion = e_source_get_property (source, "completion");
+ const gchar *completion = e_source_get_property (source, "completion");
if (completion && !g_ascii_strcasecmp (completion, "true"))
e_source_selector_select_source (E_SOURCE_SELECTOR (ac->control_widget),
source);
diff --git a/addressbook/gui/component/component-factory.c b/addressbook/gui/component/component-factory.c
index 4d02cc3e6b..eddabd7b48 100644
--- a/addressbook/gui/component/component-factory.c
+++ b/addressbook/gui/component/component-factory.c
@@ -49,8 +49,8 @@
static BonoboObject *
factory (BonoboGenericFactory *factory,
- const char *component_id,
- void *closure)
+ const gchar *component_id,
+ gpointer closure)
{
d(printf ("asked to activate component_id `%s'\n", component_id));
diff --git a/addressbook/gui/component/openldap-extract.h b/addressbook/gui/component/openldap-extract.h
index 010589da1e..083fc0d162 100644
--- a/addressbook/gui/component/openldap-extract.h
+++ b/addressbook/gui/component/openldap-extract.h
@@ -48,7 +48,7 @@
#define LDAP_CALLOC(n,s) calloc((n),(s))
#define LDAP_REALLOC(p,s) realloc((p),(s))
#define LDAP_FREE(p) free((p))
-#define LDAP_VFREE(p) vfree((void **)(p))
+#define LDAP_VFREE(p) vfree((gpointer *)(p))
#define LDAP_STRDUP(s) strdup((s))
#define LDAP_RANGE(n,x,y) (((x) <= (n)) && ((n) <= (y)))
@@ -87,21 +87,21 @@
#define LDAP_SCHEMA_SKIP 0x80U /* Don't malloc any result */
typedef struct ldap_objectclass {
- char *oc_oid; /* REQUIRED */
- char **oc_names; /* OPTIONAL */
- char *oc_desc; /* OPTIONAL */
- int oc_obsolete; /* 0=no, 1=yes */
- char **oc_sup_oids; /* OPTIONAL */
- int oc_kind; /* 0=ABSTRACT, 1=STRUCTURAL, 2=AUXILIARY */
- char **oc_at_oids_must; /* OPTIONAL */
- char **oc_at_oids_may; /* OPTIONAL */
+ gchar *oc_oid; /* REQUIRED */
+ gchar **oc_names; /* OPTIONAL */
+ gchar *oc_desc; /* OPTIONAL */
+ gint oc_obsolete; /* 0=no, 1=yes */
+ gchar **oc_sup_oids; /* OPTIONAL */
+ gint oc_kind; /* 0=ABSTRACT, 1=STRUCTURAL, 2=AUXILIARY */
+ gchar **oc_at_oids_must; /* OPTIONAL */
+ gchar **oc_at_oids_may; /* OPTIONAL */
} LDAPObjectClass;
static void
-vfree(void **vec)
+vfree(gpointer *vec)
{
- int i;
+ gint i;
for (i = 0; vec[i] != NULL; i++)
free(vec[i]);
@@ -143,17 +143,17 @@ vfree(void **vec)
#define TK_QDESCR TK_QDSTRING
struct token {
- int type;
- char *sval;
+ gint type;
+ gchar *sval;
};
static int
-get_token( const char ** sp, char ** token_val )
+get_token( const gchar ** sp, gchar ** token_val )
{
- int kind;
- const char * p;
- const char * q;
- char * res;
+ gint kind;
+ const gchar * p;
+ const gchar * q;
+ gchar * res;
*token_val = NULL;
switch (**sp) {
@@ -223,20 +223,20 @@ get_token( const char ** sp, char ** token_val )
/* Gobble optional whitespace */
static void
-parse_whsp(const char **sp)
+parse_whsp(const gchar **sp)
{
while (LDAP_SPACE(**sp))
(*sp)++;
}
/* Parse a sequence of dot-separated decimal strings */
-static char *
-ldap_int_parse_numericoid(const char **sp, int *code, const int flags)
+static gchar *
+ldap_int_parse_numericoid(const gchar **sp, gint *code, const gint flags)
{
- char * res = NULL;
- const char * start = *sp;
- int len;
- int quoted = 0;
+ gchar * res = NULL;
+ const gchar * start = *sp;
+ gint len;
+ gint quoted = 0;
/* Netscape puts the SYNTAX value in quotes (incorrectly) */
if ( flags & LDAP_SCHEMA_ALLOW_QUOTED && **sp == '\'' ) {
@@ -248,7 +248,7 @@ ldap_int_parse_numericoid(const char **sp, int *code, const int flags)
while (**sp) {
if ( !LDAP_DIGIT(**sp) ) {
/*
- * Initial char is not a digit or char after dot is
+ * Initial gchar is not a digit or gchar after dot is
* not a digit
*/
*code = LDAP_SCHERR_NODIGIT;
@@ -262,7 +262,7 @@ ldap_int_parse_numericoid(const char **sp, int *code, const int flags)
/* Otherwise, gobble the dot and loop again */
(*sp)++;
}
- /* Now *sp points at the char past the numericoid. Perfect. */
+ /* Now *sp points at the gchar past the numericoid. Perfect. */
len = *sp - start;
if ( flags & LDAP_SCHEMA_ALLOW_QUOTED && quoted ) {
if ( **sp == '\'' ) {
@@ -273,7 +273,7 @@ ldap_int_parse_numericoid(const char **sp, int *code, const int flags)
}
}
if (flags & LDAP_SCHEMA_SKIP) {
- res = (char *)start;
+ res = (gchar *)start;
} else {
res = LDAP_MALLOC(len+1);
if (!res) {
@@ -287,22 +287,22 @@ ldap_int_parse_numericoid(const char **sp, int *code, const int flags)
}
/* Parse a qdescr or a list of them enclosed in () */
-static char **
-parse_qdescrs(const char **sp, int *code)
+static gchar **
+parse_qdescrs(const gchar **sp, gint *code)
{
- char ** res;
- char ** res1;
- int kind;
- char * sval;
- int size;
- int pos;
+ gchar ** res;
+ gchar ** res1;
+ gint kind;
+ gchar * sval;
+ gint size;
+ gint pos;
parse_whsp(sp);
kind = get_token(sp,&sval);
if ( kind == TK_LEFTPAREN ) {
/* Let's presume there will be at least 2 entries */
size = 3;
- res = LDAP_CALLOC(3,sizeof(char *));
+ res = LDAP_CALLOC(3,sizeof(gchar *));
if ( !res ) {
*code = LDAP_SCHERR_OUTOFMEM;
return NULL;
@@ -316,7 +316,7 @@ parse_qdescrs(const char **sp, int *code)
if ( kind == TK_QDESCR ) {
if ( pos == size-2 ) {
size++;
- res1 = LDAP_REALLOC(res,size*sizeof(char *));
+ res1 = LDAP_REALLOC(res,size*sizeof(gchar *));
if ( !res1 ) {
LDAP_VFREE(res);
LDAP_FREE(sval);
@@ -338,7 +338,7 @@ parse_qdescrs(const char **sp, int *code)
parse_whsp(sp);
return(res);
} else if ( kind == TK_QDESCR ) {
- res = LDAP_CALLOC(2,sizeof(char *));
+ res = LDAP_CALLOC(2,sizeof(gchar *));
if ( !res ) {
*code = LDAP_SCHERR_OUTOFMEM;
return NULL;
@@ -355,15 +355,15 @@ parse_qdescrs(const char **sp, int *code)
}
/* Parse a woid or a $-separated list of them enclosed in () */
-static char **
-parse_oids(const char **sp, int *code, const int allow_quoted)
+static gchar **
+parse_oids(const gchar **sp, gint *code, const gint allow_quoted)
{
- char ** res;
- char ** res1;
- int kind;
- char * sval;
- int size;
- int pos;
+ gchar ** res;
+ gchar ** res1;
+ gint kind;
+ gchar * sval;
+ gint size;
+ gint pos;
/*
* Strictly speaking, doing this here accepts whsp before the
@@ -376,7 +376,7 @@ parse_oids(const char **sp, int *code, const int allow_quoted)
if ( kind == TK_LEFTPAREN ) {
/* Let's presume there will be at least 2 entries */
size = 3;
- res = LDAP_CALLOC(3,sizeof(char *));
+ res = LDAP_CALLOC(3,sizeof(gchar *));
if ( !res ) {
*code = LDAP_SCHERR_OUTOFMEM;
return NULL;
@@ -407,7 +407,7 @@ parse_oids(const char **sp, int *code, const int allow_quoted)
kind == TK_QDSTRING ) ) {
if ( pos == size-2 ) {
size++;
- res1 = LDAP_REALLOC(res,size*sizeof(char *));
+ res1 = LDAP_REALLOC(res,size*sizeof(gchar *));
if ( !res1 ) {
LDAP_FREE(sval);
LDAP_VFREE(res);
@@ -436,7 +436,7 @@ parse_oids(const char **sp, int *code, const int allow_quoted)
return(res);
} else if ( kind == TK_BAREWORD ||
( allow_quoted && kind == TK_QDSTRING ) ) {
- res = LDAP_CALLOC(2,sizeof(char *));
+ res = LDAP_CALLOC(2,sizeof(gchar *));
if ( !res ) {
LDAP_FREE(sval);
*code = LDAP_SCHERR_OUTOFMEM;
@@ -466,24 +466,24 @@ ldap_objectclass_free(LDAPObjectClass * oc)
}
static LDAPObjectClass *
-ldap_str2objectclass( LDAP_CONST char * s,
- int * code,
- LDAP_CONST char ** errp,
+ldap_str2objectclass( LDAP_CONST gchar * s,
+ gint * code,
+ LDAP_CONST gchar ** errp,
LDAP_CONST unsigned flags )
{
- int kind;
- const char * ss = s;
- char * sval;
- int seen_name = 0;
- int seen_desc = 0;
- int seen_obsolete = 0;
- int seen_sup = 0;
- int seen_kind = 0;
- int seen_must = 0;
- int seen_may = 0;
+ gint kind;
+ const gchar * ss = s;
+ gchar * sval;
+ gint seen_name = 0;
+ gint seen_desc = 0;
+ gint seen_obsolete = 0;
+ gint seen_sup = 0;
+ gint seen_kind = 0;
+ gint seen_must = 0;
+ gint seen_may = 0;
LDAPObjectClass * oc;
- char ** ext_vals;
- const char * savepos;
+ gchar ** ext_vals;
+ const gchar * savepos;
if ( !s ) {
*code = LDAP_SCHERR_EMPTY;
@@ -539,7 +539,7 @@ ldap_str2objectclass( LDAP_CONST char * s,
} else if ( flags &
LDAP_SCHEMA_ALLOW_OID_MACRO ) {
/* Non-numerical OID, ignore */
- int len = ss-savepos;
+ gint len = ss-savepos;
oc->oc_oid = LDAP_MALLOC(len+1);
strncpy(oc->oc_oid, savepos, len);
oc->oc_oid[len] = 0;
@@ -741,21 +741,21 @@ ldap_str2objectclass( LDAP_CONST char * s,
#define LDAP_UTF8_INCR(p) ((p)=LDAP_UTF8_NEXT((p)))
#define ldap_x_utf8_to_ucs4(str) g_utf8_get_char(str)
-static char *ldap_utf8_strchr( const char *str, const char *chr )
+static gchar *ldap_utf8_strchr( const gchar *str, const gchar *chr )
{
for( ; *str != '\0'; LDAP_UTF8_INCR(str) ) {
if( ldap_x_utf8_to_ucs4( str ) == ldap_x_utf8_to_ucs4( chr ) ) {
- return (char *) str;
+ return (gchar *) str;
}
}
return NULL;
}
-static size_t ldap_utf8_strcspn( const char *str, const char *set )
+static size_t ldap_utf8_strcspn( const gchar *str, const gchar *set )
{
- const char *cstr;
- const char *cset;
+ const gchar *cstr;
+ const gchar *cset;
for( cstr = str; *cstr != '\0'; LDAP_UTF8_INCR(cstr) ) {
for( cset = set; *cset != '\0'; LDAP_UTF8_INCR(cset) ) {
@@ -768,10 +768,10 @@ static size_t ldap_utf8_strcspn( const char *str, const char *set )
return cstr - str;
}
-static size_t ldap_utf8_strspn( const char *str, const char *set )
+static size_t ldap_utf8_strspn( const gchar *str, const gchar *set )
{
- const char *cstr;
- const char *cset;
+ const gchar *cstr;
+ const gchar *cset;
for( cstr = str; *cstr != '\0'; LDAP_UTF8_INCR(cstr) ) {
for( cset = set; ; LDAP_UTF8_INCR(cset) ) {
@@ -788,10 +788,10 @@ static size_t ldap_utf8_strspn( const char *str, const char *set )
return cstr - str;
}
-static char *ldap_utf8_strtok(char *str, const char *sep, char **last)
+static gchar *ldap_utf8_strtok(gchar *str, const gchar *sep, gchar **last)
{
- char *begin;
- char *end;
+ gchar *begin;
+ gchar *end;
if( last == NULL ) return NULL;
@@ -807,7 +807,7 @@ static char *ldap_utf8_strtok(char *str, const char *sep, char **last)
end = &begin[ ldap_utf8_strcspn( begin, sep ) ];
if( *end != '\0' ) {
- char *next = LDAP_UTF8_NEXT( end );
+ gchar *next = LDAP_UTF8_NEXT( end );
*end = '\0';
end = next;
}
@@ -856,17 +856,17 @@ typedef struct ldap_url_desc {
/* from url.c */
-static const char*
+static const gchar *
skip_url_prefix(
- const char *url,
- int *enclosedp,
- const char **scheme )
+ const gchar *url,
+ gint *enclosedp,
+ const gchar **scheme )
{
/*
* return non-zero if this looks like a LDAP URL; zero if not
* if non-zero returned, *urlp will be moved past "ldap://" part of URL
*/
- const char *p;
+ const gchar *p;
if ( url == NULL ) {
return( NULL );
@@ -924,7 +924,7 @@ skip_url_prefix(
return( NULL );
}
-static int str2scope( const char *p )
+static gint str2scope( const gchar *p )
{
if ( strcasecmp( p, "one" ) == 0 ) {
return LDAP_SCOPE_ONELEVEL;
@@ -980,7 +980,7 @@ ldap_free_urldesc( LDAPURLDesc *ludp )
}
static int
-ldap_int_unhex( int c )
+ldap_int_unhex( gint c )
{
return( c >= '0' && c <= '9' ? c - '0'
: c >= 'A' && c <= 'F' ? c - 'A' + 10
@@ -988,7 +988,7 @@ ldap_int_unhex( int c )
}
static void
-ldap_pvt_hex_unescape( char *s )
+ldap_pvt_hex_unescape( gchar *s )
{
/*
* Remove URL hex escapes from s... done in place. The basic concept for
@@ -1014,8 +1014,8 @@ ldap_pvt_hex_unescape( char *s )
*p = '\0';
}
-static char **
-ldap_str2charray( const char *str_in, const char *brkstr )
+static gchar **
+ldap_str2charray( const gchar *str_in, const gchar *brkstr )
{
char **res;
char *str, *s;
@@ -1035,7 +1035,7 @@ ldap_str2charray( const char *str_in, const char *brkstr )
}
}
- res = (char **) LDAP_MALLOC( (i + 1) * sizeof(char *) );
+ res = (gchar **) LDAP_MALLOC( (i + 1) * sizeof(gchar *) );
if( res == NULL ) {
LDAP_FREE( str );
@@ -1069,7 +1069,7 @@ ldap_str2charray( const char *str_in, const char *brkstr )
}
static int
-ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
+ldap_url_parse_ext( LDAP_CONST gchar *url_in, LDAPURLDesc **ludpp )
{
/*
* Pick apart the pieces of an LDAP URL.
@@ -1078,9 +1078,9 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
LDAPURLDesc *ludp;
char *p, *q, *r;
int i, enclosed;
- const char *scheme = NULL;
- const char *url_tmp;
- char *url;
+ const gchar *scheme = NULL;
+ const gchar *url_tmp;
+ gchar *url;
if( url_in == NULL || ludpp == NULL ) {
return LDAP_URL_ERR_PARAM;
@@ -1393,9 +1393,9 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
}
static int
-ldap_url_parse( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
+ldap_url_parse( LDAP_CONST gchar *url_in, LDAPURLDesc **ludpp )
{
- int rc = ldap_url_parse_ext( url_in, ludpp );
+ gint rc = ldap_url_parse_ext( url_in, ludpp );
if( rc != LDAP_URL_SUCCESS ) {
return rc;
diff --git a/addressbook/gui/contact-editor/e-contact-editor-fullname.c b/addressbook/gui/contact-editor/e-contact-editor-fullname.c
index 3897d605e3..5040b96570 100644
--- a/addressbook/gui/contact-editor/e-contact-editor-fullname.c
+++ b/addressbook/gui/contact-editor/e-contact-editor-fullname.c
@@ -99,7 +99,7 @@ e_contact_editor_fullname_init (EContactEditorFullname *e_contact_editor_fullnam
{
GladeXML *gui;
GtkWidget *widget;
- char *gladefile;
+ gchar *gladefile;
gtk_widget_realize (GTK_WIDGET (e_contact_editor_fullname));
gtk_dialog_set_has_separator (GTK_DIALOG (e_contact_editor_fullname),
@@ -189,7 +189,7 @@ e_contact_editor_fullname_set_property (GObject *object, guint prop_id,
}
break;
case PROP_EDITABLE: {
- int i;
+ gint i;
const gchar *widget_names[] = {
"comboentry-title",
"comboentry-suffix",
@@ -283,7 +283,7 @@ fill_in_info(EContactEditorFullname *editor)
}
}
-static char *
+static gchar *
extract_field (EContactEditorFullname *editor,
const gchar *field)
{
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index c7ce449ec4..305511d5d5 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -93,7 +93,7 @@ static GtkWindow* e_contact_editor_get_window (EABEditor *editor);
static void save_contact (EContactEditor *ce, gboolean should_close);
static void entry_activated (EContactEditor *editor);
-static void set_entry_text(EContactEditor *editor, GtkEntry *entry, const char *string);
+static void set_entry_text(EContactEditor *editor, GtkEntry *entry, const gchar *string);
static void sensitize_ok (EContactEditor *ce);
static EABEditorClass *parent_class = NULL;
@@ -339,7 +339,7 @@ is_field_supported (EContactEditor *editor, EContactField field_id)
/* This function tells you whether name_to_style will make sense. */
static gboolean
-style_makes_sense (const EContactName *name, const gchar *company, int style)
+style_makes_sense (const EContactName *name, const gchar *company, gint style)
{
switch (style) {
case 0: /* Fall Through */
@@ -368,13 +368,13 @@ style_makes_sense (const EContactName *name, const gchar *company, int style)
}
}
-static char *
-name_to_style (const EContactName *name, const gchar *company, int style)
+static gchar *
+name_to_style (const EContactName *name, const gchar *company, gint style)
{
- char *string;
- char *strings[4], **stringptr;
- char *midstring[4], **midstrptr;
- char *substring;
+ gchar *string;
+ gchar *strings[4], **stringptr;
+ gchar *midstring[4], **midstrptr;
+ gchar *substring;
switch (style) {
case 0:
stringptr = strings;
@@ -449,11 +449,11 @@ file_as_get_style (EContactEditor *editor)
{
GtkEntry *file_as = GTK_ENTRY (gtk_bin_get_child (GTK_BIN (glade_xml_get_widget(editor->gui, "combo-file-as"))));
GtkEntry *company_w = GTK_ENTRY (glade_xml_get_widget (editor->gui, "entry-company"));
- char *filestring;
- char *trystring;
+ gchar *filestring;
+ gchar *trystring;
EContactName *name = editor->name;
const gchar *company;
- int i;
+ gint i;
if (!(file_as && GTK_IS_ENTRY(file_as)))
return -1;
@@ -475,10 +475,10 @@ file_as_get_style (EContactEditor *editor)
}
static void
-file_as_set_style (EContactEditor *editor, int style)
+file_as_set_style (EContactEditor *editor, gint style)
{
- char *string;
- int i;
+ gchar *string;
+ gint i;
GList *strings = NULL;
GtkComboBox *combo_file_as = GTK_COMBO_BOX (glade_xml_get_widget (editor->gui, "combo-file-as"));
GtkEntry *company_w = GTK_ENTRY (glade_xml_get_widget (editor->gui, "entry-company"));
@@ -496,7 +496,7 @@ file_as_set_style (EContactEditor *editor, int style)
for (i = 0; i < 6; i++) {
if (style_makes_sense (editor->name, company, i)) {
- char *u;
+ gchar *u;
u = name_to_style (editor->name, company, i);
if (!STRING_IS_EMPTY (u))
strings = g_list_append (strings, u);
@@ -528,8 +528,8 @@ file_as_set_style (EContactEditor *editor, int style)
static void
name_entry_changed (GtkWidget *widget, EContactEditor *editor)
{
- int style = 0;
- const char *string;
+ gint style = 0;
+ const gchar *string;
style = file_as_get_style (editor);
e_contact_name_free (editor->name);
@@ -545,7 +545,7 @@ name_entry_changed (GtkWidget *widget, EContactEditor *editor)
static void
file_as_combo_changed (GtkWidget *widget, EContactEditor *editor)
{
- char *string = gtk_combo_box_get_active_text (GTK_COMBO_BOX (widget));
+ gchar *string = gtk_combo_box_get_active_text (GTK_COMBO_BOX (widget));
if (string && *string) {
gchar *title;
@@ -564,7 +564,7 @@ file_as_combo_changed (GtkWidget *widget, EContactEditor *editor)
static void
company_entry_changed (GtkWidget *widget, EContactEditor *editor)
{
- int style = 0;
+ gint style = 0;
style = file_as_get_style (editor);
file_as_set_style (editor, style);
@@ -600,9 +600,9 @@ sensitize_ok (EContactEditor *ce)
GtkWidget *entry_fullname = glade_xml_get_widget (ce->gui, "entry-fullname" );
GtkWidget *entry_file_as = gtk_bin_get_child (GTK_BIN (glade_xml_get_widget (ce->gui, "combo-file-as")));
GtkWidget *company_name = glade_xml_get_widget (ce->gui, "entry-company");
- const char *name_entry_string = gtk_entry_get_text (GTK_ENTRY (entry_fullname));
- const char *file_as_entry_string = gtk_entry_get_text (GTK_ENTRY (entry_file_as));
- const char *company_name_string = gtk_entry_get_text (GTK_ENTRY (company_name));
+ const gchar *name_entry_string = gtk_entry_get_text (GTK_ENTRY (entry_fullname));
+ const gchar *file_as_entry_string = gtk_entry_get_text (GTK_ENTRY (entry_file_as));
+ const gchar *company_name_string = gtk_entry_get_text (GTK_ENTRY (company_name));
allow_save = ce->target_editable && ce->changed ? TRUE : FALSE;
@@ -641,7 +641,7 @@ image_chooser_changed (GtkWidget *widget, EContactEditor *editor)
static void
set_entry_text (EContactEditor *editor, GtkEntry *entry, const gchar *string)
{
- const char *oldstring = gtk_entry_get_text (entry);
+ const gchar *oldstring = gtk_entry_get_text (entry);
if (!string)
string = "";
@@ -2197,7 +2197,7 @@ fill_in_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id)
EContactPhoto *photo = e_contact_get (contact, field_id);
if (photo && photo->type == E_CONTACT_PHOTO_TYPE_INLINED) {
e_image_chooser_set_image_data (E_IMAGE_CHOOSER (widget),
- (char *)photo->data.inlined.data,
+ (gchar *)photo->data.inlined.data,
photo->data.inlined.length);
editor->image_set = TRUE;
}
@@ -2235,7 +2235,7 @@ extract_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id)
e_contact_set (contact, field_id, (gchar *) text);
}
else if (GTK_IS_COMBO_BOX_ENTRY (widget)) {
- char *text = gtk_combo_box_get_active_text (GTK_COMBO_BOX (widget));
+ gchar *text = gtk_combo_box_get_active_text (GTK_COMBO_BOX (widget));
e_contact_set (contact, field_id, text);
@@ -2260,9 +2260,9 @@ extract_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id)
else if (E_IS_DATE_EDIT (widget)) {
EContactDate date;
if (e_date_edit_get_date (E_DATE_EDIT (widget),
- (int *)&date.year,
- (int *)&date.month,
- (int *)&date.day))
+ (gint *)&date.year,
+ (gint *)&date.month,
+ (gint *)&date.day))
e_contact_set (contact, field_id, &date);
else
e_contact_set (contact, field_id, NULL);
@@ -2280,14 +2280,14 @@ extract_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id)
GdkPixbuf *pixbuf, *new;
GdkPixbufLoader *loader = gdk_pixbuf_loader_new();
- photo.data.inlined.data = (unsigned char *)img_buff;
+ photo.data.inlined.data = (guchar *)img_buff;
img_buff = NULL;
gdk_pixbuf_loader_write (loader, photo.data.inlined.data, photo.data.inlined.length, NULL);
gdk_pixbuf_loader_close (loader, NULL);
pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
if (pixbuf) {
- int width, height, prompt_response;
+ gint width, height, prompt_response;
g_object_ref (pixbuf);
@@ -2314,7 +2314,7 @@ extract_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id)
gdk_pixbuf_save_to_buffer (new, &img_buff,
&photo.data.inlined.length,
format_name, NULL, NULL);
- photo.data.inlined.data = (unsigned char *)img_buff;
+ photo.data.inlined.data = (guchar *)img_buff;
img_buff = NULL;
g_free (format_name);
g_object_unref (new);
@@ -2345,7 +2345,7 @@ extract_simple_field (EContactEditor *editor, GtkWidget *widget, gint field_id)
else if (GTK_IS_TOGGLE_BUTTON (widget)) {
gboolean val = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));
- e_contact_set (contact, field_id, val?(void *)1:NULL);
+ e_contact_set (contact, field_id, val?(gpointer)1:NULL);
}
else {
g_warning (G_STRLOC ": Unhandled widget class in mappings!");
@@ -2599,11 +2599,11 @@ source_changed (ESourceComboBox *source_combo_box, EContactEditor *editor)
}
static void
-full_name_response (GtkDialog *dialog, int response, EContactEditor *editor)
+full_name_response (GtkDialog *dialog, gint response, EContactEditor *editor)
{
EContactName *name;
GtkWidget *fname_widget;
- int style = 0;
+ gint style = 0;
gboolean editable = FALSE;
g_object_get (dialog,
@@ -2619,8 +2619,8 @@ full_name_response (GtkDialog *dialog, int response, EContactEditor *editor)
fname_widget = glade_xml_get_widget(editor->gui, "entry-fullname");
if (fname_widget && GTK_IS_ENTRY (fname_widget)) {
- char *full_name = e_contact_name_to_string(name);
- const char *old_full_name = gtk_entry_get_text (GTK_ENTRY(fname_widget));
+ gchar *full_name = e_contact_name_to_string(name);
+ const gchar *old_full_name = gtk_entry_get_text (GTK_ENTRY(fname_widget));
if (strcmp (full_name, old_full_name))
gtk_entry_set_text (GTK_ENTRY (fname_widget), full_name);
@@ -2677,9 +2677,9 @@ full_name_clicked (GtkWidget *button, EContactEditor *editor)
static void
-categories_response (GtkDialog *dialog, int response, EContactEditor *editor)
+categories_response (GtkDialog *dialog, gint response, EContactEditor *editor)
{
- const char *categories;
+ const gchar *categories;
GtkWidget *entry = glade_xml_get_widget(editor->gui, "entry-categories");
if (response == GTK_RESPONSE_OK) {
@@ -2687,7 +2687,7 @@ categories_response (GtkDialog *dialog, int response, EContactEditor *editor)
if (entry && GTK_IS_ENTRY(entry))
gtk_entry_set_text (GTK_ENTRY (entry), categories);
else
- e_contact_set (editor->contact, E_CONTACT_CATEGORIES, (char *)categories);
+ e_contact_set (editor->contact, E_CONTACT_CATEGORIES, (gchar *)categories);
}
gtk_widget_destroy(GTK_WIDGET(dialog));
editor->categories_dialog = NULL;
@@ -2706,7 +2706,7 @@ categories_editor_delete_event_cb (GtkWidget *widget, GdkEvent *event, gpointer
static void
categories_clicked (GtkWidget *button, EContactEditor *editor)
{
- char *categories = NULL;
+ gchar *categories = NULL;
GtkDialog *dialog;
GtkWidget *entry = glade_xml_get_widget(editor->gui, "entry-categories");
@@ -2803,7 +2803,7 @@ static void
update_preview_cb (GtkFileChooser *file_chooser, gpointer data)
{
GtkWidget *preview;
- char *filename = NULL;
+ gchar *filename = NULL;
GdkPixbuf *pixbuf;
gtk_file_chooser_set_preview_widget_active (file_chooser, TRUE);
@@ -2905,7 +2905,7 @@ contact_moved_cb (EBook *book, EBookStatus status, EditorCloseStruct *ecs)
}
static void
-contact_added_cb (EBook *book, EBookStatus status, const char *id, EditorCloseStruct *ecs)
+contact_added_cb (EBook *book, EBookStatus status, const gchar *id, EditorCloseStruct *ecs)
{
EContactEditor *ce = ecs->ce;
gboolean should_close = ecs->should_close;
@@ -2921,7 +2921,7 @@ contact_added_cb (EBook *book, EBookStatus status, const char *id, EditorCloseSt
gtk_widget_set_sensitive (ce->app, TRUE);
ce->in_async_call = FALSE;
- e_contact_set (ce->contact, E_CONTACT_UID, (char *) id);
+ e_contact_set (ce->contact, E_CONTACT_UID, (gchar *) id);
eab_editor_contact_added (EAB_EDITOR (ce), status, ce->contact);
@@ -2998,8 +2998,8 @@ real_save_contact (EContactEditor *ce, gboolean should_close)
static void
save_contact (EContactEditor *ce, gboolean should_close)
{
- char *uid;
- const char *name_entry_string, *file_as_entry_string, *company_name_string;
+ gchar *uid;
+ const gchar *name_entry_string, *file_as_entry_string, *company_name_string;
GtkWidget *entry_fullname, *entry_file_as, *company_name;
if (!ce->target_book)
@@ -3088,8 +3088,8 @@ static const EContactField non_string_fields [] = {
static gboolean
is_non_string_field (EContactField id)
{
- int count = sizeof (non_string_fields) / sizeof (EContactField);
- int i;
+ gint count = sizeof (non_string_fields) / sizeof (EContactField);
+ gint i;
for (i = 0; i < count; i++)
if (id == non_string_fields[i])
return TRUE;
@@ -3127,7 +3127,7 @@ e_contact_editor_is_valid (EABEditor *editor)
for (e_iterator_last (iter);
e_iterator_is_valid (iter);
e_iterator_prev (iter)) {
- const char *field_name = e_iterator_get (iter);
+ const gchar *field_name = e_iterator_get (iter);
EContactField field_id = e_contact_field_id (field_name);
if (is_non_string_field (field_id)) {
@@ -3140,7 +3140,7 @@ e_contact_editor_is_valid (EABEditor *editor)
}
} else {
- const char *text = e_contact_get_const (ce->contact, field_id);
+ const gchar *text = e_contact_get_const (ce->contact, field_id);
if (STRING_IS_EMPTY (text)) {
g_string_append_printf (errmsg, _("%s'%s' is empty"),
@@ -3331,7 +3331,7 @@ e_contact_editor_init (EContactEditor *e_contact_editor)
GladeXML *gui;
GtkWidget *widget, *label;
GtkEntryCompletion *completion;
- char *gladefile;
+ gchar *gladefile;
e_contact_editor->name = e_contact_name_new();
@@ -3495,7 +3495,7 @@ required_fields_cb (EBook *book, EBookStatus status,
static void
-contact_editor_destroy_notify (void *data,
+contact_editor_destroy_notify (gpointer data,
GObject *where_the_object_was)
{
eab_editor_remove (EAB_EDITOR (data));
@@ -3533,7 +3533,7 @@ e_contact_editor_new (EBook *book,
static void
writable_changed (EBook *book, gboolean writable, EContactEditor *ce)
{
- int new_target_editable;
+ gint new_target_editable;
gboolean changed = FALSE;
new_target_editable = e_book_is_writable (ce->target_book);
diff --git a/addressbook/gui/contact-editor/e-contact-editor.h b/addressbook/gui/contact-editor/e-contact-editor.h
index e9f40507ae..c5940d96d0 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.h
+++ b/addressbook/gui/contact-editor/e-contact-editor.h
@@ -100,7 +100,7 @@ struct _EContactEditor
EBook *load_book;
/* signal ids for "writable_status" */
- int target_editable_id;
+ gint target_editable_id;
GtkWidget *fullname_dialog;
GtkWidget *categories_dialog;
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index e8d7b03e6c..17ef4fb16d 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -586,7 +586,7 @@ e_contact_quick_add_vcard (const gchar *vcard, EContactQuickAddCallback cb, gpoi
if (contact) {
GList *emails;
- char *name;
+ gchar *name;
EContactName *contact_name;
g_object_unref (qa->contact);
diff --git a/addressbook/gui/contact-editor/eab-editor.c b/addressbook/gui/contact-editor/eab-editor.c
index d052e42fd7..6257e3972b 100644
--- a/addressbook/gui/contact-editor/eab-editor.c
+++ b/addressbook/gui/contact-editor/eab-editor.c
@@ -311,11 +311,11 @@ eab_editor_get_all_editors (void)
}
gboolean
-eab_editor_confirm_delete (GtkWindow *parent, gboolean plural, gboolean is_list, char *name)
+eab_editor_confirm_delete (GtkWindow *parent, gboolean plural, gboolean is_list, gchar *name)
{
GtkWidget *dialog;
gint result;
- char *msg;
+ gchar *msg;
if (is_list) {
/* contact list(s) */
diff --git a/addressbook/gui/contact-editor/eab-editor.h b/addressbook/gui/contact-editor/eab-editor.h
index 18a11047be..6959d25801 100644
--- a/addressbook/gui/contact-editor/eab-editor.h
+++ b/addressbook/gui/contact-editor/eab-editor.h
@@ -91,7 +91,7 @@ gboolean eab_editor_is_changed (EABEditor *editor);
GtkWindow* eab_editor_get_window (EABEditor *editor);
gboolean eab_editor_prompt_to_save_changes (EABEditor *editor, GtkWindow *window);
-gboolean eab_editor_confirm_delete (GtkWindow *parent, gboolean plural, gboolean is_list, char *name);
+gboolean eab_editor_confirm_delete (GtkWindow *parent, gboolean plural, gboolean is_list, gchar *name);
/* these four generate EABEditor signals */
void eab_editor_contact_added (EABEditor *editor, EBookStatus status, EContact *contact);
diff --git a/addressbook/gui/contact-editor/test-editor.c b/addressbook/gui/contact-editor/test-editor.c
index e624c97987..6c3349eada 100644
--- a/addressbook/gui/contact-editor/test-editor.c
+++ b/addressbook/gui/contact-editor/test-editor.c
@@ -54,12 +54,12 @@
"
"
-static char *
-read_file (char *name)
+static gchar *
+read_file (gchar *name)
{
- int len;
- char buff[65536];
- char line[1024];
+ gint len;
+ gchar buff[65536];
+ gchar line[1024];
FILE *f;
f = fopen (name, "r");
@@ -81,7 +81,7 @@ read_file (char *name)
static void
editor_closed_cb (EContactEditor *ce, gpointer data)
{
- static int count = 2;
+ static gint count = 2;
count--;
g_object_unref (ce);
@@ -90,9 +90,9 @@ editor_closed_cb (EContactEditor *ce, gpointer data)
exit (0);
}
-int main( int argc, char *argv[] )
+gint main( gint argc, gchar *argv[] )
{
- char *cardstr;
+ gchar *cardstr;
EContactEditor *ce;
gtk_init (&argc, &argv);
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
index 7a492f0c52..e62958a72e 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c
+++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
@@ -1397,7 +1397,7 @@ contact_list_editor_add_destination (EVCardAttribute *attr,
gint email_num = -1;
GList *list, *iter;
GList *values;
- char *value;
+ gchar *value;
destination = e_destination_new ();
diff --git a/addressbook/gui/merging/eab-contact-compare.c b/addressbook/gui/merging/eab-contact-compare.c
index 86138efb14..6c343be46b 100644
--- a/addressbook/gui/merging/eab-contact-compare.c
+++ b/addressbook/gui/merging/eab-contact-compare.c
@@ -476,11 +476,11 @@ eab_contact_compare_email (EContact *contact1, EContact *contact2)
we find an exact match, there is no reason to keep
checking. */
while (i1 && match != EAB_CONTACT_MATCH_EXACT) {
- char *addr1 = (char *) i1->data;
+ gchar *addr1 = (gchar *) i1->data;
i2 = contact2_email;
while (i2 && match != EAB_CONTACT_MATCH_EXACT) {
- char *addr2 = (char *) i2->data;
+ gchar *addr2 = (gchar *) i2->data;
match = combine_comparisons (match, compare_email_addresses (addr1, addr2));
@@ -640,7 +640,7 @@ use_common_book_cb (EBook *book, gpointer closure)
gint p=0;
gchar *contact_file_as, *qj;
EBookQuery *query = NULL;
- int i;
+ gint i;
if (book == NULL) {
info->cb (info->contact, NULL, EAB_CONTACT_MATCH_NONE, info->closure);
@@ -699,7 +699,7 @@ use_common_book_cb (EBook *book, gpointer closure)
for(i = 0; query_parts[i] != NULL; i++)
g_free(query_parts[i]);
if (p > 1) {
- char *s;
+ gchar *s;
s = g_strdup_printf ("(or %s)", qj);
query = e_book_query_from_string (s);
g_free (s);
diff --git a/addressbook/gui/merging/eab-contact-merging.c b/addressbook/gui/merging/eab-contact-merging.c
index 895e8126c6..0805ca3110 100644
--- a/addressbook/gui/merging/eab-contact-merging.c
+++ b/addressbook/gui/merging/eab-contact-merging.c
@@ -62,7 +62,7 @@ static void match_query_callback (EContact *contact, EContact *match, EABContact
#define SIMULTANEOUS_MERGING_REQUESTS 20
static GList *merging_queue = NULL;
-static int running_merge_requests = 0;
+static gint running_merge_requests = 0;
static void
@@ -109,7 +109,7 @@ free_lookup (EContactMergingLookup *lookup)
}
static void
-final_id_cb (EBook *book, EBookStatus status, const char *id, gpointer closure)
+final_id_cb (EBook *book, EBookStatus status, const gchar *id, gpointer closure)
{
EContactMergingLookup *lookup = closure;
@@ -156,7 +156,7 @@ cancelit (EContactMergingLookup *lookup)
static void
dialog_map (GtkWidget *window, GdkEvent *event, GtkWidget *table)
{
- int h, w;
+ gint h, w;
/* Spacing around the table */
w = table->allocation.width + 30;
@@ -173,7 +173,7 @@ dialog_map (GtkWidget *window, GdkEvent *event, GtkWidget *table)
static void
dropdown_changed (GtkWidget *dropdown, dropdown_data *data)
{
- char *str;
+ gchar *str;
str = gtk_combo_box_get_active_text (GTK_COMBO_BOX (dropdown));
if (g_ascii_strcasecmp(str, ""))
@@ -190,11 +190,11 @@ mergeit (EContactMergingLookup *lookup)
GtkDialog *dialog;
GtkTable *table;
EContactField field;
- char *str = NULL, *string = NULL, *string1 = NULL;
- int num_of_email;
+ gchar *str = NULL, *string = NULL, *string1 = NULL;
+ gint num_of_email;
GList *email_attr_list;
- int row = -1;
- int value = 0, result;
+ gint row = -1;
+ gint value = 0, result;
dialog = (GtkDialog *)(gtk_dialog_new_with_buttons (_("Merge Contact"), NULL, GTK_DIALOG_NO_SEPARATOR, NULL));
gtk_container_set_border_width (GTK_CONTAINER(dialog), 5);
@@ -220,8 +220,8 @@ mergeit (EContactMergingLookup *lookup)
/*we match all the string fields of the already existing contact and the new contact.*/
for(field = E_CONTACT_FULL_NAME; field != (E_CONTACT_LAST_SIMPLE_STRING -1) ; field++) {
dropdown_data *data = NULL;
- string = (char *)e_contact_get_const (lookup->contact, field);
- string1 = (char *)e_contact_get_const (lookup->match, field);
+ string = (gchar *)e_contact_get_const (lookup->contact, field);
+ string1 = (gchar *)e_contact_get_const (lookup->match, field);
/*the field must exist in the new as well as the duplicate contact*/
if (string && *string) {
@@ -230,7 +230,7 @@ mergeit (EContactMergingLookup *lookup)
if ((field == E_CONTACT_EMAIL_1 || field == E_CONTACT_EMAIL_2
|| field == E_CONTACT_EMAIL_3 || field == E_CONTACT_EMAIL_4) && (num_of_email < 4)) {
row++;
- str = (char *)e_contact_get_const (lookup->contact, field);
+ str = (gchar *)e_contact_get_const (lookup->contact, field);
switch(num_of_email)
{
case 0:
@@ -366,8 +366,8 @@ check_if_same (EContact *contact, EContact *match)
{
EContactField field;
GList *email_attr_list;
- int num_of_email;
- char *str = NULL, *string = NULL, *string1 = NULL;
+ gint num_of_email;
+ gchar *str = NULL, *string = NULL, *string1 = NULL;
for(field = E_CONTACT_FULL_NAME; field != (E_CONTACT_LAST_SIMPLE_STRING -1) ; field++) {
email_attr_list = e_contact_get_attributes (match, E_CONTACT_EMAIL);
@@ -375,7 +375,7 @@ check_if_same (EContact *contact, EContact *match)
if ((field == E_CONTACT_EMAIL_1 || field == E_CONTACT_EMAIL_2
|| field == E_CONTACT_EMAIL_3 || field == E_CONTACT_EMAIL_4) && (num_of_email<4)) {
- str = (char *)e_contact_get_const (contact, field);
+ str = (gchar *)e_contact_get_const (contact, field);
switch(num_of_email)
{
case 0:
@@ -395,8 +395,8 @@ check_if_same (EContact *contact, EContact *match)
}
}
else {
- string = (char *)e_contact_get_const (contact, field);
- string1 = (char *)e_contact_get_const (match, field);
+ string = (gchar *)e_contact_get_const (contact, field);
+ string1 = (gchar *)e_contact_get_const (match, field);
if ((string && *string) && (string1 && *string1) && (g_ascii_strcasecmp(string1,string)))
return FALSE;
/*if the field entry exist in either of the contacts,we'll have to give the choice and thus merge button should be sensitive*/
@@ -409,9 +409,9 @@ check_if_same (EContact *contact, EContact *match)
}
static void
-response (GtkWidget *dialog, int response, EContactMergingLookup *lookup)
+response (GtkWidget *dialog, gint response, EContactMergingLookup *lookup)
{
- static int merge_response;
+ static gint merge_response;
switch (response) {
case 0:
@@ -437,8 +437,8 @@ static void
match_query_callback (EContact *contact, EContact *match, EABContactMatchType type, gpointer closure)
{
EContactMergingLookup *lookup = closure;
- char *gladefile;
- int flag;
+ gchar *gladefile;
+ gint flag;
if ((gint) type <= (gint) EAB_CONTACT_MATCH_VAGUE) {
doit (lookup);
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 9482a93744..2176fc3915 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -71,7 +71,7 @@ static void
free_data (EABModel *model)
{
if (model->data) {
- int i;
+ gint i;
for ( i = 0; i < model->data_count; i++ ) {
g_object_unref (model->data[i]);
@@ -153,8 +153,8 @@ addressbook_dispose(GObject *object)
static void
update_folder_bar_message (EABModel *model)
{
- int count;
- char *message;
+ gint count;
+ gchar *message;
count = model->data_count;
@@ -179,8 +179,8 @@ create_contact(EBookView *book_view,
const GList *contacts,
EABModel *model)
{
- int old_count = model->data_count;
- int length = g_list_length ((GList *)contacts);
+ gint old_count = model->data_count;
+ gint length = g_list_length ((GList *)contacts);
if (model->data_count + length > model->allocated_count) {
while (model->data_count + length > model->allocated_count)
@@ -212,7 +212,7 @@ remove_contact(EBookView *book_view,
indices = g_array_new (FALSE, FALSE, sizeof (gint));
for (l = ids; l; l = l->next) {
- char *id = l->data;
+ gchar *id = l->data;
for ( i = 0; i < model->data_count; i++) {
if ( !strcmp(e_contact_get_const (model->data[i], E_CONTACT_UID), id) ) {
g_object_unref (model->data[i]);
@@ -236,7 +236,7 @@ modify_contact(EBookView *book_view,
EABModel *model)
{
for ( ; contacts; contacts = contacts->next) {
- int i;
+ gint i;
for ( i = 0; i < model->data_count; i++) {
if ( !strcmp(e_contact_get_const(model->data[i], E_CONTACT_UID),
e_contact_get_const(E_CONTACT(contacts->data), E_CONTACT_UID)) ) {
@@ -253,7 +253,7 @@ modify_contact(EBookView *book_view,
static void
status_message (EBookView *book_view,
- char* status,
+ gchar * status,
EABModel *model)
{
g_signal_emit (model,
@@ -508,8 +508,8 @@ get_view (EABModel *model)
if (model->book && model->query) {
ESource *source;
- const char *limit_str;
- int limit = -1;
+ const gchar *limit_str;
+ gint limit = -1;
source = e_book_get_source (model->book);
@@ -552,7 +552,7 @@ get_view_idle (EABModel *model)
EContact *
eab_model_get_contact(EABModel *model,
- int row)
+ gint row)
{
if (model->data && 0 <= row && row < model->data_count) {
return e_contact_duplicate (model->data[row]);
@@ -643,7 +643,7 @@ eab_model_get_property (GObject *object, guint prop_id, GValue *value, GParamSpe
g_value_set_object (value, eab_model->book);
break;
case PROP_QUERY: {
- char *query_string = e_book_query_to_string (eab_model->query);
+ gchar *query_string = e_book_query_to_string (eab_model->query);
g_value_set_string (value, query_string);
break;
}
@@ -712,14 +712,14 @@ eab_model_force_folder_bar_message (EABModel *model)
update_folder_bar_message (model);
}
-int
+gint
eab_model_contact_count (EABModel *model)
{
return model->data_count;
}
const EContact *
-eab_model_contact_at (EABModel *model, int index)
+eab_model_contact_at (EABModel *model, gint index)
{
return model->data[index];
}
diff --git a/addressbook/gui/widgets/e-addressbook-model.h b/addressbook/gui/widgets/e-addressbook-model.h
index ae1c5f4cb2..f8b448a6be 100644
--- a/addressbook/gui/widgets/e-addressbook-model.h
+++ b/addressbook/gui/widgets/e-addressbook-model.h
@@ -43,15 +43,15 @@ struct _EABModel {
EBookQuery *query;
EBookView *book_view;
- int book_view_idle_id;
+ gint book_view_idle_id;
EContact **data;
- int data_count;
- int allocated_count;
+ gint data_count;
+ gint allocated_count;
- int create_contact_id, remove_contact_id, modify_contact_id;
- int status_message_id, writable_status_id, sequence_complete_id;
- int backend_died_id;
+ gint create_contact_id, remove_contact_id, modify_contact_id;
+ gint status_message_id, writable_status_id, sequence_complete_id;
+ gint backend_died_id;
guint search_in_progress : 1;
guint editable : 1;
@@ -85,7 +85,7 @@ EABModel *eab_model_new (void);
/* Returns object with ref count of 1. */
EContact *eab_model_get_contact (EABModel *model,
- int row);
+ gint row);
EBook *eab_model_get_ebook (EABModel *model);
void eab_model_stop (EABModel *model);
@@ -93,9 +93,9 @@ gboolean eab_model_can_stop (EABModel *model);
void eab_model_force_folder_bar_message (EABModel *model);
-int eab_model_contact_count (EABModel *model);
+gint eab_model_contact_count (EABModel *model);
const EContact *eab_model_contact_at (EABModel *model,
- int index);
+ gint index);
gboolean eab_model_editable (EABModel *model);
#endif /* _EAB_MODEL_H_ */
diff --git a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
index 237838141b..6258ed28ca 100644
--- a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
+++ b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
@@ -36,8 +36,8 @@ struct _EAddressbookReflowAdapterPrivate {
gboolean loading;
- int create_contact_id, remove_contact_id, modify_contact_id, model_changed_id;
- int search_started_id, search_result_id;
+ gint create_contact_id, remove_contact_id, modify_contact_id, model_changed_id;
+ gint search_started_id, search_result_id;
};
#define PARENT_TYPE e_reflow_model_get_type()
@@ -101,7 +101,7 @@ unlink_model(EAddressbookReflowAdapter *adapter)
static int
text_height (PangoLayout *layout, const gchar *text)
{
- int height;
+ gint height;
pango_layout_set_text (layout, text, -1);
@@ -119,7 +119,7 @@ addressbook_dispose(GObject *object)
}
static void
-addressbook_set_width (EReflowModel *erm, int width)
+addressbook_set_width (EReflowModel *erm, gint width)
{
}
@@ -135,16 +135,16 @@ addressbook_count (EReflowModel *erm)
/* This function returns the height of the minicontact in question */
static int
-addressbook_height (EReflowModel *erm, int i, GnomeCanvasGroup *parent)
+addressbook_height (EReflowModel *erm, gint i, GnomeCanvasGroup *parent)
{
EAddressbookReflowAdapter *adapter = E_ADDRESSBOOK_REFLOW_ADAPTER(erm);
EAddressbookReflowAdapterPrivate *priv = adapter->priv;
EContactField field;
- int count = 0;
- char *string;
+ gint count = 0;
+ gchar *string;
EContact *contact = (EContact*)eab_model_contact_at (priv->model, i);
PangoLayout *layout = gtk_widget_create_pango_layout (GTK_WIDGET (GNOME_CANVAS_ITEM (parent)->canvas), "");
- int height;
+ gint height;
string = e_contact_get(contact, E_CONTACT_FILE_AS);
height = text_height (layout, string ? string : "") + 10.0;
@@ -157,8 +157,8 @@ addressbook_height (EReflowModel *erm, int i, GnomeCanvasGroup *parent)
string = e_contact_get(contact, field);
if (string && *string) {
- int this_height;
- int field_text_height;
+ gint this_height;
+ gint field_text_height;
this_height = text_height (layout, e_contact_pretty_name(field));
@@ -181,7 +181,7 @@ addressbook_height (EReflowModel *erm, int i, GnomeCanvasGroup *parent)
}
static int
-addressbook_compare (EReflowModel *erm, int n1, int n2)
+addressbook_compare (EReflowModel *erm, gint n1, gint n2)
{
EAddressbookReflowAdapter *adapter = E_ADDRESSBOOK_REFLOW_ADAPTER(erm);
EAddressbookReflowAdapterPrivate *priv = adapter->priv;
@@ -195,8 +195,8 @@ addressbook_compare (EReflowModel *erm, int n1, int n2)
contact2 = (EContact*)eab_model_contact_at (priv->model, n2);
if (contact1 && contact2) {
- const char *file_as1, *file_as2;
- const char *uid1, *uid2;
+ const gchar *file_as1, *file_as2;
+ const gchar *uid1, *uid2;
file_as1 = e_contact_get_const (contact1, E_CONTACT_FILE_AS);
file_as2 = e_contact_get_const (contact2, E_CONTACT_FILE_AS);
if (file_as1 && file_as2)
@@ -235,7 +235,7 @@ adapter_drag_begin (EMinicard *card, GdkEvent *event, EAddressbookReflowAdapter
}
static GnomeCanvasItem *
-addressbook_incarnate (EReflowModel *erm, int i, GnomeCanvasGroup *parent)
+addressbook_incarnate (EReflowModel *erm, gint i, GnomeCanvasGroup *parent)
{
EAddressbookReflowAdapter *adapter = E_ADDRESSBOOK_REFLOW_ADAPTER(erm);
EAddressbookReflowAdapterPrivate *priv = adapter->priv;
@@ -259,7 +259,7 @@ addressbook_incarnate (EReflowModel *erm, int i, GnomeCanvasGroup *parent)
}
static void
-addressbook_reincarnate (EReflowModel *erm, int i, GnomeCanvasItem *item)
+addressbook_reincarnate (EReflowModel *erm, gint i, GnomeCanvasItem *item)
{
EAddressbookReflowAdapter *adapter = E_ADDRESSBOOK_REFLOW_ADAPTER(erm);
EAddressbookReflowAdapterPrivate *priv = adapter->priv;
@@ -285,7 +285,7 @@ remove_contacts (EABModel *model,
EAddressbookReflowAdapter *adapter)
{
GArray *indices = (GArray *) data;
- int count = indices->len;
+ gint count = indices->len;
if (count == 1)
e_reflow_model_item_removed (E_REFLOW_MODEL (adapter), g_array_index (indices, gint, 0));
@@ -536,7 +536,7 @@ e_addressbook_reflow_adapter_new (EABModel *model)
EContact *
e_addressbook_reflow_adapter_get_contact (EAddressbookReflowAdapter *adapter,
- int index)
+ gint index)
{
EAddressbookReflowAdapterPrivate *priv = adapter->priv;
diff --git a/addressbook/gui/widgets/e-addressbook-reflow-adapter.h b/addressbook/gui/widgets/e-addressbook-reflow-adapter.h
index 88ce1a7132..14803e945c 100644
--- a/addressbook/gui/widgets/e-addressbook-reflow-adapter.h
+++ b/addressbook/gui/widgets/e-addressbook-reflow-adapter.h
@@ -59,5 +59,5 @@ EReflowModel *e_addressbook_reflow_adapter_new (EABModel *
/* Returns object with ref count of 1. */
EContact *e_addressbook_reflow_adapter_get_contact (EAddressbookReflowAdapter *adapter,
- int index);
+ gint index);
#endif /* _E_ADDRESSBOOK_REFLOW_ADAPTER_H_ */
diff --git a/addressbook/gui/widgets/e-addressbook-table-adapter.c b/addressbook/gui/widgets/e-addressbook-table-adapter.c
index 9e3dfe5f5f..59e670e772 100644
--- a/addressbook/gui/widgets/e-addressbook-table-adapter.c
+++ b/addressbook/gui/widgets/e-addressbook-table-adapter.c
@@ -33,7 +33,7 @@
struct _EAddressbookTableAdapterPrivate {
EABModel *model;
- int create_contact_id, remove_contact_id, modify_contact_id, model_changed_id;
+ gint create_contact_id, remove_contact_id, modify_contact_id, model_changed_id;
GHashTable *emails;
};
@@ -104,12 +104,12 @@ addressbook_row_count (ETableModel *etc)
}
/* This function returns the value at a particular point in our ETableModel. */
-static void *
-addressbook_value_at (ETableModel *etc, int col, int row)
+static gpointer
+addressbook_value_at (ETableModel *etc, gint col, gint row)
{
EAddressbookTableAdapter *adapter = EAB_TABLE_ADAPTER(etc);
EAddressbookTableAdapterPrivate *priv = adapter->priv;
- const char *value;
+ const gchar *value;
if ( col >= COLS || row >= eab_model_contact_count (priv->model) )
return NULL;
@@ -117,13 +117,13 @@ addressbook_value_at (ETableModel *etc, int col, int row)
value = e_contact_get_const((EContact*)eab_model_contact_at (priv->model, row), col);
if (value && *value && (col == E_CONTACT_EMAIL_1 || col == E_CONTACT_EMAIL_2 || col == E_CONTACT_EMAIL_3)) {
- char *val = g_hash_table_lookup (priv->emails, value);
+ gchar *val = g_hash_table_lookup (priv->emails, value);
if (val) {
/* we have this already cached, so use value from the cache */
value = val;
} else {
- char *name = NULL, *mail = NULL;
+ gchar *name = NULL, *mail = NULL;
if (eab_parse_qp_email (value, &name, &mail))
val = g_strdup_printf ("%s <%s>", name, mail);
@@ -138,7 +138,7 @@ addressbook_value_at (ETableModel *etc, int col, int row)
}
}
- return (void *)(value ? value : "");
+ return (gpointer)(value ? value : "");
}
/* This function sets the value at a particular point in our ETableModel. */
@@ -151,7 +151,7 @@ contact_modified_cb (EBook* book, EBookStatus status,
}
static void
-addressbook_set_value_at (ETableModel *etc, int col, int row, const void *val)
+addressbook_set_value_at (ETableModel *etc, gint col, gint row, gconstpointer val)
{
EAddressbookTableAdapter *adapter = EAB_TABLE_ADAPTER(etc);
EAddressbookTableAdapterPrivate *priv = adapter->priv;
@@ -169,14 +169,14 @@ addressbook_set_value_at (ETableModel *etc, int col, int row, const void *val)
e_table_model_pre_change(etc);
if (col == E_CONTACT_EMAIL_1 || col == E_CONTACT_EMAIL_2 || col == E_CONTACT_EMAIL_3) {
- const char *old_value = e_contact_get_const (contact, col);
+ const gchar *old_value = e_contact_get_const (contact, col);
/* remove old value from cache and use new one */
if (old_value && *old_value)
g_hash_table_remove (priv->emails, old_value);
}
- e_contact_set(contact, col, (void *) val);
+ e_contact_set(contact, col, (gpointer) val);
eab_merging_book_commit_contact (eab_model_get_ebook (priv->model),
contact, contact_modified_cb, etc);
@@ -189,7 +189,7 @@ addressbook_set_value_at (ETableModel *etc, int col, int row, const void *val)
/* This function returns whether a particular cell is editable. */
static gboolean
-addressbook_is_cell_editable (ETableModel *etc, int col, int row)
+addressbook_is_cell_editable (ETableModel *etc, gint col, gint row)
{
#if 0
EAddressbookTableAdapter *adapter = EAB_TABLE_ADAPTER(etc);
@@ -220,13 +220,13 @@ addressbook_append_row (ETableModel *etm, ETableModel *source, gint row)
EAddressbookTableAdapter *adapter = EAB_TABLE_ADAPTER(etm);
EAddressbookTableAdapterPrivate *priv = adapter->priv;
EContact *contact;
- int col;
+ gint col;
contact = e_contact_new ();
for (col = 1; col < E_CONTACT_LAST_SIMPLE_STRING; col++) {
- const void *val = e_table_model_value_at (source, col, row);
- e_contact_set (contact, col, (void *) val);
+ gconstpointer val = e_table_model_value_at (source, col, row);
+ e_contact_set (contact, col, (gpointer) val);
}
eab_merging_book_add_contact (eab_model_get_ebook (priv->model), contact, NULL, NULL);
@@ -235,33 +235,33 @@ addressbook_append_row (ETableModel *etm, ETableModel *source, gint row)
}
/* This function duplicates the value passed to it. */
-static void *
-addressbook_duplicate_value (ETableModel *etc, int col, const void *value)
+static gpointer
+addressbook_duplicate_value (ETableModel *etc, gint col, gconstpointer value)
{
return g_strdup(value);
}
/* This function frees the value passed to it. */
static void
-addressbook_free_value (ETableModel *etc, int col, void *value)
+addressbook_free_value (ETableModel *etc, gint col, gpointer value)
{
g_free(value);
}
-static void *
-addressbook_initialize_value (ETableModel *etc, int col)
+static gpointer
+addressbook_initialize_value (ETableModel *etc, gint col)
{
return g_strdup("");
}
static gboolean
-addressbook_value_is_empty (ETableModel *etc, int col, const void *value)
+addressbook_value_is_empty (ETableModel *etc, gint col, gconstpointer value)
{
- return !(value && *(char *)value);
+ return !(value && *(gchar *)value);
}
-static char *
-addressbook_value_to_string (ETableModel *etc, int col, const void *value)
+static gchar *
+addressbook_value_to_string (ETableModel *etc, gint col, gconstpointer value)
{
return g_strdup(value);
}
@@ -318,7 +318,7 @@ remove_contacts (EABModel *model,
EAddressbookTableAdapter *adapter)
{
GArray *indices = (GArray *) data;
- int count = indices->len;
+ gint count = indices->len;
/* clear whole cache */
g_hash_table_remove_all (adapter->priv->emails);
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 4cd151f19f..cda5c5f27c 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -100,7 +100,7 @@ static void categories_changed_cb (gpointer object, gpointer user_data);
static void make_suboptions (EABView *view);
static void query_changed (ESearchBar *esb, EABView *view);
static void search_activated (ESearchBar *esb, EABView *view);
-static void search_menu_activated (ESearchBar *esb, int id, EABView *view);
+static void search_menu_activated (ESearchBar *esb, gint id, EABView *view);
static GList *get_master_list (gboolean force_rebuild);
static gpointer parent_class;
@@ -131,14 +131,14 @@ enum DndTargetType {
typedef struct EABSearchBarItem {
ESearchBarItem search;
- char *image;
+ gchar *image;
}EABSearchBarItem;
static GtkTargetEntry drag_types[] = {
{ (gchar *) SOURCE_VCARD_TYPE, 0, DND_TARGET_TYPE_SOURCE_VCARD },
{ (gchar *) VCARD_TYPE, 0, DND_TARGET_TYPE_VCARD }
};
-static const int num_drag_types = sizeof (drag_types) / sizeof (drag_types[0]);
+static const gint num_drag_types = sizeof (drag_types) / sizeof (drag_types[0]);
static guint eab_view_signals [LAST_SIGNAL] = {0, };
@@ -412,8 +412,8 @@ eab_view_new (void)
GtkWidget *widget = GTK_WIDGET (g_object_new (E_TYPE_AB_VIEW, NULL));
EABView *eav = EAB_VIEW (widget);
FilterPart *part;
- char *xmlfile;
- char *userfile;
+ gchar *xmlfile;
+ gchar *userfile;
/* create our model */
eav->model = eab_model_new ();
@@ -543,9 +543,9 @@ init_collection (void)
{
GalViewFactory *factory;
ETableSpecification *spec;
- char *galview;
- char *addressbookdir;
- char *etspecfile;
+ gchar *galview;
+ gchar *addressbookdir;
+ gchar *etspecfile;
if (collection == NULL) {
collection = gal_view_collection_new();
@@ -626,7 +626,7 @@ display_view(GalViewInstance *instance,
}
static void
-view_preview(BonoboUIComponent *uic, const char *path, Bonobo_UIComponent_EventType type, const char *state, void *data)
+view_preview(BonoboUIComponent *uic, const gchar *path, Bonobo_UIComponent_EventType type, const gchar *state, gpointer data)
{
/* XXX this should use the addressbook's global gconf client */
GConfClient *gconf_client;
@@ -793,7 +793,7 @@ static GList *
get_contact_list (EABPopupTargetSelect *t)
{
GList *list = NULL;
- int i;
+ gint i;
for (i=0;i<t->cards->len;i++)
list = g_list_prepend(list, t->cards->pdata[i]);
@@ -802,7 +802,7 @@ get_contact_list (EABPopupTargetSelect *t)
}
static void
-save_as (EPopup *ep, EPopupItem *pitem, void *data)
+save_as (EPopup *ep, EPopupItem *pitem, gpointer data)
{
/*ContactAndBook *contact_and_book = data;*/
GList *contacts = get_contact_list ((EABPopupTargetSelect *)ep->target);
@@ -814,7 +814,7 @@ save_as (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-send_as (EPopup *ep, EPopupItem *pitem, void *data)
+send_as (EPopup *ep, EPopupItem *pitem, gpointer data)
{
/*ContactAndBook *contact_and_book = data;*/
GList *contacts = get_contact_list ((EABPopupTargetSelect *)ep->target);
@@ -826,7 +826,7 @@ send_as (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-send_to (EPopup *ep, EPopupItem *pitem, void *data)
+send_to (EPopup *ep, EPopupItem *pitem, gpointer data)
{
/*ContactAndBook *contact_and_book = data;*/
GList *contacts = get_contact_list ((EABPopupTargetSelect *)ep->target);
@@ -838,7 +838,7 @@ send_to (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-print (EPopup *ep, EPopupItem *pitem, void *data)
+print (EPopup *ep, EPopupItem *pitem, gpointer data)
{
/*ContactAndBook *contact_and_book = data;*/
EABPopupTargetSelect *t = (EABPopupTargetSelect *)ep->target;
@@ -852,7 +852,7 @@ print (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-copy (EPopup *ep, EPopupItem *pitem, void *data)
+copy (EPopup *ep, EPopupItem *pitem, gpointer data)
{
ContactAndBook *contact_and_book = data;
@@ -860,7 +860,7 @@ copy (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-paste (EPopup *ep, EPopupItem *pitem, void *data)
+paste (EPopup *ep, EPopupItem *pitem, gpointer data)
{
ContactAndBook *contact_and_book = data;
@@ -868,7 +868,7 @@ paste (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-cut (EPopup *ep, EPopupItem *pitem, void *data)
+cut (EPopup *ep, EPopupItem *pitem, gpointer data)
{
ContactAndBook *contact_and_book = data;
@@ -876,7 +876,7 @@ cut (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-delete (EPopup *ep, EPopupItem *pitem, void *data)
+delete (EPopup *ep, EPopupItem *pitem, gpointer data)
{
ContactAndBook *contact_and_book = data;
@@ -884,7 +884,7 @@ delete (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-copy_to_folder (EPopup *ep, EPopupItem *pitem, void *data)
+copy_to_folder (EPopup *ep, EPopupItem *pitem, gpointer data)
{
ContactAndBook *contact_and_book = data;
@@ -892,7 +892,7 @@ copy_to_folder (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-move_to_folder (EPopup *ep, EPopupItem *pitem, void *data)
+move_to_folder (EPopup *ep, EPopupItem *pitem, gpointer data)
{
ContactAndBook *contact_and_book = data;
@@ -900,7 +900,7 @@ move_to_folder (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-open_contact (EPopup *ep, EPopupItem *pitem, void *data)
+open_contact (EPopup *ep, EPopupItem *pitem, gpointer data)
{
ContactAndBook *contact_and_book = data;
@@ -909,7 +909,7 @@ open_contact (EPopup *ep, EPopupItem *pitem, void *data)
static void
-new_card (EPopup *ep, EPopupItem *pitem, void *data)
+new_card (EPopup *ep, EPopupItem *pitem, gpointer data)
{
/*ContactAndBook *contact_and_book = data;*/
EContact *contact = e_contact_new();
@@ -919,7 +919,7 @@ new_card (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-new_list (EPopup *ep, EPopupItem *pitem, void *data)
+new_list (EPopup *ep, EPopupItem *pitem, gpointer data)
{
/*ContactAndBook *contact_and_book = data;*/
EContact *contact = e_contact_new ();
@@ -955,7 +955,7 @@ static EPopupItem eabv_popup_items[] = {
};
static void
-get_card_1(gint model_row, void *data)
+get_card_1(gint model_row, gpointer data)
{
ContactAndBook *contact_and_book = data;
EContact *contact;
@@ -966,7 +966,7 @@ get_card_1(gint model_row, void *data)
}
static void
-eabv_popup_free(EPopup *ep, GSList *list, void *data)
+eabv_popup_free(EPopup *ep, GSList *list, gpointer data)
{
ContactAndBook *cab = data;
ESelectionModel *selection;
@@ -987,7 +987,7 @@ do_popup_menu(EABView *view, GdkEvent *event)
EABPopup *ep;
EABPopupTargetSelect *t;
GSList *menus = NULL;
- int i;
+ gint i;
GtkMenu *menu;
GPtrArray *cards = g_ptr_array_new();
ContactAndBook *contact_and_book;
@@ -1025,7 +1025,7 @@ do_popup_menu(EABView *view, GdkEvent *event)
}
static void
-render_contact (int row, EABView *view)
+render_contact (gint row, EABView *view)
{
EContact *contact = eab_model_get_contact (view->model, row);
@@ -1099,8 +1099,8 @@ table_white_space_event(ETableScrolled *table, GdkEvent *event, EABView *view)
static void
table_drag_data_get (ETable *table,
- int row,
- int col,
+ gint row,
+ gint col,
GdkDragContext *context,
GtkSelectionData *selection_data,
guint info,
@@ -1117,7 +1117,7 @@ table_drag_data_get (ETable *table,
switch (info) {
case DND_TARGET_TYPE_VCARD: {
- char *value;
+ gchar *value;
value = eab_contact_list_to_string (contact_list);
@@ -1129,7 +1129,7 @@ table_drag_data_get (ETable *table,
break;
}
case DND_TARGET_TYPE_SOURCE_VCARD: {
- char *value;
+ gchar *value;
value = eab_book_and_contact_list_to_string (view->book, contact_list);
@@ -1221,7 +1221,7 @@ static void
contacts_removed (EABModel *model, gpointer data, EABView *eav)
{
GArray *indices = (GArray *) data;
- int count = indices->len;
+ gint count = indices->len;
gint i;
for (i = 0; i < count; i ++) {
@@ -1284,7 +1284,7 @@ create_table_view (EABView *view)
{
ETableModel *adapter;
GtkWidget *table;
- char *etspecfile;
+ gchar *etspecfile;
adapter = eab_table_adapter_new(view->model);
@@ -1358,9 +1358,9 @@ static void
search_activated (ESearchBar *esb, EABView *v)
{
GList *master_list;
- char *search_word, *search_query, *view_sexp;
- const char *category_name;
- int search_type, subid;
+ gchar *search_word, *search_query, *view_sexp;
+ const gchar *category_name;
+ gint search_type, subid;
g_object_get(esb,
"text", &search_word,
@@ -1427,7 +1427,7 @@ search_activated (ESearchBar *esb, EABView *v)
}
static void
-search_menu_activated (ESearchBar *esb, int id, EABView *view)
+search_menu_activated (ESearchBar *esb, gint id, EABView *view)
{
if (id == E_FILTERBAR_ADVANCED_ID)
e_search_bar_set_item_id (esb, id);
@@ -1436,8 +1436,8 @@ search_menu_activated (ESearchBar *esb, int id, EABView *view)
static void
query_changed (ESearchBar *esb, EABView *view)
{
- int search_type;
- char *query;
+ gint search_type;
+ gchar *query;
search_type = e_search_bar_get_item_id(esb);
if (search_type == E_FILTERBAR_ADVANCED_ID) {
@@ -1448,12 +1448,12 @@ query_changed (ESearchBar *esb, EABView *view)
}
static int
-compare_subitems (const void *a, const void *b)
+compare_subitems (gconstpointer a, gconstpointer b)
{
const ESearchBarItem *subitem_a = a;
const ESearchBarItem *subitem_b = b;
- char *collate_a, *collate_b;
- int ret;
+ gchar *collate_a, *collate_b;
+ gint ret;
collate_a = g_utf8_collate_key (subitem_a->text, -1);
collate_b = g_utf8_collate_key (subitem_b->text, -1);
@@ -1476,7 +1476,7 @@ generate_viewoption_menu (EABSearchBarItem *subitems)
for (i = 0; subitems[i].search.id != -1; ++i) {
if (subitems[i].search.text) {
- char *str = NULL;
+ gchar *str = NULL;
str = e_str_without_underscores (subitems[i].search.text);
menu_item = gtk_image_menu_item_new_with_label (str);
if (subitems[i].image) {
@@ -1536,10 +1536,10 @@ make_suboptions (EABView *view)
subitems[2].image = NULL;
for (i=0; i<N; ++i) {
- const char *category = g_list_nth_data (master_list, i);
+ const gchar *category = g_list_nth_data (master_list, i);
subitems[i+3].search.id = i+3;
subitems[i+3].search.text = g_strdup (category);
- subitems[i+3].image = (char *)e_categories_get_icon_file_for (category);
+ subitems[i+3].image = (gchar *)e_categories_get_icon_file_for (category);
}
subitems[N+3].search.id = -1;
@@ -1571,7 +1571,7 @@ get_master_list (gboolean force_rebuild)
GList *l, *p = e_categories_get_list ();
for (l = p; l; l = l->next) {
- if (e_categories_is_searchable ((const char *) l->data))
+ if (e_categories_is_searchable ((const gchar *) l->data))
category_list = g_list_prepend (category_list, l->data);
}
@@ -1756,7 +1756,7 @@ eab_view_delete_selection(EABView *view, gboolean is_delete)
ETable *etable = NULL;
EMinicardView *card_view;
ESelectionModel *selection_model = NULL;
- char *name = NULL;
+ gchar *name = NULL;
gint row = 0, select;
list = get_selected_contacts (view);
@@ -1797,7 +1797,7 @@ eab_view_delete_selection(EABView *view, gboolean is_delete)
for (l=list;l;l=g_list_next(l)) {
contact = l->data;
- ids = g_list_prepend (ids, (char*)e_contact_get_const (contact, E_CONTACT_UID));
+ ids = g_list_prepend (ids, (gchar *)e_contact_get_const (contact, E_CONTACT_UID));
}
/* Remove the cards all at once. */
@@ -1864,7 +1864,7 @@ selection_get (GtkWidget *invisible,
guint time_stamp,
EABView *view)
{
- char *value;
+ gchar *value;
value = eab_contact_list_to_string (view->clipboard_contacts);
@@ -1896,14 +1896,14 @@ selection_received (GtkWidget *invisible,
} else {
GList *contact_list;
GList *l;
- char *str = NULL;
+ gchar *str = NULL;
if (selection_data->data [selection_data->length - 1] != 0) {
str = g_malloc0 (selection_data->length + 1);
memcpy (str, selection_data->data, selection_data->length);
contact_list = eab_contact_list_from_string (str);
} else
- contact_list = eab_contact_list_from_string ((char *)selection_data->data);
+ contact_list = eab_contact_list_from_string ((gchar *)selection_data->data);
for (l = contact_list; l; l = l->next) {
EContact *contact = l->data;
@@ -1919,7 +1919,7 @@ selection_received (GtkWidget *invisible,
}
static void
-add_to_list (int model_row, gpointer closure)
+add_to_list (gint model_row, gpointer closure)
{
GList **list = closure;
*list = g_list_prepend (*list, GINT_TO_POINTER (model_row));
diff --git a/addressbook/gui/widgets/e-addressbook-view.h b/addressbook/gui/widgets/e-addressbook-view.h
index 7f796415cd..72bafaa535 100644
--- a/addressbook/gui/widgets/e-addressbook-view.h
+++ b/addressbook/gui/widgets/e-addressbook-view.h
@@ -76,7 +76,7 @@ struct _EABView
EBook *book;
ESource *source;
- char *query;
+ gchar *query;
guint editable : 1;
gint displayed_contact;
diff --git a/addressbook/gui/widgets/e-minicard-label.c b/addressbook/gui/widgets/e-minicard-label.c
index a6090291bd..52110bb169 100644
--- a/addressbook/gui/widgets/e-minicard-label.c
+++ b/addressbook/gui/widgets/e-minicard-label.c
@@ -40,7 +40,7 @@ static void e_minicard_label_get_property (GObject *object, guint prop_id, GVal
static gboolean e_minicard_label_event (GnomeCanvasItem *item, GdkEvent *event);
static void e_minicard_label_realize (GnomeCanvasItem *item);
static void e_minicard_label_unrealize (GnomeCanvasItem *item);
-static void e_minicard_label_reflow(GnomeCanvasItem *item, int flags);
+static void e_minicard_label_reflow(GnomeCanvasItem *item, gint flags);
static void e_minicard_label_style_set (EMinicardLabel *label, GtkStyle *previous_style);
static void e_minicard_label_resize_children( EMinicardLabel *e_minicard_label );
@@ -455,7 +455,7 @@ e_minicard_label_style_set (EMinicardLabel *label, GtkStyle *previous_style)
}
static void
-e_minicard_label_reflow(GnomeCanvasItem *item, int flags)
+e_minicard_label_reflow(GnomeCanvasItem *item, gint flags)
{
EMinicardLabel *e_minicard_label = E_MINICARD_LABEL(item);
diff --git a/addressbook/gui/widgets/e-minicard-view-widget.c b/addressbook/gui/widgets/e-minicard-view-widget.c
index 9c493afa61..a48e45ca52 100644
--- a/addressbook/gui/widgets/e-minicard-view-widget.c
+++ b/addressbook/gui/widgets/e-minicard-view-widget.c
@@ -303,7 +303,7 @@ selection_change (ESelectionModel *esm, EMinicardViewWidget *widget)
}
static void
-selection_row_change (ESelectionModel *esm, int row, EMinicardViewWidget *widget)
+selection_row_change (ESelectionModel *esm, gint row, EMinicardViewWidget *widget)
{
selection_change (esm, widget);
}
@@ -447,7 +447,7 @@ e_minicard_view_widget_real_focus_in_event(GtkWidget *widget, GdkEventFocus *eve
if (!canvas->focused_item) {
EReflow *reflow = E_REFLOW (view->emv);
if (reflow->count) {
- int unsorted = e_sorter_sorted_to_model (E_SORTER (reflow->sorter), 0);
+ gint unsorted = e_sorter_sorted_to_model (E_SORTER (reflow->sorter), 0);
if (unsorted != -1)
canvas->focused_item = reflow->items [unsorted];
diff --git a/addressbook/gui/widgets/e-minicard-view-widget.h b/addressbook/gui/widgets/e-minicard-view-widget.h
index ff9cddac24..29b8904797 100644
--- a/addressbook/gui/widgets/e-minicard-view-widget.h
+++ b/addressbook/gui/widgets/e-minicard-view-widget.h
@@ -49,7 +49,7 @@ struct _EMinicardViewWidget
EAddressbookReflowAdapter *adapter;
EBook *book;
- char *query;
+ gchar *query;
guint editable : 1;
double column_width;
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index b716c86c80..2e9ef12507 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -87,20 +87,20 @@ e_minicard_view_drag_data_get(GtkWidget *widget,
switch (info) {
case DND_TARGET_TYPE_VCARD_LIST: {
- char *value;
+ gchar *value;
value = eab_contact_list_to_string (view->drag_list);
gtk_selection_data_set (selection_data,
selection_data->target,
8,
- (unsigned char *)value, strlen (value));
+ (guchar *)value, strlen (value));
g_free (value);
break;
}
case DND_TARGET_TYPE_SOURCE_VCARD_LIST: {
EBook *book;
- char *value;
+ gchar *value;
g_object_get (view->adapter, "book", &book, NULL);
value = eab_book_and_contact_list_to_string (book, view->drag_list);
@@ -108,7 +108,7 @@ e_minicard_view_drag_data_get(GtkWidget *widget,
gtk_selection_data_set (selection_data,
selection_data->target,
8,
- (unsigned char *)value, strlen (value));
+ (guchar *)value, strlen (value));
g_free (value);
break;
}
@@ -155,7 +155,7 @@ e_minicard_view_drag_begin (EAddressbookReflowAdapter *adapter, GdkEvent *event,
static void
set_empty_message (EMinicardView *view)
{
- char *empty_message;
+ gchar *empty_message;
gboolean editable = FALSE, perform_initial_query = FALSE, searching = FALSE;
EBook *book;
@@ -417,7 +417,7 @@ static gint
e_minicard_view_selection_event (EReflow *reflow, GnomeCanvasItem *item, GdkEvent *event)
{
EMinicardView *view;
- int return_val = FALSE;
+ gint return_val = FALSE;
view = E_MINICARD_VIEW (reflow);
if (parent_class->selection_event) {
@@ -427,7 +427,7 @@ e_minicard_view_selection_event (EReflow *reflow, GnomeCanvasItem *item, GdkEven
switch (event->type) {
case GDK_FOCUS_CHANGE:
if (event->focus_change.in) {
- int i;
+ gint i;
for (i = 0; i < reflow->count; i++) {
if (reflow->items[i] == item) {
e_selection_model_maybe_do_something(reflow->selection, i, 0, 0);
@@ -456,7 +456,7 @@ typedef struct {
} ViewCbClosure;
static void
-do_remove (int i, gpointer user_data)
+do_remove (gint i, gpointer user_data)
{
EBook *book;
EContact *contact;
@@ -478,7 +478,7 @@ do_remove (int i, gpointer user_data)
#if 0
static int
-compare_to_utf_str (EMinicard *card, const char *utf_str)
+compare_to_utf_str (EMinicard *card, const gchar *utf_str)
{
g_return_val_if_fail(card != NULL, 0);
g_return_val_if_fail(E_IS_MINICARD(card), 0);
@@ -488,7 +488,7 @@ compare_to_utf_str (EMinicard *card, const char *utf_str)
}
if (card->card) {
- char *file_as;
+ gchar *file_as;
g_object_get(card->card,
"file_as", &file_as,
NULL);
@@ -621,7 +621,7 @@ e_minicard_view_jump_to_letter (EMinicardView *view,
gunichar letter)
{
#if 0
- char uft_str[6 + 1];
+ gchar uft_str[6 + 1];
utf_str [g_unichar_to_utf8 (letter, utf_str)] = '\0';
e_reflow_sorted_jump (E_REFLOW_SORTED (view),
@@ -636,7 +636,7 @@ typedef struct {
} ModelAndList;
static void
-add_to_list (int index, gpointer closure)
+add_to_list (gint index, gpointer closure)
{
ModelAndList *mal = closure;
mal->list = g_list_prepend (mal->list, e_addressbook_reflow_adapter_get_contact (mal->adapter, index));
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 0c70b12da0..da85e5fd83 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -50,7 +50,7 @@ static void e_minicard_finalize (GObject *object);
static gboolean e_minicard_event (GnomeCanvasItem *item, GdkEvent *event);
static void e_minicard_realize (GnomeCanvasItem *item);
static void e_minicard_unrealize (GnomeCanvasItem *item);
-static void e_minicard_reflow ( GnomeCanvasItem *item, int flags );
+static void e_minicard_reflow ( GnomeCanvasItem *item, gint flags );
static void e_minicard_style_set (EMinicard *minicard, GtkStyle *previous_style);
static void e_minicard_resize_children( EMinicard *e_minicard );
@@ -600,7 +600,7 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
break;
case GDK_BUTTON_PRESS: {
if (1 <= event->button.button && event->button.button <= 2) {
- int ret_val = e_minicard_selected(e_minicard, event);
+ gint ret_val = e_minicard_selected(e_minicard, event);
GdkEventMask mask = ((1 << (4 + event->button.button)) |
GDK_POINTER_MOTION_MASK |
GDK_BUTTON_PRESS_MASK |
@@ -619,7 +619,7 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
e_minicard->drag_button_down = TRUE;
return ret_val;
} else if (event->button.button == 3) {
- int ret_val = e_minicard_selected(e_minicard, event);
+ gint ret_val = e_minicard_selected(e_minicard, event);
if (ret_val != 0)
return ret_val;
}
@@ -675,9 +675,9 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
return FALSE;
}
else {
- int row_count = e_selection_model_row_count (reflow->selection);
- int model_index = e_selection_model_cursor_row (reflow->selection);
- int view_index = e_sorter_model_to_sorted (reflow->selection->sorter, model_index);
+ gint row_count = e_selection_model_row_count (reflow->selection);
+ gint model_index = e_selection_model_cursor_row (reflow->selection);
+ gint view_index = e_sorter_model_to_sorted (reflow->selection->sorter, model_index);
if (view_index == 0)
view_index = row_count-1;
@@ -701,9 +701,9 @@ e_minicard_event (GnomeCanvasItem *item, GdkEvent *event)
return FALSE;
}
else {
- int row_count = e_selection_model_row_count(reflow->selection);
- int model_index = e_selection_model_cursor_row (reflow->selection);
- int view_index = e_sorter_model_to_sorted (reflow->selection->sorter, model_index);
+ gint row_count = e_selection_model_row_count(reflow->selection);
+ gint model_index = e_selection_model_cursor_row (reflow->selection);
+ gint view_index = e_sorter_model_to_sorted (reflow->selection->sorter, model_index);
if (view_index == row_count-1)
view_index = 0;
@@ -768,8 +768,8 @@ add_field (EMinicard *e_minicard, EContactField field, gdouble left_width)
GnomeCanvasItem *new_item;
GnomeCanvasGroup *group;
EMinicardField *minicard_field;
- char *name;
- char *string;
+ gchar *name;
+ gchar *string;
gboolean is_rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
group = GNOME_CANVAS_GROUP( e_minicard );
@@ -817,7 +817,7 @@ add_field (EMinicard *e_minicard, EContactField field, gdouble left_width)
}
-static const char *
+static const gchar *
get_email_location (EVCardAttribute *attr)
{
gint i;
@@ -831,28 +831,28 @@ get_email_location (EVCardAttribute *attr)
}
static void
-add_email_field (EMinicard *e_minicard, GList *email_list, gdouble left_width, int limit, gboolean is_list)
+add_email_field (EMinicard *e_minicard, GList *email_list, gdouble left_width, gint limit, gboolean is_list)
{
GnomeCanvasItem *new_item;
GnomeCanvasGroup *group;
EMinicardField *minicard_field;
- char *name;
+ gchar *name;
GList *l, *le;
- int count =0;
+ gint count =0;
gboolean is_rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
GList *emails = e_contact_get (e_minicard->contact, E_CONTACT_EMAIL);
group = GNOME_CANVAS_GROUP( e_minicard );
for (l=email_list, le=emails; l!=NULL && count < limit && le!=NULL; l = l->next, le=le->next) {
const gchar *tmp;
- char *email = NULL;
- char *string = NULL;
- char *parsed_name = NULL;
+ gchar *email = NULL;
+ gchar *string = NULL;
+ gchar *parsed_name = NULL;
gboolean parser_check;
/* do not use name for fields in the contact list */
if (is_list) {
- name = (char *)"";
+ name = (gchar *)"";
} else {
tmp = get_email_location ((EVCardAttribute *) l->data);
name = g_strdup_printf ("%s:", tmp);
@@ -908,7 +908,7 @@ get_left_width (EMinicard *e_minicard, gboolean is_list)
{
gchar *name;
EContactField field;
- int width = -1;
+ gint width = -1;
PangoLayout *layout;
if (is_list)
@@ -916,7 +916,7 @@ get_left_width (EMinicard *e_minicard, gboolean is_list)
layout = gtk_widget_create_pango_layout (GTK_WIDGET (GNOME_CANVAS_ITEM (e_minicard)->canvas), "");
for(field = E_CONTACT_FULL_NAME; field != E_CONTACT_LAST_SIMPLE_STRING; field++) {
- int this_width;
+ gint this_width;
if (field == E_CONTACT_FAMILY_NAME || field == E_CONTACT_GIVEN_NAME)
continue;
@@ -935,14 +935,14 @@ get_left_width (EMinicard *e_minicard, gboolean is_list)
static void
remodel( EMinicard *e_minicard )
{
- int count = 0;
+ gint count = 0;
if ( !(GTK_OBJECT_FLAGS( e_minicard ) & GNOME_CANVAS_ITEM_REALIZED) )
return;
if (e_minicard->contact) {
EContactField field;
GList *list;
- char *file_as;
- int left_width = -1;
+ gchar *file_as;
+ gint left_width = -1;
gboolean is_list = FALSE;
gboolean email_rendered = FALSE;
@@ -985,7 +985,7 @@ remodel( EMinicard *e_minicard )
minicard_field = list->data;
if (minicard_field && minicard_field->field == field) {
GList *this_list = list;
- char *string;
+ gchar *string;
string = e_contact_get(e_minicard->contact, field);
if (string && *string) {
@@ -1000,14 +1000,14 @@ remodel( EMinicard *e_minicard )
list = g_list_delete_link(list, this_list);
g_free(string);
} else {
- char *string;
+ gchar *string;
if (left_width == -1) {
left_width = get_left_width (e_minicard, is_list);
}
if (is_email) {
GList *email;
- int limit;
+ gint limit;
limit = 5 - count;
email = e_contact_get_attributes (e_minicard->contact, E_CONTACT_EMAIL);
@@ -1035,7 +1035,7 @@ remodel( EMinicard *e_minicard )
}
static void
-e_minicard_reflow(GnomeCanvasItem *item, int flags)
+e_minicard_reflow(GnomeCanvasItem *item, gint flags)
{
EMinicard *e_minicard = E_MINICARD(item);
if (GTK_OBJECT_FLAGS (e_minicard) & GNOME_CANVAS_ITEM_REALIZED) {
@@ -1080,7 +1080,7 @@ e_minicard_reflow(GnomeCanvasItem *item, int flags)
}
}
-const char *
+const gchar *
e_minicard_get_card_id (EMinicard *minicard)
{
g_return_val_if_fail(minicard != NULL, NULL);
@@ -1093,10 +1093,10 @@ e_minicard_get_card_id (EMinicard *minicard)
}
}
-int
+gint
e_minicard_compare (EMinicard *minicard1, EMinicard *minicard2)
{
- int cmp = 0;
+ gint cmp = 0;
g_return_val_if_fail(minicard1 != NULL, 0);
g_return_val_if_fail(E_IS_MINICARD(minicard1), 0);
@@ -1104,7 +1104,7 @@ e_minicard_compare (EMinicard *minicard1, EMinicard *minicard2)
g_return_val_if_fail(E_IS_MINICARD(minicard2), 0);
if (minicard1->contact && minicard2->contact) {
- char *file_as1, *file_as2;
+ gchar *file_as1, *file_as2;
g_object_get(minicard1->contact,
"file_as", &file_as1,
NULL);
@@ -1128,7 +1128,7 @@ e_minicard_compare (EMinicard *minicard1, EMinicard *minicard2)
return cmp;
}
-int
+gint
e_minicard_selected (EMinicard *minicard, GdkEvent *event)
{
gint ret_val = 0;
diff --git a/addressbook/gui/widgets/e-minicard.h b/addressbook/gui/widgets/e-minicard.h
index fb8116cb9d..9ab025185c 100644
--- a/addressbook/gui/widgets/e-minicard.h
+++ b/addressbook/gui/widgets/e-minicard.h
@@ -119,11 +119,11 @@ struct _EMinicardField {
#define E_MINICARD_FIELD(field) ((EMinicardField *)(field))
GType e_minicard_get_type (void);
-const char *e_minicard_get_card_id (EMinicard *minicard);
-int e_minicard_compare (EMinicard *minicard1,
+const gchar *e_minicard_get_card_id (EMinicard *minicard);
+gint e_minicard_compare (EMinicard *minicard1,
EMinicard *minicard2);
-int e_minicard_selected (EMinicard *minicard,
+gint e_minicard_selected (EMinicard *minicard,
GdkEvent *event);
gboolean e_minicard_activate_editor (EMinicard *minicard);
diff --git a/addressbook/gui/widgets/eab-config.c b/addressbook/gui/widgets/eab-config.c
index 32ae07862f..91056e0544 100644
--- a/addressbook/gui/widgets/eab-config.c
+++ b/addressbook/gui/widgets/eab-config.c
@@ -126,7 +126,7 @@ eab_config_get_type (void)
}
EABConfig *
-eab_config_new (int type, const char *menuid)
+eab_config_new (gint type, const gchar *menuid)
{
EABConfig *ecp = g_object_new (eab_config_get_type(), NULL);
e_config_construct (&ecp->config, type, menuid);
@@ -156,7 +156,7 @@ static const EConfigHookTargetMap ecph_targets[] = {
static void
ecph_class_init (EPluginHookClass *klass)
{
- int i;
+ gint i;
klass->id = "org.gnome.evolution.addressbook.config:1.0";
diff --git a/addressbook/gui/widgets/eab-config.h b/addressbook/gui/widgets/eab-config.h
index 330df5141b..edc13bbb1b 100644
--- a/addressbook/gui/widgets/eab-config.h
+++ b/addressbook/gui/widgets/eab-config.h
@@ -59,7 +59,7 @@ struct _EABConfigTargetSource {
typedef struct _EConfigItem EABConfigItem;
GType eab_config_get_type (void);
-EABConfig *eab_config_new (int type, const char *menuid);
+EABConfig *eab_config_new (gint type, const gchar *menuid);
EABConfigTargetSource *eab_config_target_new_source (EABConfig *ecp, struct _ESource *source);
diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c
index 96050b2ca4..197a91e89c 100644
--- a/addressbook/gui/widgets/eab-contact-display.c
+++ b/addressbook/gui/widgets/eab-contact-display.c
@@ -45,7 +45,7 @@ struct _EABContactDisplayPrivate {
EContact *contact;
GtkWidget *invisible;
- char *selection_uri;
+ gchar *selection_uri;
};
static struct {
@@ -78,7 +78,7 @@ common_location [] =
#define MAX_COMPACT_IMAGE_DIMENSION 48
static void
-eab_uri_popup_link_open(EPopup *ep, EPopupItem *item, void *data)
+eab_uri_popup_link_open(EPopup *ep, EPopupItem *item, gpointer data)
{
EABPopupTargetURI *t = (EABPopupTargetURI *)ep->target;
@@ -87,16 +87,16 @@ eab_uri_popup_link_open(EPopup *ep, EPopupItem *item, void *data)
}
static void
-eab_uri_popup_email_address_copy(EPopup *ep, EPopupItem *item, void *data)
+eab_uri_popup_email_address_copy(EPopup *ep, EPopupItem *item, gpointer data)
{
EABContactDisplay *display = data;
struct _EABContactDisplayPrivate *p = display->priv;
EABPopupTargetURI *t = (EABPopupTargetURI *)ep->target;
- const char *url = t->uri;
- char *html=NULL;
- int i=0;
+ const gchar *url = t->uri;
+ gchar *html=NULL;
+ gint i=0;
GList *email_list, *l;
- int email_num = atoi (url + strlen ("internal-mailto:"));
+ gint email_num = atoi (url + strlen ("internal-mailto:"));
email_list = e_contact_get (p->contact, E_CONTACT_EMAIL);
for (l = email_list; l; l=l->next) {
@@ -114,7 +114,7 @@ eab_uri_popup_email_address_copy(EPopup *ep, EPopupItem *item, void *data)
}
static void
-eab_uri_popup_link_copy(EPopup *ep, EPopupItem *pitem, void *data)
+eab_uri_popup_link_copy(EPopup *ep, EPopupItem *pitem, gpointer data)
{
EABContactDisplay *display = data;
struct _EABContactDisplayPrivate *p = display->priv;
@@ -127,14 +127,14 @@ eab_uri_popup_link_copy(EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-eab_uri_popup_address_send(EPopup *ep, EPopupItem *item, void *data)
+eab_uri_popup_address_send(EPopup *ep, EPopupItem *item, gpointer data)
{
EABPopupTargetURI *t = (EABPopupTargetURI *)ep->target;
- const char *url = t->uri;
+ const gchar *url = t->uri;
EABContactDisplay *display = data;
struct _EABContactDisplayPrivate *p = display->priv;
- int mail_num = atoi (url + strlen ("internal-mailto:"));
+ gint mail_num = atoi (url + strlen ("internal-mailto:"));
if (mail_num == -1)
return;
@@ -174,7 +174,7 @@ static EPopupItem eab_uri_popups[] = {
static void
-eab_uri_popup_free(EPopup *ep, GSList *list, void *data)
+eab_uri_popup_free(EPopup *ep, GSList *list, gpointer data)
{
while (list){
GSList *n = list->next;
@@ -189,13 +189,13 @@ eab_uri_popup_free(EPopup *ep, GSList *list, void *data)
}
static int
-eab_uri_popup_event(EABContactDisplay *display, GdkEvent *event, const char *uri)
+eab_uri_popup_event(EABContactDisplay *display, GdkEvent *event, const gchar *uri)
{
EABPopup *emp;
EABPopupTargetURI *t ;
GtkMenu *menu;
GSList *menus = NULL;
- int i;
+ gint i;
emp = eab_popup_new("org.gnome.evolution.addressbook.contactdisplay.popup");
@@ -220,7 +220,7 @@ eab_uri_popup_event(EABContactDisplay *display, GdkEvent *event, const char *uri
}
static void
-on_url_requested (GtkHTML *html, const char *url, GtkHTMLStream *handle,
+on_url_requested (GtkHTML *html, const gchar *url, GtkHTMLStream *handle,
EABContactDisplay *display)
{
if (!strcmp (url, "internal-contact-photo:")) {
@@ -230,7 +230,7 @@ on_url_requested (GtkHTML *html, const char *url, GtkHTMLStream *handle,
if (!photo)
photo = e_contact_get (display->priv->contact, E_CONTACT_LOGO);
- gtk_html_stream_write (handle, (char *)photo->data.inlined.data, photo->data.inlined.length);
+ gtk_html_stream_write (handle, (gchar *)photo->data.inlined.data, photo->data.inlined.length);
gtk_html_end (html, handle, GTK_HTML_STREAM_OK);
@@ -254,11 +254,11 @@ on_url_requested (GtkHTML *html, const char *url, GtkHTMLStream *handle,
}
static void
-on_link_clicked (GtkHTML *html, const char *uri, EABContactDisplay *display)
+on_link_clicked (GtkHTML *html, const gchar *uri, EABContactDisplay *display)
{
#ifdef HANDLE_MAILTO_INTERNALLY
if (!strncmp (uri, "internal-mailto:", strlen ("internal-mailto:"))) {
- int mail_num = atoi (uri + strlen ("internal-mailto:"));
+ gint mail_num = atoi (uri + strlen ("internal-mailto:"));
if (mail_num == -1)
return;
@@ -275,14 +275,14 @@ on_link_clicked (GtkHTML *html, const char *uri, EABContactDisplay *display)
#if 0
static void
-render_address (GtkHTMLStream *html_stream, EContact *contact, const char *html_label, EContactField adr_field, EContactField label_field)
+render_address (GtkHTMLStream *html_stream, EContact *contact, const gchar *html_label, EContactField adr_field, EContactField label_field)
{
EContactAddress *adr;
- const char *label;
+ const gchar *label;
label = e_contact_get_const (contact, label_field);
if (label) {
- char *html = e_text_to_html (label, E_TEXT_TO_HTML_CONVERT_NL);
+ gchar *html = e_text_to_html (label, E_TEXT_TO_HTML_CONVERT_NL);
gtk_html_stream_printf (html_stream, "<tr><td valign=\"top\" width=\"" IMAGE_COL_WIDTH "\"></td><td valign=\"top\" width=\"100\"><font color=" HEADER_COLOR ">%s:</font><br><a href=\"http://www.mapquest.com/\">%s</a></td><td valign=\"top\">%s</td></tr>", html_label, _("(map)"), html);
@@ -312,9 +312,9 @@ This shoul g_free (html);
#endif
static void
-render_name_value (GtkHTMLStream *html_stream, const char *label, const char *str, const char *icon, unsigned int html_flags)
+render_name_value (GtkHTMLStream *html_stream, const gchar *label, const gchar *str, const gchar *icon, guint html_flags)
{
- char *value = e_text_to_html (str, html_flags);
+ gchar *value = e_text_to_html (str, html_flags);
if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) {
gtk_html_stream_printf (html_stream, "<tr><td align=\"right\" valign=\"top\">%s</td> <td align=\"right\" valign=\"top\" width=\"100\" nowrap><font color=" HEADER_COLOR ">%s:</font></td>", value, label);
@@ -334,9 +334,9 @@ render_name_value (GtkHTMLStream *html_stream, const char *label, const char *st
}
static void
-render_attribute (GtkHTMLStream *html_stream, EContact *contact, const char *html_label, EContactField field, const char *icon, unsigned int html_flags)
+render_attribute (GtkHTMLStream *html_stream, EContact *contact, const gchar *html_label, EContactField field, const gchar *icon, guint html_flags)
{
- const char *str;
+ const gchar *str;
str = e_contact_get_const (contact, field);
@@ -346,15 +346,15 @@ render_attribute (GtkHTMLStream *html_stream, EContact *contact, const char *htm
}
static void
-accum_address (GString *gstr, EContact *contact, const char *html_label, EContactField adr_field, EContactField label_field)
+accum_address (GString *gstr, EContact *contact, const gchar *html_label, EContactField adr_field, EContactField label_field)
{
EContactAddress *adr;
- const char *label;
+ const gchar *label;
gboolean is_rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
label = e_contact_get_const (contact, label_field);
if (label) {
- char *html = e_text_to_html (label, E_TEXT_TO_HTML_CONVERT_NL);
+ gchar *html = e_text_to_html (label, E_TEXT_TO_HTML_CONVERT_NL);
#ifdef mapping_works
if (is_rtl)
@@ -399,9 +399,9 @@ accum_address (GString *gstr, EContact *contact, const char *html_label, EContac
}
static void
-accum_name_value (GString *gstr, const char *label, const char *str, const char *icon, unsigned int html_flags)
+accum_name_value (GString *gstr, const gchar *label, const gchar *str, const gchar *icon, guint html_flags)
{
- char *value = e_text_to_html (str, html_flags);
+ gchar *value = e_text_to_html (str, html_flags);
if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) {
g_string_append_printf (gstr, "<tr><td valign=\"top\" align=\"right\">%s</td> <td align=\"right\" valign=\"top\" width=\"100\" nowrap><font color=" HEADER_COLOR ">%s:</font></td>", value, label);
@@ -422,9 +422,9 @@ accum_name_value (GString *gstr, const char *label, const char *str, const char
static void
-accum_attribute (GString *gstr, EContact *contact, const char *html_label, EContactField field, const char *icon, unsigned int html_flags)
+accum_attribute (GString *gstr, EContact *contact, const gchar *html_label, EContactField field, const gchar *icon, guint html_flags)
{
- const char *str;
+ const gchar *str;
str = e_contact_get_const (contact, field);
@@ -434,11 +434,11 @@ accum_attribute (GString *gstr, EContact *contact, const char *html_label, ECont
}
static void
-accum_time_attribute (GString *gstr, EContact *contact, const char *html_label, EContactField field, const char *icon, unsigned int html_flags)
+accum_time_attribute (GString *gstr, EContact *contact, const gchar *html_label, EContactField field, const gchar *icon, guint html_flags)
{
EContactDate *date;
GDate *gdate = NULL;
- char sdate[100];
+ gchar sdate[100];
date = e_contact_get (contact, field);
if (date) {
@@ -453,13 +453,13 @@ accum_time_attribute (GString *gstr, EContact *contact, const char *html_label,
}
static void
-accum_multival_attribute (GString *gstr, EContact *contact, const char *html_label, EContactField field, const char *icon, unsigned int html_flags)
+accum_multival_attribute (GString *gstr, EContact *contact, const gchar *html_label, EContactField field, const gchar *icon, guint html_flags)
{
GList *val_list, *l;
val_list = e_contact_get (contact, field);
for (l = val_list; l; l = l->next) {
- const char *str = (const char *) l->data;
+ const gchar *str = (const gchar *) l->data;
accum_name_value (gstr, html_label, str, icon, html_flags);
}
g_list_foreach (val_list, (GFunc) g_free, NULL);
@@ -495,7 +495,7 @@ render_contact_list (GtkHTMLStream *html_stream, EContact *contact)
}
static void
-start_block (GtkHTMLStream *html_stream, const char *label)
+start_block (GtkHTMLStream *html_stream, const gchar *label)
{
gtk_html_stream_printf (html_stream, "<tr><td height=\"20\" colspan=\"3\"><font color=" HEADER_COLOR "><b>%s</b></font></td></tr>", label);
}
@@ -506,7 +506,7 @@ end_block (GtkHTMLStream *html_stream)
gtk_html_stream_printf (html_stream, "<tr><td height=\"20\">&nbsp;</td></tr>");
}
-static const char *
+static const gchar *
get_email_location (EVCardAttribute *attr)
{
gint i;
@@ -526,10 +526,10 @@ render_contact (GtkHTMLStream *html_stream, EContact *contact)
GList *email_list, *l, *email_attr_list, *al;
gboolean is_rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
#ifdef HANDLE_MAILTO_INTERNALLY
- int email_num = 0;
+ gint email_num = 0;
#endif
const gchar *nl;
- char *nick=NULL;
+ gchar *nick=NULL;
gtk_html_stream_printf (html_stream, "<table border=\"0\">");
@@ -542,8 +542,8 @@ render_contact (GtkHTMLStream *html_stream, EContact *contact)
email_attr_list = e_contact_get_attributes (contact, E_CONTACT_EMAIL);
for (l = email_list, al=email_attr_list; l && al; l = l->next, al = al->next) {
- char *html = NULL, *name = NULL, *mail = NULL;
- char *attr_str = (char *)get_email_location ((EVCardAttribute *) al->data);
+ gchar *html = NULL, *name = NULL, *mail = NULL;
+ gchar *attr_str = (gchar *)get_email_location ((EVCardAttribute *) al->data);
#ifdef HANDLE_MAILTO_INTERNALLY
if (!eab_parse_qp_email (l->data, &name, &mail))
@@ -681,8 +681,8 @@ eab_contact_display_render_normal (EABContactDisplay *display, EContact *contact
gtk_html_stream_printf (html_stream, "<body><table width=\"100%%\"><tr><td %s>\n", is_rtl ? " align=\"right\" " : "");
if (contact) {
- const char *str;
- char *html;
+ const gchar *str;
+ gchar *html;
EContactPhoto *photo;
gtk_html_stream_printf (html_stream, "<table cellspacing=\"20\" border=\"0\"><td %s valign=\"top\">", is_rtl ? " align=\"right\" " : "");
@@ -741,8 +741,8 @@ eab_contact_display_render_compact (EABContactDisplay *display, EContact *contac
gtk_html_stream_write (html_stream, "<body>\n", 7);
if (contact) {
- const char *str;
- char *html;
+ const gchar *str;
+ gchar *html;
EContactPhoto *photo;
guint bg_frame = 0x000000, bg_body = 0xEEEEEE;
GtkStyle *style;
@@ -776,7 +776,7 @@ eab_contact_display_render_compact (EABContactDisplay *display, EContact *contac
if (!photo)
photo = e_contact_get (contact, E_CONTACT_LOGO);
if (photo) {
- int calced_width = MAX_COMPACT_IMAGE_DIMENSION, calced_height = MAX_COMPACT_IMAGE_DIMENSION;
+ gint calced_width = MAX_COMPACT_IMAGE_DIMENSION, calced_height = MAX_COMPACT_IMAGE_DIMENSION;
GdkPixbufLoader *loader = gdk_pixbuf_loader_new ();
GdkPixbuf *pixbuf;
@@ -791,7 +791,7 @@ eab_contact_display_render_compact (EABContactDisplay *display, EContact *contac
g_object_ref (pixbuf);
g_object_unref (loader);
if (pixbuf) {
- int max_dimension;
+ gint max_dimension;
calced_width = gdk_pixbuf_get_width (pixbuf);
calced_height = gdk_pixbuf_get_height (pixbuf);
@@ -926,7 +926,7 @@ eab_contact_display_render (EABContactDisplay *display, EContact *contact,
static int
eab_html_press_event (GtkWidget *widget, GdkEvent *event,EABContactDisplay *display)
{
- char *uri;
+ gchar *uri;
gboolean res = FALSE;
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index 58895c736c..9b3b0c7730 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -54,7 +54,7 @@
/* the NULL's in this table correspond to the status codes
that should *never* be generated by a backend */
-static const char *status_to_string[] = {
+static const gchar *status_to_string[] = {
/* E_BOOK_ERROR_OK */ N_("Success"),
/* E_BOOK_ERROR_INVALID_ARG */ NULL,
/* E_BOOK_ERROR_BUSY */ N_("Backend busy"),
@@ -81,9 +81,9 @@ static const char *status_to_string[] = {
};
void
-eab_error_dialog (const char *msg, EBookStatus status)
+eab_error_dialog (const gchar *msg, EBookStatus status)
{
- const char *status_str;
+ const gchar *status_str;
if (status >= G_N_ELEMENTS (status_to_string))
status_str = "Other error";
@@ -97,7 +97,7 @@ eab_error_dialog (const char *msg, EBookStatus status)
void
eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status)
{
- char *label_string, *label = NULL, *uri;
+ gchar *label_string, *label = NULL, *uri;
GtkWidget *dialog;
gboolean can_detail_error = TRUE;
@@ -114,7 +114,7 @@ eab_load_error_dialog (GtkWidget *parent, ESource *source, EBookStatus status)
}
else if (!strncmp (uri, "file:", 5)) {
- char *path = g_filename_from_uri (uri, NULL, NULL);
+ gchar *path = g_filename_from_uri (uri, NULL, NULL);
label = g_strdup_printf (
_("This address book cannot be opened. Please check that the "
"path %s exists and that permissions are set to access it."), path);
@@ -162,7 +162,7 @@ void
eab_search_result_dialog (GtkWidget *parent,
EBookViewStatus status)
{
- char *str = NULL;
+ gchar *str = NULL;
switch (status) {
case E_BOOK_VIEW_STATUS_OK:
@@ -304,7 +304,7 @@ eab_show_multiple_contacts (EBook *book,
gboolean editable)
{
if (list) {
- int length = g_list_length (list);
+ gint length = g_list_length (list);
if (length > 5) {
GtkWidget *dialog;
gint response;
@@ -336,11 +336,11 @@ eab_show_multiple_contacts (EBook *book,
static gint
-file_exists(GtkWindow *window, const char *filename)
+file_exists(GtkWindow *window, const gchar *filename)
{
GtkWidget *dialog;
gint response;
- char * utf8_filename;
+ gchar * utf8_filename;
utf8_filename = g_filename_to_utf8 (filename, -1, NULL, NULL, NULL);
dialog = gtk_message_dialog_new (window,
@@ -362,15 +362,15 @@ file_exists(GtkWindow *window, const char *filename)
typedef struct {
GtkWidget *filesel;
- char *vcard;
+ gchar *vcard;
gboolean has_multiple_contacts;
} SaveAsInfo;
static void
save_it(GtkWidget *widget, SaveAsInfo *info)
{
- const char *filename;
- char *uri;
+ const gchar *filename;
+ gchar *uri;
gint response = 0;
@@ -388,7 +388,7 @@ save_it(GtkWidget *widget, SaveAsInfo *info)
}
if (!e_write_file_uri (uri, info->vcard)) {
- char *err_str_ext;
+ gchar *err_str_ext;
if (info->has_multiple_contacts) {
/* more than one, finding the total number of contacts might
* hit performance while saving large number of contacts
@@ -419,7 +419,7 @@ close_it(GtkWidget *widget, SaveAsInfo *info)
}
static void
-destroy_it(void *data, GObject *where_the_object_was)
+destroy_it(gpointer data, GObject *where_the_object_was)
{
SaveAsInfo *info = data;
g_free (info->vcard);
@@ -435,10 +435,10 @@ filechooser_response (GtkWidget *widget, gint response_id, SaveAsInfo *info)
close_it (widget, info);
}
-static char *
-make_safe_filename (char *name)
+static gchar *
+make_safe_filename (gchar *name)
{
- char *safe;
+ gchar *safe;
if (!name) {
/* This is a filename. Translators take note. */
@@ -521,11 +521,11 @@ eab_select_source (const gchar *title, const gchar *message, const gchar *select
}
void
-eab_contact_save (char *title, EContact *contact, GtkWindow *parent_window)
+eab_contact_save (gchar *title, EContact *contact, GtkWindow *parent_window)
{
GtkWidget *filesel;
- char *file;
- char *name;
+ gchar *file;
+ gchar *name;
SaveAsInfo *info = g_new(SaveAsInfo, 1);
name = e_contact_get (contact, E_CONTACT_FILE_AS);
@@ -563,11 +563,11 @@ eab_contact_save (char *title, EContact *contact, GtkWindow *parent_window)
}
void
-eab_contact_list_save (char *title, GList *list, GtkWindow *parent_window)
+eab_contact_list_save (gchar *title, GList *list, GtkWindow *parent_window)
{
GtkWidget *filesel;
SaveAsInfo *info = g_new(SaveAsInfo, 1);
- char *file;
+ gchar *file;
filesel = gtk_file_chooser_dialog_new (title,
parent_window,
@@ -586,7 +586,7 @@ eab_contact_list_save (char *title, GList *list, GtkWindow *parent_window)
/* This is a filename. Translators take note. */
if (list && list->data && list->next == NULL) {
- char *name;
+ gchar *name;
name = e_contact_get (E_CONTACT (list->data), E_CONTACT_FILE_AS);
if (!name)
name = e_contact_get (E_CONTACT (list->data), E_CONTACT_FULL_NAME);
@@ -621,7 +621,7 @@ typedef struct ContactCopyProcess_ ContactCopyProcess;
typedef void (*ContactCopyDone) (ContactCopyProcess *process);
struct ContactCopyProcess_ {
- int count;
+ gint count;
gboolean book_status;
GList *contacts;
EBook *source;
@@ -644,7 +644,7 @@ do_delete (gpointer data, gpointer user_data)
{
EBook *book = user_data;
EContact *contact = data;
- const char *id;
+ const gchar *id;
id = e_contact_get_const (contact, E_CONTACT_UID);
e_book_remove_contact(book, id, NULL);
@@ -678,7 +678,7 @@ process_unref (ContactCopyProcess *process)
}
static void
-contact_added_cb (EBook* book, EBookStatus status, const char *id, gpointer user_data)
+contact_added_cb (EBook* book, EBookStatus status, const gchar *id, gpointer user_data)
{
ContactCopyProcess *process = user_data;
@@ -733,9 +733,9 @@ eab_transfer_contacts (EBook *source, GList *contacts /* adopted */, gboolean de
{
EBook *dest;
ESource *destination_source;
- static char *last_uid = NULL;
+ static gchar *last_uid = NULL;
ContactCopyProcess *process;
- char *desc;
+ gchar *desc;
if (contacts == NULL)
return;
@@ -785,7 +785,7 @@ eab_transfer_contacts (EBook *source, GList *contacts /* adopted */, gboolean de
typedef struct {
EContact *contact;
- int email_num; /* if the contact is a person (not a list), the email address to use */
+ gint email_num; /* if the contact is a person (not a list), the email address to use */
} ContactAndEmailNum;
static void
@@ -858,11 +858,11 @@ eab_send_to_contact_and_email_num_list (GList *contact_list)
gtk_widget_show (GTK_WIDGET (composer));
}
-static const char *
+static const gchar *
get_email (EContact *contact, EContactField field_id, gchar **to_free)
{
- char *name = NULL, *mail = NULL;
- const char *value = e_contact_get_const (contact, field_id);
+ gchar *name = NULL, *mail = NULL;
+ const gchar *value = e_contact_get_const (contact, field_id);
*to_free = NULL;
@@ -986,7 +986,7 @@ eab_send_contact_list (GList *contacts, EABDisposition disposition)
}
void
-eab_send_contact (EContact *contact, int email_num, EABDisposition disposition)
+eab_send_contact (EContact *contact, gint email_num, EABDisposition disposition)
{
GList *list = NULL;
@@ -1016,7 +1016,7 @@ eab_create_image_chooser_widget(gchar *name,
gchar *string1, gchar *string2,
gint int1, gint int2)
{
- char *filename;
+ gchar *filename;
GtkWidget *w = NULL;
w = e_image_chooser_new ();
@@ -1064,12 +1064,12 @@ eab_parse_qp_email (const gchar *string, gchar **name, gchar **email)
then makes one string and returns it, otherwise returns NULL.
Returned string is usable to place directly into GtkHtml stream.
Returned value should be freed with g_free. */
-char *
+gchar *
eab_parse_qp_email_to_html (const gchar *string)
{
- char *name = NULL, *mail = NULL;
- char *html_name, *html_mail;
- char *value;
+ gchar *name = NULL, *mail = NULL;
+ gchar *html_name, *html_mail;
+ gchar *value;
if (!eab_parse_qp_email (string, &name, &mail))
return NULL;
diff --git a/addressbook/gui/widgets/eab-gui-util.h b/addressbook/gui/widgets/eab-gui-util.h
index b5129d1637..f29f2292f8 100644
--- a/addressbook/gui/widgets/eab-gui-util.h
+++ b/addressbook/gui/widgets/eab-gui-util.h
@@ -56,11 +56,11 @@ void eab_transfer_contacts (EBook *source,
gboolean delete_from_source,
GtkWindow *parent_window);
-void eab_contact_save (char *title,
+void eab_contact_save (gchar *title,
EContact *contact,
GtkWindow *parent_window);
-void eab_contact_list_save (char *title,
+void eab_contact_list_save (gchar *title,
GList *list,
GtkWindow *parent_window);
@@ -70,7 +70,7 @@ typedef enum {
} EABDisposition;
void eab_send_contact (EContact *contact,
- int email_num,
+ gint email_num,
EABDisposition disposition);
void eab_send_contact_list (GList *contacts,
EABDisposition disposition);
@@ -83,7 +83,7 @@ ESource *eab_select_source (const gchar *title, const gch
/* To parse quoted printable address & return email & name fields */
gboolean eab_parse_qp_email (const gchar *string, gchar **name, gchar **email);
-char *eab_parse_qp_email_to_html (const gchar *string);
+gchar *eab_parse_qp_email_to_html (const gchar *string);
G_END_DECLS
diff --git a/addressbook/gui/widgets/eab-menu.c b/addressbook/gui/widgets/eab-menu.c
index e07489b003..e26e621437 100644
--- a/addressbook/gui/widgets/eab-menu.c
+++ b/addressbook/gui/widgets/eab-menu.c
@@ -33,7 +33,7 @@
#include "eab-menu.h"
-static void eabm_standard_menu_factory(EMenu *emp, void *data);
+static void eabm_standard_menu_factory(EMenu *emp, gpointer data);
static GObjectClass *eabm_parent;
@@ -55,7 +55,7 @@ eabm_target_free(EMenu *ep, EMenuTarget *t)
switch (t->type) {
case EAB_MENU_TARGET_SELECT: {
EABMenuTargetSelect *s = (EABMenuTargetSelect *)t;
- int i;
+ gint i;
for (i=0;i<s->cards->len;i++)
g_object_unref(s->cards->pdata[i]);
@@ -98,7 +98,7 @@ eab_menu_get_type(void)
return type;
}
-EABMenu *eab_menu_new(const char *menuid)
+EABMenu *eab_menu_new(const gchar *menuid)
{
EABMenu *emp = g_object_new(eab_menu_get_type(), NULL);
@@ -119,11 +119,11 @@ EABMenu *eab_menu_new(const char *menuid)
* Return value:
**/
EABMenuTargetSelect *
-eab_menu_target_new_select(EABMenu *eabp, struct _EBook *book, int readonly, GPtrArray *cards)
+eab_menu_target_new_select(EABMenu *eabp, struct _EBook *book, gint readonly, GPtrArray *cards)
{
EABMenuTargetSelect *t = e_menu_target_new(&eabp->menu, EAB_MENU_TARGET_SELECT, sizeof(*t));
guint32 mask = ~0;
- int has_email = FALSE, i;
+ gint has_email = FALSE, i;
/* FIXME: duplicated in eab-popup.c */
@@ -166,7 +166,7 @@ eab_menu_target_new_select(EABMenu *eabp, struct _EBook *book, int readonly, GPt
}
static void
-eabm_standard_menu_factory(EMenu *emp, void *data)
+eabm_standard_menu_factory(EMenu *emp, gpointer data)
{
/* noop */
}
@@ -199,7 +199,7 @@ eabm_standard_menu_factory(EMenu *emp, void *data)
*/
-static void *eabmph_parent_class;
+static gpointer eabmph_parent_class;
#define eabmph ((EABMenuHook *)eph)
static const EMenuHookTargetMask eabmph_select_masks[] = {
@@ -227,7 +227,7 @@ eabmph_finalise(GObject *o)
static void
eabmph_class_init(EPluginHookClass *klass)
{
- int i;
+ gint i;
((GObjectClass *)klass)->finalize = eabmph_finalise;
((EPluginHookClass *)klass)->id = "org.gnome.evolution.addressbook.bonobomenu:1.0";
diff --git a/addressbook/gui/widgets/eab-menu.h b/addressbook/gui/widgets/eab-menu.h
index 7bea32efa4..53e2e88b25 100644
--- a/addressbook/gui/widgets/eab-menu.h
+++ b/addressbook/gui/widgets/eab-menu.h
@@ -84,9 +84,9 @@ struct _EABMenuClass {
GType eab_menu_get_type(void);
-EABMenu *eab_menu_new(const char *menuid);
+EABMenu *eab_menu_new(const gchar *menuid);
-EABMenuTargetSelect *eab_menu_target_new_select(EABMenu *eabp, struct _EBook *book, int readonly, GPtrArray *cards);
+EABMenuTargetSelect *eab_menu_target_new_select(EABMenu *eabp, struct _EBook *book, gint readonly, GPtrArray *cards);
/* ********************************************************************** */
diff --git a/addressbook/gui/widgets/eab-popup-control.c b/addressbook/gui/widgets/eab-popup-control.c
index d520108db4..e56b816af2 100644
--- a/addressbook/gui/widgets/eab-popup-control.c
+++ b/addressbook/gui/widgets/eab-popup-control.c
@@ -316,7 +316,7 @@ eab_popup_new (void)
}
static void
-emit_event (EABPopupControl *pop, const char *event)
+emit_event (EABPopupControl *pop, const gchar *event)
{
if (pop->es) {
BonoboArg *arg;
diff --git a/addressbook/gui/widgets/eab-popup.c b/addressbook/gui/widgets/eab-popup.c
index 1b5cde4b5c..2957c483a6 100644
--- a/addressbook/gui/widgets/eab-popup.c
+++ b/addressbook/gui/widgets/eab-popup.c
@@ -53,7 +53,7 @@ eabp_target_free(EPopup *ep, EPopupTarget *t)
switch (t->type) {
case EAB_POPUP_TARGET_SELECT: {
EABPopupTargetSelect *s = (EABPopupTargetSelect *)t;
- int i;
+ gint i;
for (i=0;i<s->cards->len;i++)
g_object_unref(s->cards->pdata[i]);
@@ -115,7 +115,7 @@ eab_popup_get_type(void)
return type;
}
-EABPopup *eab_popup_new(const char *menuid)
+EABPopup *eab_popup_new(const gchar *menuid)
{
EABPopup *eabp = g_object_new(eab_popup_get_type(), NULL);
@@ -138,7 +138,7 @@ EABPopup *eab_popup_new(const char *menuid)
EABPopupTargetURI *
-eab_popup_target_new_uri(EABPopup *emp, const char *uri)
+eab_popup_target_new_uri(EABPopup *emp, const gchar *uri)
{
EABPopupTargetURI *t = e_popup_target_new(&emp->popup, EAB_POPUP_TARGET_URI, sizeof(*t));
guint32 mask = ~0;
@@ -162,11 +162,11 @@ eab_popup_target_new_uri(EABPopup *emp, const char *uri)
EABPopupTargetSelect *
-eab_popup_target_new_select(EABPopup *eabp, struct _EBook *book, int readonly, GPtrArray *cards)
+eab_popup_target_new_select(EABPopup *eabp, struct _EBook *book, gint readonly, GPtrArray *cards)
{
EABPopupTargetSelect *t = e_popup_target_new(&eabp->popup, EAB_POPUP_TARGET_SELECT, sizeof(*t));
guint32 mask = ~0;
- int has_email = FALSE, i;
+ gint has_email = FALSE, i;
/* FIXME: duplicated in eab-menu.c */
@@ -219,7 +219,7 @@ eab_popup_target_new_source(EABPopup *eabp, ESourceSelector *selector)
{
EABPopupTargetSource *t = e_popup_target_new(&eabp->popup, EAB_POPUP_TARGET_SOURCE, sizeof(*t));
guint32 mask = ~0;
- const char *source_uri;
+ const gchar *source_uri;
ESource *source;
/* TODO: this is duplicated for calendar and tasks too */
@@ -247,7 +247,7 @@ eab_popup_target_new_source(EABPopup *eabp, ESourceSelector *selector)
#ifdef ADAPTED_TO_E_NAME_SELECTOR
EABPopupTargetSelectNames *
-eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *model, int row)
+eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *model, gint row)
{
EABPopupTargetSelectNames *t = e_popup_target_new(&eabp->popup, EAB_POPUP_TARGET_SELECT_NAMES, sizeof(*t));
@@ -290,7 +290,7 @@ eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *mod
*/
-static void *eabph_parent_class;
+static gpointer eabph_parent_class;
#define eabph ((EABPopupHook *)eph)
static const EPopupHookTargetMask eabph_select_masks[] = {
@@ -338,7 +338,7 @@ eabph_finalise(GObject *o)
static void
eabph_class_init(EPluginHookClass *klass)
{
- int i;
+ gint i;
((GObjectClass *)klass)->finalize = eabph_finalise;
((EPluginHookClass *)klass)->id = "org.gnome.evolution.addressbook.popup:1.0";
diff --git a/addressbook/gui/widgets/eab-popup.h b/addressbook/gui/widgets/eab-popup.h
index 86deff7f9c..2be355cf25 100644
--- a/addressbook/gui/widgets/eab-popup.h
+++ b/addressbook/gui/widgets/eab-popup.h
@@ -114,7 +114,7 @@ struct _EABPopupTargetSelect {
struct _EABPopupTargetURI {
EPopupTarget target;
- char *uri;
+ gchar *uri;
};
/**
@@ -147,7 +147,7 @@ struct _EABPopupTargetSelectNames {
EPopupTarget target;
struct _ESelectNamesModel *model;
- int row;
+ gint row;
};
#endif
@@ -167,15 +167,15 @@ struct _EABPopupClass {
GType eab_popup_get_type(void);
-EABPopup *eab_popup_new(const char *menuid);
+EABPopup *eab_popup_new(const gchar *menuid);
-EABPopupTargetSelect *eab_popup_target_new_select(EABPopup *eabp, struct _EBook *book, int readonly, GPtrArray *cards);
-EABPopupTargetURI *eab_popup_target_new_uri(EABPopup *emp, const char *uri);
+EABPopupTargetSelect *eab_popup_target_new_select(EABPopup *eabp, struct _EBook *book, gint readonly, GPtrArray *cards);
+EABPopupTargetURI *eab_popup_target_new_uri(EABPopup *emp, const gchar *uri);
EABPopupTargetSource *eab_popup_target_new_source(EABPopup *eabp, struct _ESourceSelector *selector);
#ifdef ADAPTED_TO_E_NAME_SELECTOR
-EABPopupTargetSelectNames *eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *model, int row);
+EABPopupTargetSelectNames *eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *model, gint row);
#endif
diff --git a/addressbook/gui/widgets/gal-view-factory-minicard.c b/addressbook/gui/widgets/gal-view-factory-minicard.c
index 0240dddb60..2e9accaeac 100644
--- a/addressbook/gui/widgets/gal-view-factory-minicard.c
+++ b/addressbook/gui/widgets/gal-view-factory-minicard.c
@@ -31,7 +31,7 @@
G_DEFINE_TYPE (GalViewFactoryMinicard, gal_view_factory_minicard, GAL_VIEW_FACTORY_TYPE)
-static const char *
+static const gchar *
gal_view_factory_minicard_get_title (GalViewFactory *factory)
{
return _("Card View");
@@ -39,12 +39,12 @@ gal_view_factory_minicard_get_title (GalViewFactory *factory)
static GalView *
gal_view_factory_minicard_new_view (GalViewFactory *factory,
- const char *name)
+ const gchar *name)
{
return gal_view_minicard_new(name);
}
-static const char *
+static const gchar *
gal_view_factory_minicard_get_type_code (GalViewFactory *factory)
{
return "minicard";
diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c
index 0a2fac9262..ae9b916e54 100644
--- a/addressbook/gui/widgets/gal-view-minicard.c
+++ b/addressbook/gui/widgets/gal-view-minicard.c
@@ -40,34 +40,34 @@ static GalViewClass *gal_view_minicard_parent_class;
static void
gal_view_minicard_load (GalView *view,
- const char *filename)
+ const gchar *filename)
{
xmlDoc *doc;
doc = e_xml_parse_file (filename);
if (doc) {
xmlNode *root = xmlDocGetRootElement(doc);
- GAL_VIEW_MINICARD (view)->column_width = e_xml_get_double_prop_by_name_with_default (root, (const unsigned char *)"column_width", 150);
+ GAL_VIEW_MINICARD (view)->column_width = e_xml_get_double_prop_by_name_with_default (root, (const guchar *)"column_width", 150);
xmlFreeDoc(doc);
}
}
static void
gal_view_minicard_save (GalView *view,
- const char *filename)
+ const gchar *filename)
{
xmlDoc *doc;
xmlNode *root;
- doc = xmlNewDoc((const unsigned char *)"1.0");
- root = xmlNewNode (NULL, (const unsigned char *)"EMinicardViewState");
- e_xml_set_double_prop_by_name (root, (const unsigned char *)"column_width", GAL_VIEW_MINICARD (view)->column_width);
+ doc = xmlNewDoc((const guchar *)"1.0");
+ root = xmlNewNode (NULL, (const guchar *)"EMinicardViewState");
+ e_xml_set_double_prop_by_name (root, (const guchar *)"column_width", GAL_VIEW_MINICARD (view)->column_width);
xmlDocSetRootElement(doc, root);
e_xml_save_file (filename, doc);
xmlFreeDoc(doc);
}
-static const char *
+static const gchar *
gal_view_minicard_get_title (GalView *view)
{
return GAL_VIEW_MINICARD(view)->title;
@@ -75,13 +75,13 @@ gal_view_minicard_get_title (GalView *view)
static void
gal_view_minicard_set_title (GalView *view,
- const char *title)
+ const gchar *title)
{
g_free(GAL_VIEW_MINICARD(view)->title);
GAL_VIEW_MINICARD(view)->title = g_strdup(title);
}
-static const char *
+static const gchar *
gal_view_minicard_get_type_code (GalView *view)
{
return "minicard";
diff --git a/addressbook/gui/widgets/gal-view-minicard.h b/addressbook/gui/widgets/gal-view-minicard.h
index cf3faaec56..f5681fcca5 100644
--- a/addressbook/gui/widgets/gal-view-minicard.h
+++ b/addressbook/gui/widgets/gal-view-minicard.h
@@ -38,7 +38,7 @@
typedef struct {
GalView base;
- char *title;
+ gchar *title;
double column_width;
EMinicardViewWidget *emvw;
diff --git a/addressbook/importers/evolution-csv-importer.c b/addressbook/importers/evolution-csv-importer.c
index 164f9f5fe2..0456f81b19 100644
--- a/addressbook/importers/evolution-csv-importer.c
+++ b/addressbook/importers/evolution-csv-importer.c
@@ -53,7 +53,7 @@ typedef struct {
guint idle_id;
- int state;
+ gint state;
FILE *file;
gulong size;
gint count;
@@ -63,7 +63,7 @@ typedef struct {
} CSVImporter;
static gint importer;
-static char delimiter;
+static gchar delimiter;
static void csv_import_done(CSVImporter *gci);
@@ -85,7 +85,7 @@ typedef struct {
#define FLAG_BIRTH_MONTH 0x50
#define FLAG_DATE_ANNIVERSARY 0x30
#define FLAG_INVALID 0xff
- int flags;
+ gint flags;
}import_fields;
static import_fields csv_fields_outlook[] = {
@@ -263,7 +263,7 @@ static import_fields csv_fields_evolution[] = {
};
static void
-add_to_notes(EContact *contact, gint i, char *val) {
+add_to_notes(EContact *contact, gint i, gchar *val) {
const gchar *old_text;
const gchar *field_text = NULL;
GString *new_text;
@@ -296,12 +296,12 @@ add_to_notes(EContact *contact, gint i, char *val) {
/* @str: a date string in the format MM-DD-YYYY or MMDDYYYY */
static EContactDate*
-date_from_string (const char *str)
+date_from_string (const gchar *str)
{
EContactDate* date;
- int length;
- char *t;
- int i = 0;
+ gint length;
+ gchar *t;
+ gint i = 0;
g_return_val_if_fail (str != NULL, NULL);
@@ -335,13 +335,13 @@ date_from_string (const char *str)
}
static gboolean
-parseLine (CSVImporter *gci, EContact *contact, char *buf) {
+parseLine (CSVImporter *gci, EContact *contact, gchar *buf) {
- char *ptr = buf, *do_free = NULL;
+ gchar *ptr = buf, *do_free = NULL;
GString *value;
gint i = 0;
- int flags = 0;
- int contact_field;
+ gint flags = 0;
+ gint contact_field;
EContactAddress *home_address = NULL, *work_address = NULL, *other_address = NULL;
EContactDate *bday = NULL;
GString *home_street, *work_street, *other_street;
@@ -554,8 +554,8 @@ getNextCSVEntry(CSVImporter *gci, FILE *f) {
EContact *contact = NULL;
GString *line;
GString *str;
- char *buf;
- char c;
+ gchar *buf;
+ gchar c;
/*
if(!fgets(line, sizeof(line),f))
@@ -642,7 +642,7 @@ getNextCSVEntry(CSVImporter *gci, FILE *f) {
}
static gboolean
-csv_import_contacts(void *d) {
+csv_import_contacts(gpointer d) {
CSVImporter *gci = d;
EContact *contact = NULL;
@@ -711,8 +711,8 @@ static const gchar *supported_extensions[4] = {
static gboolean
csv_supported(EImport *ei, EImportTarget *target, EImportImporter *im)
{
- char *ext;
- int i;
+ gchar *ext;
+ gint i;
EImportTargetURI *s;
if (target->type != E_IMPORT_TARGET_URI)
diff --git a/addressbook/importers/evolution-ldif-importer.c b/addressbook/importers/evolution-ldif-importer.c
index 75f30a2359..544bb485fb 100644
--- a/addressbook/importers/evolution-ldif-importer.c
+++ b/addressbook/importers/evolution-ldif-importer.c
@@ -58,7 +58,7 @@ typedef struct {
GHashTable *dn_contact_hash;
- int state; /* 0 - initial scan, 1 - list cards, 2 - cancelled/complete */
+ gint state; /* 0 - initial scan, 1 - list cards, 2 - cancelled/complete */
FILE *file;
gulong size;
@@ -79,7 +79,7 @@ static struct {
#define FLAG_WORK_ADDRESS 0x02
#define FLAG_LIST 0x04
#define FLAG_BOOLEAN 0x08
- int flags;
+ gint flags;
}
ldif_fields[] = {
{ "cn", E_CONTACT_FULL_NAME },
@@ -128,13 +128,13 @@ ldif_fields[] = {
{ "nsAIMid", E_CONTACT_IM_AIM, FLAG_LIST },
{ "mozilla_AimScreenName", E_CONTACT_IM_AIM, FLAG_LIST }
};
-static int num_ldif_fields = sizeof(ldif_fields) / sizeof (ldif_fields[0]);
+static gint num_ldif_fields = sizeof(ldif_fields) / sizeof (ldif_fields[0]);
static GString *
-getValue( char **src )
+getValue( gchar **src )
{
GString *dest = g_string_new("");
- char *s = *src;
+ gchar *s = *src;
gboolean need_base64 = (*s == ':');
copy_line:
@@ -167,7 +167,7 @@ getValue( char **src )
}
static void
-populate_contact_address (EContactAddress *address, char *attr, char *value)
+populate_contact_address (EContactAddress *address, gchar *attr, gchar *value)
{
if (!g_ascii_strcasecmp (attr, "locality") ||
!g_ascii_strcasecmp (attr, "l") ||
@@ -188,7 +188,7 @@ populate_contact_address (EContactAddress *address, char *attr, char *value)
else if (!g_ascii_strcasecmp (attr, "mozillaPostalAddress2") ||
!g_ascii_strcasecmp (attr, "mozillaHomePostalAddress2")) {
if (address->ext && *address->ext) {
- char *temp = g_strdup (address->ext);
+ gchar *temp = g_strdup (address->ext);
g_free (address->ext);
address->ext = g_strconcat (temp, ",\n", value, NULL);
g_free (temp);
@@ -199,7 +199,7 @@ populate_contact_address (EContactAddress *address, char *attr, char *value)
}
else if (!g_ascii_strcasecmp (attr, "postalAddress") ||
!g_ascii_strcasecmp (attr, "homepostalAddress")) {
- char *c, *i, *addr_field;
+ gchar *c, *i, *addr_field;
addr_field = g_strdup (value);
i = addr_field;
@@ -210,7 +210,7 @@ populate_contact_address (EContactAddress *address, char *attr, char *value)
}
}
if (address->ext && *address->ext) {
- char *temp = g_strdup (address->ext);
+ gchar *temp = g_strdup (address->ext);
g_free (address->ext);
address->ext = g_strconcat (addr_field, ",\n", temp, NULL);
g_free (temp);
@@ -225,10 +225,10 @@ populate_contact_address (EContactAddress *address, char *attr, char *value)
static gboolean
parseLine (LDIFImporter *gci, EContact *contact,
EContactAddress *work_address, EContactAddress *home_address,
- char **buf)
+ gchar **buf)
{
- char *ptr;
- char *colon, *value;
+ gchar *ptr;
+ gchar *colon, *value;
gboolean field_handled;
GString *ldif_value;
@@ -256,9 +256,9 @@ parseLine (LDIFImporter *gci, EContact *contact,
return FALSE;
}
- colon = (char *)strchr( ptr, ':' );
+ colon = (gchar *)strchr( ptr, ':' );
if (colon) {
- int i;
+ gint i;
*colon = 0;
value = colon + 1;
@@ -345,8 +345,8 @@ getNextLDIFEntry(LDIFImporter *gci, FILE *f )
EContact *contact;
EContactAddress *work_address, *home_address;
GString *str;
- char line[1024];
- char *buf;
+ gchar line[1024];
+ gchar *buf;
str = g_string_new ("");
/* read from the file until we get to a blank line (or eof) */
@@ -402,7 +402,7 @@ resolve_list_card (LDIFImporter *gci, EContact *contact)
{
GList *email, *l;
GList *email_attrs = NULL;
- char *full_name;
+ gchar *full_name;
/* set file_as to full_name so we don't later try and figure
out a first/last name for the list. */
@@ -415,7 +415,7 @@ resolve_list_card (LDIFImporter *gci, EContact *contact)
email = e_contact_get (contact, E_CONTACT_EMAIL);
for (l = email; l; l = l->next) {
/* mozilla stuffs dn's in the EMAIL list for contact lists */
- char *dn = l->data;
+ gchar *dn = l->data;
EContact *dn_contact = g_hash_table_lookup (gci->dn_contact_hash, dn);
/* break list chains here, since we don't support them just yet */
@@ -467,12 +467,12 @@ add_to_notes (EContact *contact, EContactField field)
}
static gboolean
-ldif_import_contacts(void *d)
+ldif_import_contacts(gpointer d)
{
LDIFImporter *gci = d;
EContact *contact;
GSList *iter;
- int count = 0;
+ gint count = 0;
/* We process all normal cards immediately and keep the list
ones till the end */
@@ -563,8 +563,8 @@ static const gchar *supported_extensions[2] = {
static gboolean
ldif_supported(EImport *ei, EImportTarget *target, EImportImporter *im)
{
- char *ext;
- int i;
+ gchar *ext;
+ gint i;
EImportTargetURI *s;
if (target->type != E_IMPORT_TARGET_URI)
diff --git a/addressbook/importers/evolution-vcard-importer.c b/addressbook/importers/evolution-vcard-importer.c
index 1ec623d098..169c6413d1 100644
--- a/addressbook/importers/evolution-vcard-importer.c
+++ b/addressbook/importers/evolution-vcard-importer.c
@@ -51,9 +51,9 @@ typedef struct {
guint idle_id;
- int state; /* 0 - importing, 1 - cancelled/complete */
- int total;
- int count;
+ gint state; /* 0 - importing, 1 - cancelled/complete */
+ gint total;
+ gint count;
ESource *primary;
@@ -115,8 +115,8 @@ vcard_import_contact(VCardImporter *gci, EContact *contact)
GList *v = e_vcard_attribute_get_values (a);
if (v && v->data) {
- if (!strncmp ((char*)v->data, "<?xml", 5)) {
- EDestination *dest = e_destination_import ((char*)v->data);
+ if (!strncmp ((gchar *)v->data, "<?xml", 5)) {
+ EDestination *dest = e_destination_import ((gchar *)v->data);
e_destination_export_to_vcard_attribute (dest, a);
@@ -155,9 +155,9 @@ vcard_import_contact(VCardImporter *gci, EContact *contact)
vs = e_vcard_attribute_param_get_values (p);
for (v = vs; v; v = v->next) {
- if (!g_ascii_strcasecmp ((char*)v->data, "WORK") ||
- !g_ascii_strcasecmp ((char*)v->data, "HOME") ||
- !g_ascii_strcasecmp ((char*)v->data, "OTHER"))
+ if (!g_ascii_strcasecmp ((gchar *)v->data, "WORK") ||
+ !g_ascii_strcasecmp ((gchar *)v->data, "HOME") ||
+ !g_ascii_strcasecmp ((gchar *)v->data, "OTHER"))
no_location = FALSE;
else
location_only = FALSE;
@@ -204,8 +204,8 @@ vcard_import_contact(VCardImporter *gci, EContact *contact)
vs = e_vcard_attribute_param_get_values (p);
for (v = vs; v; v = v->next) {
- if (!g_ascii_strcasecmp ((char*)v->data, "WORK") ||
- !g_ascii_strcasecmp ((char*)v->data, "HOME"))
+ if (!g_ascii_strcasecmp ((gchar *)v->data, "WORK") ||
+ !g_ascii_strcasecmp ((gchar *)v->data, "HOME"))
no_location = FALSE;
}
}
@@ -228,10 +228,10 @@ vcard_import_contact(VCardImporter *gci, EContact *contact)
}
static gboolean
-vcard_import_contacts(void *data)
+vcard_import_contacts(gpointer data)
{
VCardImporter *gci = data;
- int count = 0;
+ gint count = 0;
GList *iterator = gci->iterator;
if (gci->state == 0) {
@@ -319,11 +319,11 @@ typedef enum _VCardEncoding VCardEncoding;
/* Actually check the contents of this file */
static VCardEncoding
-guess_vcard_encoding (const char *filename)
+guess_vcard_encoding (const gchar *filename)
{
FILE *handle;
- char line[4096];
- char *line_utf8;
+ gchar line[4096];
+ gchar *line_utf8;
VCardEncoding encoding = VCARD_ENCODING_NONE;
handle = g_fopen (filename, "r");
@@ -455,7 +455,7 @@ static void
vcard_import(EImport *ei, EImportTarget *target, EImportImporter *im)
{
VCardImporter *gci;
- char *contents;
+ gchar *contents;
VCardEncoding encoding;
EBook *book;
EImportTargetURI *s = (EImportTargetURI *)target;
diff --git a/addressbook/printing/e-contact-print.c b/addressbook/printing/e-contact-print.c
index cc3affeb2c..e57e5d175e 100644
--- a/addressbook/printing/e-contact-print.c
+++ b/addressbook/printing/e-contact-print.c
@@ -225,9 +225,9 @@ e_contact_start_new_page (EContactPrintContext *ctxt)
static void
e_contact_print_contact (EContact *contact, EContactPrintContext *ctxt)
{
- char *file_as;
+ gchar *file_as;
cairo_t *cr;
- int field;
+ gint field;
cr = gtk_print_context_get_cairo_context (ctxt->context);
cairo_save(cr);
@@ -444,70 +444,70 @@ e_contact_build_style (EContactPrintStyle *style)
xmlNodePtr stylenode = xmlDocGetRootElement(styledoc);
xmlNodePtr node;
for (node = stylenode->children; node; node = node->next) {
- char *data = (char *)xmlNodeGetContent ( node );
- if ( !strcmp( (char *)node->name, "title" ) ) {
+ gchar *data = (gchar *)xmlNodeGetContent ( node );
+ if ( !strcmp( (gchar *)node->name, "title" ) ) {
get_string(data, &(style->title));
- } else if ( !strcmp( (char *)node->name, "type" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "type" ) ) {
if (g_ascii_strcasecmp (data, "cards") == 0)
style->type = E_CONTACT_PRINT_TYPE_CARDS;
else if (g_ascii_strcasecmp (data, "memo_style") == 0)
style->type = E_CONTACT_PRINT_TYPE_MEMO_STYLE;
else if (g_ascii_strcasecmp (data, "phone_list") == 0)
style->type = E_CONTACT_PRINT_TYPE_PHONE_LIST;
- } else if ( !strcmp( (char *)node->name, "sections_start_new_page" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "sections_start_new_page" ) ) {
style->sections_start_new_page = get_bool(data);
- } else if ( !strcmp( (char *)node->name, "num_columns" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "num_columns" ) ) {
style->num_columns = get_integer(data);
- } else if ( !strcmp( (char *)node->name, "blank_forms" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "blank_forms" ) ) {
style->blank_forms = get_integer(data);
- } else if ( !strcmp( (char *)node->name, "letter_headings" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "letter_headings" ) ) {
style->letter_headings = get_bool(data);
- } else if ( !strcmp( (char *)node->name, "headings_font" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "headings_font" ) ) {
get_font( data, &(style->headings_font) );
- } else if ( !strcmp( (char *)node->name, "body_font" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "body_font" ) ) {
get_font( data, &(style->body_font) );
- } else if ( !strcmp( (char *)node->name, "print_using_grey" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "print_using_grey" ) ) {
style->print_using_grey = get_bool(data);
- } else if ( !strcmp( (char *)node->name, "paper_width" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "paper_width" ) ) {
style->paper_width = get_float(data);
- } else if ( !strcmp( (char *)node->name, "paper_height" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "paper_height" ) ) {
style->paper_height = get_float(data);
- } else if ( !strcmp( (char *)node->name, "top_margin" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "top_margin" ) ) {
style->top_margin = get_float(data);
- } else if ( !strcmp( (char *)node->name, "left_margin" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "left_margin" ) ) {
style->left_margin = get_float(data);
- } else if ( !strcmp( (char *)node->name, "bottom_margin" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "bottom_margin" ) ) {
style->bottom_margin = get_float(data);
- } else if ( !strcmp( (char *)node->name, "right_margin" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "right_margin" ) ) {
style->right_margin = get_float(data);
- } else if ( !strcmp( (char *)node->name, "page_width" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "page_width" ) ) {
style->page_width = get_float(data);
- } else if ( !strcmp( (char *)node->name, "page_height" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "page_height" ) ) {
style->page_height = get_float(data);
- } else if ( !strcmp( (char *)node->name, "orientation" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "orientation" ) ) {
if ( data ) {
style->orientation_portrait =
(g_ascii_strcasecmp (data, "landscape") != 0);
} else {
style->orientation_portrait = TRUE;
}
- } else if ( !strcmp( (char *)node->name, "header_font" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "header_font" ) ) {
get_font( data, &(style->header_font) );
- } else if ( !strcmp( (char *)node->name, "left_header" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "left_header" ) ) {
get_string(data, &(style->left_header));
- } else if ( !strcmp( (char *)node->name, "center_header" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "center_header" ) ) {
get_string(data, &(style->center_header));
- } else if ( !strcmp( (char *)node->name, "right_header" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "right_header" ) ) {
get_string(data, &(style->right_header));
- } else if ( !strcmp( (char *)node->name, "footer_font" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "footer_font" ) ) {
get_font( data, &(style->footer_font) );
- } else if ( !strcmp( (char *)node->name, "left_footer" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "left_footer" ) ) {
get_string(data, &(style->left_footer));
- } else if ( !strcmp( (char *)node->name, "center_footer" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "center_footer" ) ) {
get_string(data, &(style->center_footer));
- } else if ( !strcmp( (char *)node->name, "right_footer" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "right_footer" ) ) {
get_string(data, &(style->right_footer));
- } else if ( !strcmp( (char *)node->name, "reverse_on_even_pages" ) ) {
+ } else if ( !strcmp( (gchar *)node->name, "reverse_on_even_pages" ) ) {
style->reverse_on_even_pages = get_bool(data);
}
if ( data )
diff --git a/addressbook/printing/test-print.c b/addressbook/printing/test-print.c
index c38d2129a0..58ff940f03 100644
--- a/addressbook/printing/test-print.c
+++ b/addressbook/printing/test-print.c
@@ -27,8 +27,8 @@
#include <glade/glade.h>
#include "e-contact-print.h"
-int
-main (int argc, char *argv[])
+gint
+main (gint argc, gchar *argv[])
{
GList *shown_fields = NULL;
diff --git a/addressbook/tools/evolution-addressbook-export-list-cards.c b/addressbook/tools/evolution-addressbook-export-list-cards.c
index 72fa8a07e3..2b418345ae 100644
--- a/addressbook/tools/evolution-addressbook-export-list-cards.c
+++ b/addressbook/tools/evolution-addressbook-export-list-cards.c
@@ -242,7 +242,7 @@ gchar *e_contact_get_csv (EContact * contact, GSList * csv_all_fields);
gchar *delivery_address_get_sub_field (const EContactAddress * delivery_address, DeliveryAddressField sub_field);
gchar *check_null_pointer (gchar * orig);
gchar *escape_string (gchar * orig);
-int output_n_cards_file (FILE * outputfile, GList *contacts, int size, int begin_no, CARD_FORMAT format);
+gint output_n_cards_file (FILE * outputfile, GList *contacts, gint size, gint begin_no, CARD_FORMAT format);
static void fork_to_background (void);
void set_pre_defined_field (GSList ** pre_defined_fields);
@@ -566,10 +566,10 @@ escape_string (gchar *orig)
return dest;
}
-int
-output_n_cards_file (FILE * outputfile, GList *contacts, int size, int begin_no, CARD_FORMAT format)
+gint
+output_n_cards_file (FILE * outputfile, GList *contacts, gint size, gint begin_no, CARD_FORMAT format)
{
- int i;
+ gint i;
if (format == CARD_FORMAT_VCARD) {
for (i = begin_no; i < size + begin_no; i++) {
EContact *contact = g_list_nth_data (contacts, i);
@@ -628,11 +628,11 @@ action_list_cards (GList *contacts, ActionContext * p_actctx)
{
FILE *outputfile;
long length;
- int IsFirstOne;
- int series_no;
+ gint IsFirstOne;
+ gint series_no;
gchar *file_series_name;
CARD_FORMAT format;
- int size;
+ gint size;
length = g_list_length (contacts);
diff --git a/addressbook/tools/evolution-addressbook-export-list-folders.c b/addressbook/tools/evolution-addressbook-export-list-folders.c
index e93748861d..1f18686242 100644
--- a/addressbook/tools/evolution-addressbook-export-list-folders.c
+++ b/addressbook/tools/evolution-addressbook-export-list-folders.c
@@ -61,8 +61,8 @@ action_list_folders_init (ActionContext * p_actctx)
EBook *book;
EBookQuery *query;
GList *contacts;
- char *uri;
- const char *name;
+ gchar *uri;
+ const gchar *name;
book = e_book_new (s, NULL);
if (!book
diff --git a/addressbook/tools/evolution-addressbook-export.c b/addressbook/tools/evolution-addressbook-export.c
index 1a7f86142b..c8ae956081 100644
--- a/addressbook/tools/evolution-addressbook-export.c
+++ b/addressbook/tools/evolution-addressbook-export.c
@@ -64,16 +64,16 @@ static GOptionEntry entries[] = {
{ NULL }
};
-int
-main (int argc, char **argv)
+gint
+main (gint argc, gchar **argv)
{
ActionContext actctx;
GOptionContext *context;
GError *error = NULL;
- int current_action = ACTION_NOTHING;
- int IsCSV = FALSE;
- int IsVCard = FALSE;
+ gint current_action = ACTION_NOTHING;
+ gint IsCSV = FALSE;
+ gint IsVCard = FALSE;
/*i18n-lize */
bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);
@@ -162,7 +162,7 @@ main (int argc, char **argv)
exit (-1);
}
- /*FIXME:should free actctx's some char* field, such as output_file! but since the program will end, so that will not cause mem leak. */
+ /*FIXME:should free actctx's some gchar * field, such as output_file! but since the program will end, so that will not cause mem leak. */
exit (0);
}
diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c
index 8d08a3e88f..ec8fccb5ba 100644
--- a/addressbook/util/eab-book-util.c
+++ b/addressbook/util/eab-book-util.c
@@ -46,11 +46,11 @@ eab_get_config_database (void)
*
*/
-static char*
-escape (const char *str)
+static gchar *
+escape (const gchar *str)
{
GString *s = g_string_new (NULL);
- const char *p = str;
+ const gchar *p = str;
while (*p) {
if (*p == '\\')
@@ -76,7 +76,7 @@ eab_name_and_email_query (EBook *book,
gchar *email_query=NULL, *name_query=NULL;
EBookQuery *query;
guint tag;
- char *escaped_name, *escaped_email;
+ gchar *escaped_name, *escaped_email;
g_return_val_if_fail (book && E_IS_BOOK (book), 0);
g_return_val_if_fail (cb != NULL, 0);
@@ -118,7 +118,7 @@ eab_name_and_email_query (EBook *book,
/* Assemble our e-mail & name queries */
if (email_query && name_query) {
- char *full_query = g_strdup_printf ("(and %s %s)", email_query, name_query);
+ gchar *full_query = g_strdup_printf ("(and %s %s)", email_query, name_query);
query = e_book_query_from_string (full_query);
g_free (full_query);
}
@@ -147,12 +147,12 @@ eab_name_and_email_query (EBook *book,
*/
guint
eab_nickname_query (EBook *book,
- const char *nickname,
+ const gchar *nickname,
EBookListCallback cb,
gpointer closure)
{
EBookQuery *query;
- char *query_string;
+ gchar *query_string;
guint retval;
g_return_val_if_fail (E_IS_BOOK (book), 0);
@@ -175,11 +175,11 @@ eab_nickname_query (EBook *book,
}
/* Copied from camel_strstrcase */
-static char *
-eab_strstrcase (const char *haystack, const char *needle)
+static gchar *
+eab_strstrcase (const gchar *haystack, const gchar *needle)
{
/* find the needle in the haystack neglecting case */
- const char *ptr;
+ const gchar *ptr;
guint len;
g_return_val_if_fail (haystack != NULL, NULL);
@@ -190,24 +190,24 @@ eab_strstrcase (const char *haystack, const char *needle)
return NULL;
if (len == 0)
- return (char *) haystack;
+ return (gchar *) haystack;
for (ptr = haystack; *(ptr + len - 1) != '\0'; ptr++)
if (!g_ascii_strncasecmp (ptr, needle, len))
- return (char *) ptr;
+ return (gchar *) ptr;
return NULL;
}
GList*
-eab_contact_list_from_string (const char *str)
+eab_contact_list_from_string (const gchar *str)
{
GList *contacts = NULL;
GString *gstr = g_string_new (NULL);
- char *str_stripped;
- char *p = (char*)str;
- char *q;
+ gchar *str_stripped;
+ gchar *p = (gchar *)str;
+ gchar *q;
if (!p)
return NULL;
@@ -270,7 +270,7 @@ eab_contact_list_from_string (const char *str)
return contacts;
}
-char*
+gchar *
eab_contact_list_to_string (GList *contacts)
{
GString *str = g_string_new ("");
@@ -278,7 +278,7 @@ eab_contact_list_to_string (GList *contacts)
for (l = contacts; l; l = l->next) {
EContact *contact = l->data;
- char *vcard_str = e_vcard_to_string (E_VCARD (contact), EVC_FORMAT_VCARD_30);
+ gchar *vcard_str = e_vcard_to_string (E_VCARD (contact), EVC_FORMAT_VCARD_30);
g_string_append (str, vcard_str);
if (l->next)
@@ -289,10 +289,10 @@ eab_contact_list_to_string (GList *contacts)
}
gboolean
-eab_book_and_contact_list_from_string (const char *str, EBook **book, GList **contacts)
+eab_book_and_contact_list_from_string (const gchar *str, EBook **book, GList **contacts)
{
- const char *s0, *s1;
- char *uri;
+ const gchar *s0, *s1;
+ gchar *uri;
g_return_val_if_fail (str != NULL, FALSE);
g_return_val_if_fail (book != NULL, FALSE);
@@ -323,10 +323,10 @@ eab_book_and_contact_list_from_string (const char *str, EBook **book, GList **co
return *book ? TRUE : FALSE;
}
-char *
+gchar *
eab_book_and_contact_list_to_string (EBook *book, GList *contacts)
{
- char *s0, *s1;
+ gchar *s0, *s1;
s0 = eab_contact_list_to_string (contacts);
if (!s0)
@@ -406,12 +406,12 @@ eab_query_address_default (const gchar *email,
#endif
/* bad place for this i know. */
-int
-e_utf8_casefold_collate_len (const gchar *str1, const gchar *str2, int len)
+gint
+e_utf8_casefold_collate_len (const gchar *str1, const gchar *str2, gint len)
{
gchar *s1 = g_utf8_casefold(str1, len);
gchar *s2 = g_utf8_casefold(str2, len);
- int rv;
+ gint rv;
rv = g_utf8_collate (s1, s2);
@@ -421,7 +421,7 @@ e_utf8_casefold_collate_len (const gchar *str1, const gchar *str2, int len)
return rv;
}
-int
+gint
e_utf8_casefold_collate (const gchar *str1, const gchar *str2)
{
return e_utf8_casefold_collate_len (str1, str2, -1);
diff --git a/addressbook/util/eab-book-util.h b/addressbook/util/eab-book-util.h
index 0cded9c662..8a9df33e40 100644
--- a/addressbook/util/eab-book-util.h
+++ b/addressbook/util/eab-book-util.h
@@ -38,20 +38,20 @@ EConfigListener *eab_get_config_database (void);
/* Specialized Name/Email Queries */
guint eab_name_and_email_query (EBook *book,
- const char *name,
- const char *email,
+ const gchar *name,
+ const gchar *email,
EBookListCallback cb,
gpointer closure);
guint eab_nickname_query (EBook *book,
- const char *nickname,
+ const gchar *nickname,
EBookListCallback cb,
gpointer closure);
-GList *eab_contact_list_from_string (const char *str);
-char *eab_contact_list_to_string (GList *contacts);
+GList *eab_contact_list_from_string (const gchar *str);
+gchar *eab_contact_list_to_string (GList *contacts);
-gboolean eab_book_and_contact_list_from_string (const char *str, EBook **book, GList **contacts);
-char *eab_book_and_contact_list_to_string (EBook *book, GList *contacts);
+gboolean eab_book_and_contact_list_from_string (const gchar *str, EBook **book, GList **contacts);
+gchar *eab_book_and_contact_list_to_string (EBook *book, GList *contacts);
/* Returns the EContact associated to email in the callback,
or NULL if no match is found in the default address book. */
@@ -59,8 +59,8 @@ void eab_query_address_default (const gchar *
EABHaveAddressCallback cb,
gpointer closure);
-int e_utf8_casefold_collate_len (const gchar *str1, const gchar *str2, int len);
-int e_utf8_casefold_collate (const gchar *str1, const gchar *str2);
+gint e_utf8_casefold_collate_len (const gchar *str1, const gchar *str2, gint len);
+gint e_utf8_casefold_collate (const gchar *str1, const gchar *str2);
G_END_DECLS
diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c
index a33177874f..a9e2b95ea0 100644
--- a/calendar/common/authentication.c
+++ b/calendar/common/authentication.c
@@ -34,11 +34,11 @@
static GHashTable *source_lists_hash = NULL;
-static char *
-auth_func_cb (ECal *ecal, const char *prompt, const char *key, gpointer user_data)
+static gchar *
+auth_func_cb (ECal *ecal, const gchar *prompt, const gchar *key, gpointer user_data)
{
gboolean remember;
- char *password, *auth_domain;
+ gchar *password, *auth_domain;
ESource *source;
const gchar *component_name;
@@ -56,11 +56,11 @@ auth_func_cb (ECal *ecal, const char *prompt, const char *key, gpointer user_dat
return password;
}
-static char *
+static gchar *
build_pass_key (ECal *ecal)
{
- char *euri_str;
- const char *uri;
+ gchar *euri_str;
+ const gchar *uri;
EUri *euri;
uri = e_cal_get_uri (ecal);
@@ -76,7 +76,7 @@ void
auth_cal_forget_password (ECal *ecal)
{
ESource *source = NULL;
- const char *auth_domain = NULL, *component_name = NULL, *auth_type = NULL;
+ const gchar *auth_domain = NULL, *component_name = NULL, *auth_type = NULL;
source = e_cal_get_source (ecal);
auth_domain = e_source_get_property (source, "auth-domain");
@@ -84,7 +84,7 @@ auth_cal_forget_password (ECal *ecal)
auth_type = e_source_get_property (source, "auth-type");
if (auth_type) {
- char *key = NULL;
+ gchar *key = NULL;
key = build_pass_key (ecal);
e_passwords_forget_password (component_name, key);
@@ -119,7 +119,7 @@ auth_new_cal_from_source (ESource *source, ECalSourceType type)
}
ECal *
-auth_new_cal_from_uri (const char *uri, ECalSourceType type)
+auth_new_cal_from_uri (const gchar *uri, ECalSourceType type)
{
ESourceGroup *group = NULL;
ESource *source = NULL;
@@ -144,7 +144,7 @@ auth_new_cal_from_uri (const char *uri, ECalSourceType type)
GSList *sl;
for (sl = e_source_group_peek_sources (gl->data); sl != NULL; sl = sl->next) {
- char *source_uri;
+ gchar *source_uri;
source_uri = e_source_get_uri (sl->data);
if (source_uri) {
diff --git a/calendar/common/authentication.h b/calendar/common/authentication.h
index 696a36d2ff..7d9d7f5fa7 100644
--- a/calendar/common/authentication.h
+++ b/calendar/common/authentication.h
@@ -29,7 +29,7 @@
ECal *auth_new_cal_from_default (ECalSourceType type);
ECal *auth_new_cal_from_source (ESource *source, ECalSourceType type);
-ECal *auth_new_cal_from_uri (const char *uri, ECalSourceType type);
+ECal *auth_new_cal_from_uri (const gchar *uri, ECalSourceType type);
void auth_cal_forget_password (ECal *ecal);
#endif
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index 5aef1aeb53..3654f5bed1 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -151,9 +151,9 @@ calconduit_load_configuration (guint32 pilot_id)
c->secret = e_pilot_setup_get_bool (prefix, "secret", FALSE);
c->multi_day_split = e_pilot_setup_get_bool (prefix, "multi_day_split", TRUE);
if ((c->last_uri = e_pilot_setup_get_string (prefix, "last_uri", NULL)) && !strncmp (c->last_uri, "file://", 7)) {
- char *filename = g_filename_from_uri (c->last_uri, NULL, NULL);
- const char *path = filename;
- const char *home;
+ gchar *filename = g_filename_from_uri (c->last_uri, NULL, NULL);
+ const gchar *path = filename;
+ const gchar *home;
home = g_get_home_dir ();
@@ -379,10 +379,10 @@ e_calendar_context_destroy (ECalConduitContext *ctxt)
}
/* Debug routines */
-static char *
+static gchar *
print_local (ECalLocalRecord *local)
{
- static char buff[ 4096 ];
+ static gchar buff[ 4096 ];
if (local == NULL) {
sprintf (buff, "[NULL]");
@@ -403,9 +403,9 @@ print_local (ECalLocalRecord *local)
return "";
}
-static char *print_remote (GnomePilotRecord *remote)
+static gchar *print_remote (GnomePilotRecord *remote)
{
- static char buff[ 4096 ];
+ static gchar buff[ 4096 ];
struct Appointment appt;
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
@@ -446,10 +446,10 @@ static char *print_remote (GnomePilotRecord *remote)
return buff;
}
-static char *
-auth_func_cb (ECal *ecal, const char* prompt, const char *key, gpointer user_data)
+static gchar *
+auth_func_cb (ECal *ecal, const gchar * prompt, const gchar *key, gpointer user_data)
{
- char *password;
+ gchar *password;
ESource *source;
const gchar *auth_domain, *component_name;
@@ -464,9 +464,9 @@ auth_func_cb (ECal *ecal, const char* prompt, const char *key, gpointer user_dat
static int
start_calendar_server (ECalConduitContext *ctxt)
{
- char *str_uri = NULL;
- char *pass_key = NULL;
- int retval = 0;
+ gchar *str_uri = NULL;
+ gchar *pass_key = NULL;
+ gint retval = 0;
g_return_val_if_fail (ctxt != NULL, -2);
@@ -505,7 +505,7 @@ start_calendar_server (ECalConduitContext *ctxt)
/* Utility routines */
static icaltimezone *
-get_timezone (ECal *client, const char *tzid)
+get_timezone (ECal *client, const gchar *tzid)
{
icaltimezone *timezone = NULL;
@@ -521,7 +521,7 @@ get_default_timezone (void)
{
EConfigListener *listener;
icaltimezone *timezone = NULL;
- char *location;
+ gchar *location;
listener = e_config_listener_new ();
@@ -541,10 +541,10 @@ get_default_timezone (void)
}
-static char *
+static gchar *
map_name (ECalConduitContext *ctxt)
{
- char *filename;
+ gchar *filename;
filename = g_strdup_printf ("%s/.evolution/calendar/local/system/pilot-map-calendar-%d.xml",
g_get_home_dir (), ctxt->cfg->pilot_id);
@@ -553,7 +553,7 @@ map_name (ECalConduitContext *ctxt)
}
static icalrecurrencetype_weekday
-get_ical_day (int day)
+get_ical_day (gint day)
{
switch (day) {
case 0:
@@ -634,7 +634,7 @@ process_multi_day (ECalConduitContext *ctxt, ECalChange *ccc, GList **multi_comp
icaltimezone *tz_start, *tz_end;
time_t event_start, event_end, day_end;
struct icaltimetype *old_start_value, *old_end_value;
- const char *uid;
+ const gchar *uid;
gboolean is_date = FALSE;
gboolean last = FALSE;
gboolean ret = TRUE;
@@ -677,7 +677,7 @@ process_multi_day (ECalConduitContext *ctxt, ECalChange *ccc, GList **multi_comp
while (!last) {
ECalComponent *clone = e_cal_component_clone (ccc->comp);
icalcomponent *ical_comp = NULL;
- char *new_uid = e_cal_component_gen_uid ();
+ gchar *new_uid = e_cal_component_gen_uid ();
struct icaltimetype start_value, end_value;
ECalChange *c = NULL;
@@ -743,7 +743,7 @@ process_multi_day (ECalConduitContext *ctxt, ECalChange *ccc, GList **multi_comp
}
static short
-nth_weekday (int pos, icalrecurrencetype_weekday weekday)
+nth_weekday (gint pos, icalrecurrencetype_weekday weekday)
{
g_assert ((pos > 0 && pos <= 5) || (pos == -1));
@@ -757,7 +757,7 @@ next_changed_item (ECalConduitContext *ctxt, GList *changes)
GList *l;
for (l = changes; l != NULL; l = l->next) {
- const char *uid;
+ const gchar *uid;
ccc = l->data;
@@ -770,7 +770,7 @@ next_changed_item (ECalConduitContext *ctxt, GList *changes)
}
static void
-compute_status (ECalConduitContext *ctxt, ECalLocalRecord *local, const char *uid)
+compute_status (ECalConduitContext *ctxt, ECalLocalRecord *local, const gchar *uid)
{
ECalChange *ccc;
@@ -834,7 +834,7 @@ local_record_to_pilot_record (ECalLocalRecord *local,
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
#else
- static char record[0xffff];
+ static gchar record[0xffff];
#endif
memset(&p, 0, sizeof (p));
@@ -865,7 +865,7 @@ local_record_to_pilot_record (ECalLocalRecord *local,
pi_buffer_free(buffer);
#else
- p.record = (unsigned char *)record;
+ p.record = (guchar *)record;
p.length = pack_Appointment (local->appt, p.record, 0xffff);
#endif
return p;
@@ -877,14 +877,14 @@ local_record_to_pilot_record (ECalLocalRecord *local,
static void
local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
ECalComponentText summary;
GSList *d_list = NULL, *edl = NULL, *l;
ECalComponentText *description;
ECalComponentDateTime dt_start, dt_end;
ECalComponentClassification classif;
icaltimezone *default_tz = ctxt->timezone;
- int i;
+ gint i;
g_return_if_fail (local != NULL);
g_return_if_fail (comp != NULL);
@@ -902,7 +902,7 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit
* we don't overwrite them
*/
if (local->local.ID != 0) {
- int cat = 0;
+ gint cat = 0;
#ifdef PILOT_LINK_0_12
struct Appointment appt;
pi_buffer_t * record;
@@ -914,7 +914,7 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit
}
#else
struct Appointment appt;
- char record[0xffff];
+ gchar record[0xffff];
#endif
if (dlp_ReadRecordById (ctxt->dbi->pilot_socket,
ctxt->dbi->db_handle,
@@ -930,7 +930,7 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit
#ifdef PILOT_LINK_0_12
unpack_Appointment (&appt, record, datebook_v1);
#else
- unpack_Appointment (&appt, (unsigned char *)record, 0xffff);
+ unpack_Appointment (&appt, (guchar *)record, 0xffff);
#endif
local->appt->alarm = appt.alarm;
local->appt->advance = appt.advance;
@@ -1152,7 +1152,7 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit
static void
local_record_from_uid (ECalLocalRecord *local,
- const char *uid,
+ const gchar *uid,
ECalConduitContext *ctxt)
{
ECalComponent *comp;
@@ -1199,8 +1199,8 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
ECalComponentText summary = {NULL, NULL};
ECalComponentDateTime dt = {NULL, NULL};
GSList *edl = NULL;
- char *txt;
- int pos, i;
+ gchar *txt;
+ gint pos, i;
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
#endif
@@ -1456,8 +1456,8 @@ static void
check_for_slow_setting (GnomePilotConduit *c, ECalConduitContext *ctxt)
{
GnomePilotConduitStandard *conduit = GNOME_PILOT_CONDUIT_STANDARD (c);
- int map_count;
- const char *uri;
+ gint map_count;
+ const gchar *uri;
/* If there are objects but no log */
map_count = g_hash_table_size (ctxt->map->pid_map);
@@ -1488,9 +1488,9 @@ pre_sync (GnomePilotConduit *conduit,
{
GnomePilotConduitSyncAbs *abs_conduit;
GList *removed = NULL, *added = NULL, *l;
- int len;
- unsigned char *buf;
- char *filename, *change_id;
+ gint len;
+ guchar *buf;
+ gchar *filename, *change_id;
icalcomponent *icalcomp;
gint num_records, add_records = 0, mod_records = 0, del_records = 0;
#ifdef PILOT_LINK_0_12
@@ -1560,7 +1560,7 @@ pre_sync (GnomePilotConduit *conduit,
ctxt->changed = g_list_concat (ctxt->changed, added);
for (l = removed; l != NULL; l = l->next) {
ECalChange *ccc = l->data;
- const char *uid;
+ const gchar *uid;
e_cal_component_get_uid (ccc->comp, &uid);
if (e_pilot_map_lookup_pid (ctxt->map, uid, FALSE) == 0) {
@@ -1573,7 +1573,7 @@ pre_sync (GnomePilotConduit *conduit,
for (l = ctxt->changed; l != NULL; l = l->next) {
ECalChange *ccc = l->data;
- const char *uid;
+ const gchar *uid;
e_cal_component_get_uid (ccc->comp, &uid);
if (!e_pilot_map_uid_is_archived (ctxt->map, uid)) {
@@ -1614,9 +1614,9 @@ pre_sync (GnomePilotConduit *conduit,
DLP_BUF_SIZE,
buffer);
#else
- buf = (unsigned char*)g_malloc (0xffff);
+ buf = (guchar *)g_malloc (0xffff);
len = dlp_ReadAppBlock (dbi->pilot_socket, dbi->db_handle, 0,
- (unsigned char *)buf, 0xffff);
+ (guchar *)buf, 0xffff);
#endif
if (len < 0) {
WARN (_("Could not read pilot's Calendar application block"));
@@ -1649,18 +1649,18 @@ post_sync (GnomePilotConduit *conduit,
{
GList *changed;
gchar *filename, *change_id;
- unsigned char *buf;
- int dlpRetVal, len;
+ guchar *buf;
+ gint dlpRetVal, len;
LOG (g_message ( "post_sync: Calendar Conduit v.%s", CONDUIT_VERSION ));
/* Write AppBlock to PDA - updates categories */
- buf = (unsigned char*)g_malloc (0xffff);
+ buf = (guchar *)g_malloc (0xffff);
len = pack_AppointmentAppInfo (&(ctxt->ai), buf, 0xffff);
dlpRetVal = dlp_WriteAppBlock (dbi->pilot_socket, dbi->db_handle,
- (unsigned char *)buf, len);
+ (guchar *)buf, len);
g_free (buf);
@@ -1699,7 +1699,7 @@ set_pilot_id (GnomePilotConduitSyncAbs *conduit,
guint32 ID,
ECalConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ( "set_pilot_id: setting to %d\n", ID ));
@@ -1714,7 +1714,7 @@ set_status_cleared (GnomePilotConduitSyncAbs *conduit,
ECalLocalRecord *local,
ECalConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ( "set_status_cleared: clearing status\n" ));
@@ -1730,7 +1730,7 @@ for_each (GnomePilotConduitSyncAbs *conduit,
ECalConduitContext *ctxt)
{
static GList *comps, *iterator;
- static int count;
+ static gint count;
GList *unused;
g_return_val_if_fail (local != NULL, -1);
@@ -1789,7 +1789,7 @@ for_each_modified (GnomePilotConduitSyncAbs *conduit,
ECalConduitContext *ctxt)
{
static GList *iterator;
- static int count;
+ static gint count;
GList *unused;
g_return_val_if_fail (local != NULL, -1);
@@ -1851,7 +1851,7 @@ compare (GnomePilotConduitSyncAbs *conduit,
{
/* used by the quick compare */
GnomePilotRecord local_pilot;
- int retval = 0;
+ gint retval = 0;
LOG (g_message ("compare: local=%s remote=%s...\n",
print_local (local), print_remote (remote)));
@@ -1879,8 +1879,8 @@ add_record (GnomePilotConduitSyncAbs *conduit,
ECalConduitContext *ctxt)
{
ECalComponent *comp;
- char *uid;
- int retval = 0;
+ gchar *uid;
+ gint retval = 0;
g_return_val_if_fail (remote != NULL, -1);
@@ -1911,7 +1911,7 @@ replace_record (GnomePilotConduitSyncAbs *conduit,
ECalConduitContext *ctxt)
{
ECalComponent *new_comp;
- int retval = 0;
+ gint retval = 0;
g_return_val_if_fail (remote != NULL, -1);
@@ -1934,7 +1934,7 @@ delete_record (GnomePilotConduitSyncAbs *conduit,
ECalLocalRecord *local,
ECalConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
g_return_val_if_fail (local != NULL, -1);
g_assert (local->comp != NULL);
@@ -1959,8 +1959,8 @@ archive_record (GnomePilotConduitSyncAbs *conduit,
gboolean archive,
ECalConduitContext *ctxt)
{
- const char *uid;
- int retval = 0;
+ const gchar *uid;
+ gint retval = 0;
g_return_val_if_fail (local != NULL, -1);
@@ -1978,7 +1978,7 @@ match (GnomePilotConduitSyncAbs *conduit,
ECalLocalRecord **local,
ECalConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ("match: looking for local copy of %s\n",
print_remote (remote)));
diff --git a/calendar/conduits/common/libecalendar-common-conduit.c b/calendar/conduits/common/libecalendar-common-conduit.c
index cdb4a10d2d..1be106929d 100644
--- a/calendar/conduits/common/libecalendar-common-conduit.c
+++ b/calendar/conduits/common/libecalendar-common-conduit.c
@@ -58,11 +58,11 @@
* in UTF-8 format. A conversion must take place before calling
* this function (see e_pilot_utf8_to_pchar() in e-pilot-util.c)
*/
-int
-e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *category)
+gint
+e_pilot_add_category_if_possible(gchar *cat_to_add, struct CategoryAppInfo *category)
{
- int i, j;
- int retval = 0; /* 0 is the Unfiled category */
+ gint i, j;
+ gint retval = 0; /* 0 is the Unfiled category */
LOG(g_message("e_pilot_add_category_if_possible\n"));
for(i=0; i<PILOT_MAX_CATEGORIES; i++){
@@ -70,8 +70,8 @@ e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *categ
the PalmOS doesn't let 0-length strings for
categories */
if(strlen(category->name[i]) == 0){
- int cat_to_add_len;
- int desktopUniqueID;
+ gint cat_to_add_len;
+ gint desktopUniqueID;
cat_to_add_len = strlen(cat_to_add);
retval = i;
@@ -95,7 +95,7 @@ e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *categ
/* find a desktop id that is not in use between 128 and 255 */
for (desktopUniqueID = 128; desktopUniqueID <= 255; desktopUniqueID++) {
- int found = 0;
+ gint found = 0;
for(j=0; j<PILOT_MAX_CATEGORIES; j++){
if (category->ID[i] == desktopUniqueID) {
found = 1;
@@ -126,15 +126,15 @@ e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *categ
/*
*conversion from an evolution category to a palm category
*/
-void e_pilot_local_category_to_remote(int * pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category)
+void e_pilot_local_category_to_remote(gint * pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category)
{
GSList *c_list = NULL;
- char * category_string;
- int i;
+ gchar * category_string;
+ gint i;
e_cal_component_get_categories_list (comp, &c_list);
if (c_list) {
/* list != 0, so at least 1 category is assigned */
- category_string = e_pilot_utf8_to_pchar((const char *)c_list->data);
+ category_string = e_pilot_utf8_to_pchar((const gchar *)c_list->data);
if (c_list->next != 0) {
LOG (g_message ("Note: item has more categories in evolution, first chosen"));
}
@@ -162,9 +162,9 @@ void e_pilot_local_category_to_remote(int * pilotCategory, ECalComponent *comp,
/*
*conversion from a palm category to an evolution category
*/
-void e_pilot_remote_category_to_local(int pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category)
+void e_pilot_remote_category_to_local(gint pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category)
{
- char *category_string = NULL;
+ gchar *category_string = NULL;
if (pilotCategory != 0) {
/* pda has category assigned */
@@ -206,17 +206,17 @@ void e_pilot_remote_category_to_local(int pilotCategory, ECalComponent *comp, st
}
}
-static char *
-build_setup_path (const char *path, const char *key)
+static gchar *
+build_setup_path (const gchar *path, const gchar *key)
{
return g_strconcat ("/apps/evolution/conduit", "/", path, "/", key, NULL);
}
gboolean
-e_pilot_setup_get_bool (const char *path, const char *key, gboolean def)
+e_pilot_setup_get_bool (const gchar *path, const gchar *key, gboolean def)
{
gboolean res = def;
- char *full_path;
+ gchar *full_path;
GConfValue *value;
GConfClient *gconf;
@@ -241,10 +241,10 @@ e_pilot_setup_get_bool (const char *path, const char *key, gboolean def)
}
void
-e_pilot_setup_set_bool (const char *path, const char *key, gboolean value)
+e_pilot_setup_set_bool (const gchar *path, const gchar *key, gboolean value)
{
GError *error = NULL;
- char *full_path;
+ gchar *full_path;
GConfClient *gconf;
g_return_if_fail (path != NULL);
@@ -264,11 +264,11 @@ e_pilot_setup_set_bool (const char *path, const char *key, gboolean value)
}
}
-int
-e_pilot_setup_get_int (const char *path, const char *key, int def)
+gint
+e_pilot_setup_get_int (const gchar *path, const gchar *key, gint def)
{
- int res = def;
- char *full_path;
+ gint res = def;
+ gchar *full_path;
GConfValue *value;
GConfClient *gconf;
@@ -293,10 +293,10 @@ e_pilot_setup_get_int (const char *path, const char *key, int def)
}
void
-e_pilot_setup_set_int (const char *path, const char *key, int value)
+e_pilot_setup_set_int (const gchar *path, const gchar *key, gint value)
{
GError *error = NULL;
- char *full_path;
+ gchar *full_path;
GConfClient *gconf;
g_return_if_fail (path != NULL);
@@ -316,11 +316,11 @@ e_pilot_setup_set_int (const char *path, const char *key, int value)
}
}
-char *
-e_pilot_setup_get_string (const char *path, const char *key, const char *def)
+gchar *
+e_pilot_setup_get_string (const gchar *path, const gchar *key, const gchar *def)
{
- char *res = g_strdup (def);
- char *full_path;
+ gchar *res = g_strdup (def);
+ gchar *full_path;
GConfValue *value;
GConfClient *gconf;
@@ -347,10 +347,10 @@ e_pilot_setup_get_string (const char *path, const char *key, const char *def)
}
void
-e_pilot_setup_set_string (const char *path, const char *key, const char *value)
+e_pilot_setup_set_string (const gchar *path, const gchar *key, const gchar *value)
{
GError *error = NULL;
- char *full_path;
+ gchar *full_path;
GConfClient *gconf;
g_return_if_fail (path != NULL);
diff --git a/calendar/conduits/common/libecalendar-common-conduit.h b/calendar/conduits/common/libecalendar-common-conduit.h
index aab5a58b56..8110fc5094 100644
--- a/calendar/conduits/common/libecalendar-common-conduit.h
+++ b/calendar/conduits/common/libecalendar-common-conduit.h
@@ -25,13 +25,13 @@
#define PILOT_MAX_CATEGORIES 16
-int e_pilot_add_category_if_possible(char *cat_to_add, struct CategoryAppInfo *category);
-void e_pilot_local_category_to_remote(int * pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category);
-void e_pilot_remote_category_to_local(int pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category);
+gint e_pilot_add_category_if_possible(gchar *cat_to_add, struct CategoryAppInfo *category);
+void e_pilot_local_category_to_remote(gint * pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category);
+void e_pilot_remote_category_to_local(gint pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category);
-gboolean e_pilot_setup_get_bool (const char *path, const char *key, gboolean def);
-void e_pilot_setup_set_bool (const char *path, const char *key, gboolean value);
-int e_pilot_setup_get_int (const char *path, const char *key, int def);
-void e_pilot_setup_set_int (const char *path, const char *key, int value);
-char *e_pilot_setup_get_string (const char *path, const char *key, const char *def);
-void e_pilot_setup_set_string (const char *path, const char *key, const char *value);
+gboolean e_pilot_setup_get_bool (const gchar *path, const gchar *key, gboolean def);
+void e_pilot_setup_set_bool (const gchar *path, const gchar *key, gboolean value);
+gint e_pilot_setup_get_int (const gchar *path, const gchar *key, gint def);
+void e_pilot_setup_set_int (const gchar *path, const gchar *key, gint value);
+gchar *e_pilot_setup_get_string (const gchar *path, const gchar *key, const gchar *def);
+void e_pilot_setup_set_string (const gchar *path, const gchar *key, const gchar *value);
diff --git a/calendar/conduits/memo/memo-conduit.c b/calendar/conduits/memo/memo-conduit.c
index 61e5c852e3..1d32917760 100644
--- a/calendar/conduits/memo/memo-conduit.c
+++ b/calendar/conduits/memo/memo-conduit.c
@@ -86,7 +86,7 @@ struct _EMemoLocalRecord {
struct Memo *memo;
};
-int lastDesktopUniqueID;
+gint lastDesktopUniqueID;
static void
memoconduit_destroy_record (EMemoLocalRecord *local)
@@ -297,10 +297,10 @@ e_memo_context_destroy (EMemoConduitContext *ctxt)
}
/* Debug routines */
-static char *
+static gchar *
print_local (EMemoLocalRecord *local)
{
- static char buff[ 64 ];
+ static gchar buff[ 64 ];
if (local == NULL) {
sprintf (buff, "[NULL]");
@@ -317,9 +317,9 @@ print_local (EMemoLocalRecord *local)
return "";
}
-static char *print_remote (GnomePilotRecord *remote)
+static gchar *print_remote (GnomePilotRecord *remote)
{
- static char buff[ 64 ];
+ static gchar buff[ 64 ];
struct Memo memo;
#ifdef PILOT_LINK_0_12
pi_buffer_t *buffer;
@@ -377,7 +377,7 @@ get_default_timezone (void)
{
EConfigListener *listener;
icaltimezone *timezone = NULL;
- char *location;
+ gchar *location;
listener = e_config_listener_new ();
@@ -396,10 +396,10 @@ get_default_timezone (void)
return timezone;
}
-static char *
+static gchar *
map_name (EMemoConduitContext *ctxt)
{
- char *filename;
+ gchar *filename;
filename = g_strdup_printf ("%s/.evolution/memos/local/system/pilot-map-memo-%d.xml", g_get_home_dir (), ctxt->cfg->pilot_id);
@@ -413,7 +413,7 @@ next_changed_item (EMemoConduitContext *ctxt, GList *changes)
GList *l;
for (l = changes; l != NULL; l = l->next) {
- const char *uid;
+ const gchar *uid;
ccc = l->data;
@@ -426,7 +426,7 @@ next_changed_item (EMemoConduitContext *ctxt, GList *changes)
}
static void
-compute_status (EMemoConduitContext *ctxt, EMemoLocalRecord *local, const char *uid)
+compute_status (EMemoConduitContext *ctxt, EMemoLocalRecord *local, const gchar *uid)
{
ECalChange *ccc;
@@ -461,7 +461,7 @@ local_record_to_pilot_record (EMemoLocalRecord *local,
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
#else
- static char record[0xffff];
+ static gchar record[0xffff];
#endif
memset(&p, 0, sizeof (p));
@@ -494,7 +494,7 @@ local_record_to_pilot_record (EMemoLocalRecord *local,
pi_buffer_free(buffer);
#else
- p.record = (unsigned char *)record;
+ p.record = (guchar *)record;
p.length = pack_Memo (local->memo, p.record, 0xffff);
#endif
return p;
@@ -506,7 +506,7 @@ local_record_to_pilot_record (EMemoLocalRecord *local,
static void
local_record_from_comp (EMemoLocalRecord *local, ECalComponent *comp, EMemoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
GSList *d_list = NULL;
ECalComponentText *description;
ECalComponentClassification classif;
@@ -537,9 +537,9 @@ local_record_from_comp (EMemoLocalRecord *local, ECalComponent *comp, EMemoCondu
struct Memo memo;
pi_buffer_t * record;
#else
- char record[0xffff];
+ gchar record[0xffff];
#endif
- int cat = 0;
+ gint cat = 0;
#ifdef PILOT_LINK_0_12
record = pi_buffer_new(DLP_BUF_SIZE);
@@ -602,7 +602,7 @@ local_record_from_comp (EMemoLocalRecord *local, ECalComponent *comp, EMemoCondu
static void
local_record_from_uid (EMemoLocalRecord *local,
- const char *uid,
+ const gchar *uid,
EMemoConduitContext *ctxt)
{
ECalComponent *comp;
@@ -648,8 +648,8 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
struct Memo memo;
struct icaltimetype now;
icaltimezone *utc_zone;
- char *txt, *txt2, *txt3;
- int i;
+ gchar *txt, *txt2, *txt3;
+ gint i;
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
#endif
@@ -694,7 +694,7 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
e_cal_component_set_comment_list (comp, NULL);
e_cal_component_set_summary(comp, NULL);
} else {
- int idxToUse = -1, ntext = strlen(memo.text);
+ gint idxToUse = -1, ntext = strlen(memo.text);
gboolean foundNL = FALSE;
GSList l;
ECalComponentText text, sumText;
@@ -755,8 +755,8 @@ static void
check_for_slow_setting (GnomePilotConduit *c, EMemoConduitContext *ctxt)
{
GnomePilotConduitStandard *conduit = GNOME_PILOT_CONDUIT_STANDARD (c);
- int map_count;
- const char *uri;
+ gint map_count;
+ const gchar *uri;
/* If there are no objects or objects but no log */
map_count = g_hash_table_size (ctxt->map->pid_map);
@@ -787,9 +787,9 @@ pre_sync (GnomePilotConduit *conduit,
{
GnomePilotConduitSyncAbs *abs_conduit;
GList *l;
- int len;
- unsigned char *buf;
- char *filename, *change_id;
+ gint len;
+ guchar *buf;
+ gchar *filename, *change_id;
icalcomponent *icalcomp;
gint num_records, add_records = 0, mod_records = 0, del_records = 0;
#ifdef PILOT_LINK_0_12
@@ -851,7 +851,7 @@ pre_sync (GnomePilotConduit *conduit,
for (l = ctxt->changed; l != NULL; l = l->next) {
ECalChange *ccc = l->data;
- const char *uid;
+ const gchar *uid;
e_cal_component_get_uid (ccc->comp, &uid);
if (!e_pilot_map_uid_is_archived (ctxt->map, uid)) {
@@ -895,9 +895,9 @@ pre_sync (GnomePilotConduit *conduit,
DLP_BUF_SIZE,
buffer);
#else
- buf = (unsigned char*)g_malloc (0xffff);
+ buf = (guchar *)g_malloc (0xffff);
len = dlp_ReadAppBlock (dbi->pilot_socket, dbi->db_handle, 0,
- (unsigned char *)buf, 0xffff);
+ (guchar *)buf, 0xffff);
#endif
if (len < 0) {
WARN (_("Could not read pilot's Memo application block"));
@@ -934,15 +934,15 @@ post_sync (GnomePilotConduit *conduit,
{
GList *changed;
gchar *filename, *change_id;
- unsigned char *buf;
- int dlpRetVal, len;
+ guchar *buf;
+ gint dlpRetVal, len;
- buf = (unsigned char*)g_malloc (0xffff);
+ buf = (guchar *)g_malloc (0xffff);
len = pack_MemoAppInfo (&(ctxt->ai), buf, 0xffff);
dlpRetVal = dlp_WriteAppBlock (dbi->pilot_socket, dbi->db_handle,
- (unsigned char *)buf, len);
+ (guchar *)buf, len);
g_free (buf);
@@ -984,7 +984,7 @@ set_pilot_id (GnomePilotConduitSyncAbs *conduit,
guint32 ID,
EMemoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ( "set_pilot_id: setting to %d\n", ID ));
@@ -999,7 +999,7 @@ set_status_cleared (GnomePilotConduitSyncAbs *conduit,
EMemoLocalRecord *local,
EMemoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ( "set_status_cleared: clearing status\n" ));
@@ -1015,7 +1015,7 @@ for_each (GnomePilotConduitSyncAbs *conduit,
EMemoConduitContext *ctxt)
{
static GList *comps, *iterator;
- static int count;
+ static gint count;
GList *unused;
g_return_val_if_fail (local != NULL, -1);
@@ -1075,7 +1075,7 @@ for_each_modified (GnomePilotConduitSyncAbs *conduit,
EMemoConduitContext *ctxt)
{
static GList *iterator;
- static int count;
+ static gint count;
GList *unused;
g_return_val_if_fail (local != NULL, 0);
@@ -1138,7 +1138,7 @@ compare (GnomePilotConduitSyncAbs *conduit,
{
/* used by the quick compare */
GnomePilotRecord local_pilot;
- int retval = 0;
+ gint retval = 0;
LOG (g_message ("compare: local=%s remote=%s...\n",
print_local (local), print_remote (remote)));
@@ -1166,8 +1166,8 @@ add_record (GnomePilotConduitSyncAbs *conduit,
EMemoConduitContext *ctxt)
{
ECalComponent *comp;
- char *uid;
- int retval = 0;
+ gchar *uid;
+ gint retval = 0;
g_return_val_if_fail (remote != NULL, -1);
@@ -1196,7 +1196,7 @@ replace_record (GnomePilotConduitSyncAbs *conduit,
EMemoConduitContext *ctxt)
{
ECalComponent *new_comp;
- int retval = 0;
+ gint retval = 0;
g_return_val_if_fail (remote != NULL, -1);
@@ -1219,7 +1219,7 @@ delete_record (GnomePilotConduitSyncAbs *conduit,
EMemoLocalRecord *local,
EMemoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
g_return_val_if_fail (local != NULL, -1);
g_return_val_if_fail (local->comp != NULL, -1);
@@ -1241,8 +1241,8 @@ archive_record (GnomePilotConduitSyncAbs *conduit,
gboolean archive,
EMemoConduitContext *ctxt)
{
- const char *uid;
- int retval = 0;
+ const gchar *uid;
+ gint retval = 0;
g_return_val_if_fail (local != NULL, -1);
@@ -1260,7 +1260,7 @@ match (GnomePilotConduitSyncAbs *conduit,
EMemoLocalRecord **local,
EMemoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ("match: looking for local copy of %s\n",
print_remote (remote)));
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 3a684e0751..1ced6acfa3 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -88,7 +88,7 @@ struct _EToDoLocalRecord {
struct ToDo *todo;
};
-int lastDesktopUniqueID;
+gint lastDesktopUniqueID;
static void
todoconduit_destroy_record (EToDoLocalRecord *local)
@@ -361,10 +361,10 @@ e_todo_context_destroy (EToDoConduitContext *ctxt)
}
/* Debug routines */
-static char *
+static gchar *
print_local (EToDoLocalRecord *local)
{
- static char buff[ 4096 ];
+ static gchar buff[ 4096 ];
if (local == NULL) {
sprintf (buff, "[NULL]");
@@ -388,9 +388,9 @@ print_local (EToDoLocalRecord *local)
return "";
}
-static char *print_remote (GnomePilotRecord *remote)
+static gchar *print_remote (GnomePilotRecord *remote)
{
- static char buff[ 4096 ];
+ static gchar buff[ 4096 ];
struct ToDo todo;
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
@@ -432,10 +432,10 @@ static char *print_remote (GnomePilotRecord *remote)
return buff;
}
-static char *
-auth_func_cb (ECal *ecal, const char* prompt, const char *key, gpointer user_data)
+static gchar *
+auth_func_cb (ECal *ecal, const gchar * prompt, const gchar *key, gpointer user_data)
{
- char *password;
+ gchar *password;
ESource *source;
const gchar *auth_domain, *component_name;
@@ -452,9 +452,9 @@ auth_func_cb (ECal *ecal, const char* prompt, const char *key, gpointer user_dat
static int
start_calendar_server (EToDoConduitContext *ctxt)
{
- char *str_uri = NULL;
- char *pass_key = NULL;
- int retval = 0;
+ gchar *str_uri = NULL;
+ gchar *pass_key = NULL;
+ gint retval = 0;
g_return_val_if_fail (ctxt != NULL, -2);
if (ctxt->cfg->source) {
@@ -492,7 +492,7 @@ start_calendar_server (EToDoConduitContext *ctxt)
/* Utility routines */
static icaltimezone *
-get_timezone (ECal *client, const char *tzid)
+get_timezone (ECal *client, const gchar *tzid)
{
icaltimezone *timezone = NULL;
@@ -508,7 +508,7 @@ get_default_timezone (void)
{
EConfigListener *listener;
icaltimezone *timezone = NULL;
- char *location;
+ gchar *location;
listener = e_config_listener_new ();
@@ -527,10 +527,10 @@ get_default_timezone (void)
return timezone;
}
-static char *
+static gchar *
map_name (EToDoConduitContext *ctxt)
{
- char *filename;
+ gchar *filename;
filename = g_strdup_printf ("%s/.evolution/tasks/local/system/pilot-map-todo-%d.xml", g_get_home_dir (), ctxt->cfg->pilot_id);
@@ -554,7 +554,7 @@ next_changed_item (EToDoConduitContext *ctxt, GList *changes)
GList *l;
for (l = changes; l != NULL; l = l->next) {
- const char *uid;
+ const gchar *uid;
ccc = l->data;
@@ -567,7 +567,7 @@ next_changed_item (EToDoConduitContext *ctxt, GList *changes)
}
static void
-compute_status (EToDoConduitContext *ctxt, EToDoLocalRecord *local, const char *uid)
+compute_status (EToDoConduitContext *ctxt, EToDoLocalRecord *local, const gchar *uid)
{
ECalChange *ccc;
@@ -602,7 +602,7 @@ local_record_to_pilot_record (EToDoLocalRecord *local,
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
#else
- static char record[0xffff];
+ static gchar record[0xffff];
#endif
g_assert (local->comp != NULL);
@@ -635,7 +635,7 @@ local_record_to_pilot_record (EToDoLocalRecord *local,
pi_buffer_free(buffer);
#else
- p.record = (unsigned char *)record;
+ p.record = (guchar *)record;
p.length = pack_ToDo (local->todo, p.record, 0xffff);
#endif
return p;
@@ -647,8 +647,8 @@ local_record_to_pilot_record (EToDoLocalRecord *local,
static void
local_record_from_comp (EToDoLocalRecord *local, ECalComponent *comp, EToDoConduitContext *ctxt)
{
- const char *uid;
- int *priority;
+ const gchar *uid;
+ gint *priority;
icalproperty_status status;
ECalComponentText summary;
GSList *d_list = NULL;
@@ -674,7 +674,7 @@ local_record_from_comp (EToDoLocalRecord *local, ECalComponent *comp, EToDoCondu
/* Don't overwrite the category */
if (local->local.ID != 0) {
- int cat = 0;
+ gint cat = 0;
#ifdef PILOT_LINK_0_12
pi_buffer_t * record;
record = pi_buffer_new(DLP_BUF_SIZE);
@@ -683,7 +683,7 @@ local_record_from_comp (EToDoLocalRecord *local, ECalComponent *comp, EToDoCondu
return;
}
#else
- char record[0xffff];
+ gchar record[0xffff];
#endif
if (dlp_ReadRecordById (ctxt->dbi->pilot_socket,
@@ -771,7 +771,7 @@ local_record_from_comp (EToDoLocalRecord *local, ECalComponent *comp, EToDoCondu
static void
local_record_from_uid (EToDoLocalRecord *local,
- const char *uid,
+ const gchar *uid,
EToDoConduitContext *ctxt)
{
ECalComponent *comp;
@@ -819,8 +819,8 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
ECalComponentDateTime dt = {NULL, icaltimezone_get_tzid (timezone)};
struct icaltimetype due, now;
icaltimezone *utc_zone;
- int priority;
- char *txt;
+ gint priority;
+ gchar *txt;
#ifdef PILOT_LINK_0_12
pi_buffer_t * buffer;
#endif
@@ -882,20 +882,20 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
}
if (todo.complete) {
- int percent = 100;
+ gint percent = 100;
e_cal_component_set_completed (comp, &now);
e_cal_component_set_percent (comp, &percent);
e_cal_component_set_status (comp, ICAL_STATUS_COMPLETED);
} else {
- int *percent = NULL;
+ gint *percent = NULL;
icalproperty_status status;
e_cal_component_set_completed (comp, NULL);
e_cal_component_get_percent (comp, &percent);
if (percent == NULL || *percent == 100) {
- int p = 0;
+ gint p = 0;
e_cal_component_set_percent (comp, &p);
}
if (percent != NULL)
@@ -948,8 +948,8 @@ static void
check_for_slow_setting (GnomePilotConduit *c, EToDoConduitContext *ctxt)
{
GnomePilotConduitStandard *conduit = GNOME_PILOT_CONDUIT_STANDARD (c);
- int map_count;
- const char *uri;
+ gint map_count;
+ const gchar *uri;
/* If there are no objects or objects but no log */
map_count = g_hash_table_size (ctxt->map->pid_map);
@@ -980,9 +980,9 @@ pre_sync (GnomePilotConduit *conduit,
{
GnomePilotConduitSyncAbs *abs_conduit;
GList *l;
- int len;
- unsigned char *buf;
- char *filename, *change_id;
+ gint len;
+ guchar *buf;
+ gchar *filename, *change_id;
icalcomponent *icalcomp;
gint num_records, add_records = 0, mod_records = 0, del_records = 0;
#ifdef PILOT_LINK_0_12
@@ -1041,7 +1041,7 @@ pre_sync (GnomePilotConduit *conduit,
for (l = ctxt->changed; l != NULL; l = l->next) {
ECalChange *ccc = l->data;
- const char *uid;
+ const gchar *uid;
e_cal_component_get_uid (ccc->comp, &uid);
if (!e_pilot_map_uid_is_archived (ctxt->map, uid)) {
@@ -1084,9 +1084,9 @@ pre_sync (GnomePilotConduit *conduit,
DLP_BUF_SIZE,
buffer);
#else
- buf = (unsigned char*)g_malloc (0xffff);
+ buf = (guchar *)g_malloc (0xffff);
len = dlp_ReadAppBlock (dbi->pilot_socket, dbi->db_handle, 0,
- (unsigned char *)buf, 0xffff);
+ (guchar *)buf, 0xffff);
#endif
if (len < 0) {
WARN (_("Could not read pilot's ToDo application block"));
@@ -1121,15 +1121,15 @@ post_sync (GnomePilotConduit *conduit,
{
GList *changed;
gchar *filename, *change_id;
- unsigned char *buf;
- int dlpRetVal, len;
+ guchar *buf;
+ gint dlpRetVal, len;
- buf = (unsigned char*)g_malloc (0xffff);
+ buf = (guchar *)g_malloc (0xffff);
len = pack_ToDoAppInfo (&(ctxt->ai), buf, 0xffff);
dlpRetVal = dlp_WriteAppBlock (dbi->pilot_socket, dbi->db_handle,
- (unsigned char *)buf, len);
+ (guchar *)buf, len);
g_free (buf);
@@ -1171,7 +1171,7 @@ set_pilot_id (GnomePilotConduitSyncAbs *conduit,
guint32 ID,
EToDoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ( "set_pilot_id: setting to %d\n", ID ));
@@ -1186,7 +1186,7 @@ set_status_cleared (GnomePilotConduitSyncAbs *conduit,
EToDoLocalRecord *local,
EToDoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ( "set_status_cleared: clearing status\n" ));
@@ -1202,7 +1202,7 @@ for_each (GnomePilotConduitSyncAbs *conduit,
EToDoConduitContext *ctxt)
{
static GList *comps, *iterator;
- static int count;
+ static gint count;
GList *unused;
g_return_val_if_fail (local != NULL, -1);
@@ -1261,7 +1261,7 @@ for_each_modified (GnomePilotConduitSyncAbs *conduit,
EToDoConduitContext *ctxt)
{
static GList *iterator;
- static int count;
+ static gint count;
GList *unused;
g_return_val_if_fail (local != NULL, 0);
@@ -1323,7 +1323,7 @@ compare (GnomePilotConduitSyncAbs *conduit,
{
/* used by the quick compare */
GnomePilotRecord local_pilot;
- int retval = 0;
+ gint retval = 0;
LOG (g_message ("compare: local=%s remote=%s...\n",
print_local (local), print_remote (remote)));
@@ -1351,8 +1351,8 @@ add_record (GnomePilotConduitSyncAbs *conduit,
EToDoConduitContext *ctxt)
{
ECalComponent *comp;
- char *uid;
- int retval = 0;
+ gchar *uid;
+ gint retval = 0;
g_return_val_if_fail (remote != NULL, -1);
@@ -1382,7 +1382,7 @@ replace_record (GnomePilotConduitSyncAbs *conduit,
EToDoConduitContext *ctxt)
{
ECalComponent *new_comp;
- int retval = 0;
+ gint retval = 0;
g_return_val_if_fail (remote != NULL, -1);
@@ -1405,7 +1405,7 @@ delete_record (GnomePilotConduitSyncAbs *conduit,
EToDoLocalRecord *local,
EToDoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
g_return_val_if_fail (local != NULL, -1);
g_return_val_if_fail (local->comp != NULL, -1);
@@ -1427,8 +1427,8 @@ archive_record (GnomePilotConduitSyncAbs *conduit,
gboolean archive,
EToDoConduitContext *ctxt)
{
- const char *uid;
- int retval = 0;
+ const gchar *uid;
+ gint retval = 0;
g_return_val_if_fail (local != NULL, -1);
@@ -1446,7 +1446,7 @@ match (GnomePilotConduitSyncAbs *conduit,
EToDoLocalRecord **local,
EToDoConduitContext *ctxt)
{
- const char *uid;
+ const gchar *uid;
LOG (g_message ("match: looking for local copy of %s\n",
print_remote (remote)));
diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c
index 089bf37552..5307936b27 100644
--- a/calendar/gui/alarm-notify/alarm-notify-dialog.c
+++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c
@@ -93,8 +93,8 @@ static void
an_update_minutes_label (GtkSpinButton *sb, gpointer data)
{
AlarmNotify *an;
- char *new_label;
- int snooze_timeout_min;
+ gchar *new_label;
+ gint snooze_timeout_min;
an = (AlarmNotify *) data;
@@ -108,8 +108,8 @@ static void
an_update_hrs_label (GtkSpinButton *sb, gpointer data)
{
AlarmNotify *an;
- char *new_label;
- int snooze_timeout_hrs;
+ gchar *new_label;
+ gint snooze_timeout_hrs;
an = (AlarmNotify *) data;
@@ -170,7 +170,7 @@ edit_pressed_cb (GtkButton *button, gpointer user_data)
static void
snooze_pressed_cb (GtkButton *button, gpointer user_data)
{
- int snooze_timeout;
+ gint snooze_timeout;
AlarmNotify *an = user_data;
GtkTreeIter iter;
GtkTreeModel *model = NULL;
@@ -253,7 +253,7 @@ notified_alarms_dialog_new (void)
G_TYPE_POINTER /* FuncInfo*/));
- char *gladefile;
+ gchar *gladefile;
gladefile = g_build_filename (EVOLUTION_GLADEDIR,
"alarm-notify.glade",
@@ -363,8 +363,8 @@ notified_alarms_dialog_new (void)
GtkTreeIter
add_alarm_to_notified_alarms_dialog (AlarmNotificationsDialog *na, time_t trigger,
time_t occur_start, time_t occur_end,
- ECalComponentVType vtype, const char *summary,
- const char *description, const char *location,
+ ECalComponentVType vtype, const gchar *summary,
+ const gchar *description, const gchar *location,
AlarmNotifyFunc func, gpointer func_data)
{
GtkTreeIter iter;
diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.h b/calendar/gui/alarm-notify/alarm-notify-dialog.h
index 17f9b3a61c..ae523cb1ad 100644
--- a/calendar/gui/alarm-notify/alarm-notify-dialog.h
+++ b/calendar/gui/alarm-notify/alarm-notify-dialog.h
@@ -43,7 +43,7 @@ struct _AlarmNotificationsDialog
GtkWidget *treeview;
};
-typedef void (* AlarmNotifyFunc) (AlarmNotifyResult result, int snooze_mins, gpointer data);
+typedef void (* AlarmNotifyFunc) (AlarmNotifyResult result, gint snooze_mins, gpointer data);
AlarmNotificationsDialog *
notified_alarms_dialog_new (void);
@@ -51,8 +51,8 @@ notified_alarms_dialog_new (void);
GtkTreeIter
add_alarm_to_notified_alarms_dialog (AlarmNotificationsDialog *na, time_t trigger,
time_t occur_start, time_t occur_end,
- ECalComponentVType vtype, const char *summary,
- const char *description, const char *location,
+ ECalComponentVType vtype, const gchar *summary,
+ const gchar *description, const gchar *location,
AlarmNotifyFunc func, gpointer func_data);
diff --git a/calendar/gui/alarm-notify/alarm-notify.c b/calendar/gui/alarm-notify/alarm-notify.c
index 4085815bce..e05c6e6571 100644
--- a/calendar/gui/alarm-notify/alarm-notify.c
+++ b/calendar/gui/alarm-notify/alarm-notify.c
@@ -81,7 +81,7 @@ typedef struct {
static void
process_removal_in_hash (gpointer key, gpointer value, gpointer data)
{
- char *uri = key;
+ gchar *uri = key;
ProcessRemovalsData *prd = data;
GSList *groups, *sources, *p, *q;
gboolean found = FALSE;
@@ -94,8 +94,8 @@ process_removal_in_hash (gpointer key, gpointer value, gpointer data)
sources = e_source_group_peek_sources (group);
for (q = sources; q != NULL; q = q->next) {
ESource *source = E_SOURCE (q->data);
- char *source_uri;
- const char *completion = e_source_get_property (source, "alarm");
+ gchar *source_uri;
+ const gchar *completion = e_source_get_property (source, "alarm");
source_uri = e_source_get_uri (source);
if (strcmp (source_uri, uri) == 0)
@@ -122,7 +122,7 @@ list_changed_cb (ESourceList *source_list, gpointer data)
ECalSourceType source_type = E_CAL_SOURCE_TYPE_LAST;
ProcessRemovalsData prd;
GList *l;
- int i;
+ gint i;
g_signal_handlers_block_by_func(source_list, list_changed_cb, data);
@@ -146,8 +146,8 @@ list_changed_cb (ESourceList *source_list, gpointer data)
sources = e_source_group_peek_sources (group);
for (q = sources; q != NULL; q = q->next) {
ESource *source = E_SOURCE (q->data);
- char *uri;
- const char *completion = e_source_get_property (source, "alarm");
+ gchar *uri;
+ const gchar *completion = e_source_get_property (source, "alarm");
if (completion && (!g_ascii_strcasecmp (completion, "false") ||
!g_ascii_strcasecmp (completion, "never")))
@@ -169,7 +169,7 @@ list_changed_cb (ESourceList *source_list, gpointer data)
g_hash_table_foreach (priv->uri_client_hash[source_type], (GHFunc) process_removal_in_hash, &prd);
for (l = prd.removals; l; l = l->next) {
- d (printf("%s:%d (list_changed_cb) - Removing Calendar %s\n", __FILE__, __LINE__, (char *)l->data));
+ d (printf("%s:%d (list_changed_cb) - Removing Calendar %s\n", __FILE__, __LINE__, (gchar *)l->data));
alarm_notify_remove_calendar (an, source_type, l->data);
}
g_list_free (prd.removals);
@@ -206,8 +206,8 @@ load_calendars (AlarmNotify *an, ECalSourceType source_type)
sources = e_source_group_peek_sources (group);
for (q = sources; q != NULL; q = q->next) {
ESource *source = E_SOURCE (q->data);
- char *uri;
- const char *completion = e_source_get_property (source, "alarm");
+ gchar *uri;
+ const gchar *completion = e_source_get_property (source, "alarm");
if (completion && (!g_ascii_strcasecmp (completion, "false") ||
!g_ascii_strcasecmp (completion, "never")))
@@ -230,7 +230,7 @@ static void
alarm_notify_init (AlarmNotify *an, AlarmNotifyClass *klass)
{
AlarmNotifyPrivate *priv;
- int i;
+ gint i;
priv = g_new0 (AlarmNotifyPrivate, 1);
an->priv = priv;
@@ -263,7 +263,7 @@ alarm_notify_finalize (GObject *object)
{
AlarmNotify *an;
AlarmNotifyPrivate *priv;
- int i;
+ gint i;
g_return_if_fail (object != NULL);
g_return_if_fail (IS_ALARM_NOTIFY (object));
@@ -343,8 +343,8 @@ alarm_notify_add_calendar (AlarmNotify *an, ECalSourceType source_type, ESource
AlarmNotifyPrivate *priv;
ECal *client;
EUri *e_uri;
- char *str_uri;
- char *pass_key;
+ gchar *str_uri;
+ gchar *pass_key;
g_return_if_fail (an != NULL);
g_return_if_fail (IS_ALARM_NOTIFY (an));
@@ -399,7 +399,7 @@ alarm_notify_add_calendar (AlarmNotify *an, ECalSourceType source_type, ESource
}
void
-alarm_notify_remove_calendar (AlarmNotify *an, ECalSourceType source_type, const char *str_uri)
+alarm_notify_remove_calendar (AlarmNotify *an, ECalSourceType source_type, const gchar *str_uri)
{
AlarmNotifyPrivate *priv;
ECal *client;
diff --git a/calendar/gui/alarm-notify/alarm-notify.h b/calendar/gui/alarm-notify/alarm-notify.h
index a548716295..a6ef3a173e 100644
--- a/calendar/gui/alarm-notify/alarm-notify.h
+++ b/calendar/gui/alarm-notify/alarm-notify.h
@@ -60,7 +60,7 @@ GType alarm_notify_get_type (void);
AlarmNotify *alarm_notify_new (void);
void alarm_notify_add_calendar (AlarmNotify *an, ECalSourceType source_type, ESource *source, gboolean load_afterwards);
-void alarm_notify_remove_calendar (AlarmNotify *an, ECalSourceType source_type, const char *str_uri);
+void alarm_notify_remove_calendar (AlarmNotify *an, ECalSourceType source_type, const gchar *str_uri);
ESourceList *alarm_notify_get_selected_calendars (AlarmNotify *);
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index c293bf74a8..14aed443e8 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -76,8 +76,8 @@ static GList *tray_icons_list = NULL;
/* Top Tray Image */
static GtkStatusIcon *tray_icon = NULL;
-static int tray_blink_id = -1;
-static int tray_blink_countdown = 0;
+static gint tray_blink_id = -1;
+static gint tray_blink_countdown = 0;
static AlarmNotify *an;
/* Structure that stores a client we are monitoring */
@@ -520,7 +520,7 @@ add_component_alarms (ClientAlarms *ca, ECalComponentAlarms *alarms)
static void
load_alarms (ClientAlarms *ca, time_t start, time_t end)
{
- char *str_query, *iso_start, *iso_end;
+ gchar *str_query, *iso_start, *iso_end;
d(printf("%s:%d (load_alarms) \n",__FILE__, __LINE__));
@@ -875,7 +875,7 @@ query_objects_removed_cb (ECal *client, GList *objects, gpointer data)
* compued with respect to the current time.
*/
static void
-create_snooze (CompQueuedAlarms *cqa, gpointer alarm_id, int snooze_mins)
+create_snooze (CompQueuedAlarms *cqa, gpointer alarm_id, gint snooze_mins)
{
QueuedAlarm *orig_qa;
time_t t;
@@ -904,8 +904,8 @@ create_snooze (CompQueuedAlarms *cqa, gpointer alarm_id, int snooze_mins)
static void
edit_component (ECal *client, ECalComponent *comp)
{
- const char *uid;
- const char *uri;
+ const gchar *uid;
+ const gchar *uri;
ECalSourceType source_type;
CORBA_Environment ev;
GNOME_Evolution_Calendar_CompEditorFactory factory;
@@ -938,7 +938,7 @@ edit_component (ECal *client, ECalComponent *comp)
corba_type = GNOME_Evolution_Calendar_CompEditorFactory_EDITOR_MODE_EVENT;
}
- GNOME_Evolution_Calendar_CompEditorFactory_editExisting (factory, uri, (char *) uid, corba_type, &ev);
+ GNOME_Evolution_Calendar_CompEditorFactory_editExisting (factory, uri, (gchar *) uid, corba_type, &ev);
if (BONOBO_EX (&ev))
e_error_run (NULL, "editor-error", bonobo_exception_get_text (&ev), NULL);
@@ -950,9 +950,9 @@ edit_component (ECal *client, ECalComponent *comp)
}
typedef struct {
- char *summary;
- char *description;
- char *location;
+ gchar *summary;
+ gchar *description;
+ gchar *location;
gboolean blink_state;
gboolean snooze_set;
gint blink_id;
@@ -1009,7 +1009,7 @@ free_tray_icon_data (TrayIconData *tray_data)
static void
on_dialog_objs_removed_async (struct _query_msg *msg)
{
- const char *our_uid;
+ const gchar *our_uid;
GList *l;
TrayIconData *tray_data;
ECal *client;
@@ -1025,7 +1025,7 @@ on_dialog_objs_removed_async (struct _query_msg *msg)
g_return_if_fail (our_uid && *our_uid);
for (l = objects; l != NULL; l = l->next) {
- const char *uid = l->data;
+ const gchar *uid = l->data;
if (!uid)
continue;
@@ -1197,7 +1197,7 @@ tray_list_remove_data (TrayIconData *data)
}
static void
-notify_dialog_cb (AlarmNotifyResult result, int snooze_mins, gpointer data)
+notify_dialog_cb (AlarmNotifyResult result, gint snooze_mins, gpointer data)
{
TrayIconData *tray_data = data;
@@ -1437,11 +1437,11 @@ display_notification (time_t trigger, CompQueuedAlarms *cqa,
{
QueuedAlarm *qa;
ECalComponent *comp;
- const char *summary, *description, *location;
+ const gchar *summary, *description, *location;
TrayIconData *tray_data;
ECalComponentText text;
GSList *text_list;
- char *str, *start_str, *end_str, *alarm_str, *time_str;
+ gchar *str, *start_str, *end_str, *alarm_str, *time_str;
icaltimezone *current_zone;
ECalComponentOrganizer organiser;
@@ -1521,7 +1521,7 @@ display_notification (time_t trigger, CompQueuedAlarms *cqa,
tray_list_add_new (tray_data);
if (g_list_length (tray_icons_list) > 1) {
- char *tip;
+ gchar *tip;
tip = g_strdup_printf (_("You have %d alarms"), g_list_length (tray_icons_list));
gtk_status_icon_set_tooltip_text (tray_icon, tip);
@@ -1559,13 +1559,13 @@ popup_notification (time_t trigger, CompQueuedAlarms *cqa,
{
QueuedAlarm *qa;
ECalComponent *comp;
- const char *summary, *location;
+ const gchar *summary, *location;
ECalComponentText text;
- char *str, *start_str, *end_str, *alarm_str, *time_str;
+ gchar *str, *start_str, *end_str, *alarm_str, *time_str;
icaltimezone *current_zone;
ECalComponentOrganizer organiser;
NotifyNotification *n;
- char *body;
+ gchar *body;
d(printf("%s:%d (popup_notification)\n",__FILE__, __LINE__));
@@ -1652,7 +1652,7 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa,
e_cal_component_alarm_free (alarm);
if (attach && icalattach_get_is_url (attach)) {
- const char *url;
+ const gchar *url;
url = icalattach_get_url (attach);
@@ -1702,11 +1702,11 @@ mail_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id)
/* Performs notification of a procedure alarm */
static gboolean
-procedure_notification_dialog (const char *cmd, const char *url)
+procedure_notification_dialog (const gchar *cmd, const gchar *url)
{
GtkWidget *dialog, *label, *checkbox;
- char *str;
- int btn;
+ gchar *str;
+ gint btn;
d(printf("%s:%d (procedure_notification_dialog)\n",__FILE__, __LINE__));
@@ -1755,8 +1755,8 @@ procedure_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id
ECalComponentAlarm *alarm;
ECalComponentText description;
icalattach *attach;
- const char *url;
- char *cmd;
+ const gchar *url;
+ gchar *cmd;
gboolean result = TRUE;
d(printf("%s:%d (procedure_notification)\n",__FILE__, __LINE__));
@@ -1789,12 +1789,12 @@ procedure_notification (time_t trigger, CompQueuedAlarms *cqa, gpointer alarm_id
if (description.value)
cmd = g_strconcat (url, " ", description.value, NULL);
else
- cmd = (char *) url;
+ cmd = (gchar *) url;
if (procedure_notification_dialog (cmd, url))
result = g_spawn_command_line_async (cmd, NULL);
- if (cmd != (char *) url)
+ if (cmd != (gchar *) url)
g_free (cmd);
icalattach_unref (attach);
@@ -2168,7 +2168,7 @@ update_cqa (CompQueuedAlarms *cqa, ECalComponent *newcomp)
/* Update auids in Queued Alarms*/
for (qa_list = cqa->queued_alarms; qa_list; qa_list = qa_list->next) {
QueuedAlarm *qa = qa_list->data;
- char *check_auid = (char *) qa->instance->auid;
+ gchar *check_auid = (gchar *) qa->instance->auid;
ECalComponentAlarm *alarm;
alarm = e_cal_component_get_alarm (newcomp, check_auid);
@@ -2207,7 +2207,7 @@ update_qa (ECalComponentAlarms *alarms, QueuedAlarm *qa)
for (instance_list = alarms->alarms; instance_list; instance_list = instance_list->next) {
al_inst = instance_list->data;
if (al_inst->trigger == qa->orig_trigger) { /* FIXME if two or more alarm instances (audio, note) for same component have same trigger */
- g_free ((char *) qa->instance->auid);
+ g_free ((gchar *) qa->instance->auid);
qa->instance->auid = g_strdup (al_inst->auid);
break;
}
diff --git a/calendar/gui/alarm-notify/config-data.c b/calendar/gui/alarm-notify/config-data.c
index dba9099520..8f3b0aebc1 100644
--- a/calendar/gui/alarm-notify/config-data.c
+++ b/calendar/gui/alarm-notify/config-data.c
@@ -48,7 +48,7 @@ static ESourceList *calendar_source_list = NULL, *tasks_source_list = NULL;
static gboolean
locale_supports_12_hour_format (void)
{
- char s[16];
+ gchar s[16];
time_t t = 0;
strftime (s, sizeof s, "%p", gmtime (&t));
@@ -100,7 +100,7 @@ ensure_inited (void)
}
ESourceList *
-config_data_get_calendars (const char *key)
+config_data_get_calendars (const gchar *key)
{
ESourceList *cal_sources;
gboolean state;
@@ -157,9 +157,9 @@ config_data_get_calendars (const char *key)
}
void
-config_data_replace_string_list (const char *key,
- const char *old,
- const char *new)
+config_data_replace_string_list (const gchar *key,
+ const gchar *old,
+ const gchar *new)
{
GSList *source, *tmp;
@@ -204,7 +204,7 @@ config_data_get_conf_client (void)
icaltimezone *
config_data_get_timezone (void)
{
- char *location;
+ gchar *location;
icaltimezone *local_timezone;
ensure_inited ();
@@ -309,7 +309,7 @@ config_data_get_last_notification_time (void)
* Saves a program name as "blessed"
**/
void
-config_data_save_blessed_program (const char *program)
+config_data_save_blessed_program (const gchar *program)
{
GConfClient *client;
GSList *l;
@@ -333,7 +333,7 @@ config_data_save_blessed_program (const char *program)
* Return value: TRUE if program is blessed, FALSE otherwise
**/
gboolean
-config_data_is_blessed_program (const char *program)
+config_data_is_blessed_program (const gchar *program)
{
GConfClient *client;
GSList *l, *n;
@@ -346,7 +346,7 @@ config_data_is_blessed_program (const char *program)
while (l) {
n = l->next;
if (!found)
- found = strcmp ((char *) l->data, program) == 0;
+ found = strcmp ((gchar *) l->data, program) == 0;
g_free (l->data);
g_slist_free_1 (l);
l = n;
diff --git a/calendar/gui/alarm-notify/config-data.h b/calendar/gui/alarm-notify/config-data.h
index 63e6c7205e..19086beb56 100644
--- a/calendar/gui/alarm-notify/config-data.h
+++ b/calendar/gui/alarm-notify/config-data.h
@@ -38,9 +38,9 @@ gboolean config_data_get_24_hour_format (void);
gboolean config_data_get_notify_with_tray (void);
void config_data_set_last_notification_time (time_t t);
time_t config_data_get_last_notification_time (void);
-void config_data_save_blessed_program (const char *program);
-gboolean config_data_is_blessed_program (const char *program);
-ESourceList *config_data_get_calendars (const char *);
-void config_data_replace_string_list (const char *, const char *, const char *);
+void config_data_save_blessed_program (const gchar *program);
+gboolean config_data_is_blessed_program (const gchar *program);
+ESourceList *config_data_get_calendars (const gchar *);
+void config_data_replace_string_list (const gchar *, const gchar *, const gchar *);
#endif
diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c
index a625bec0fa..887adaa1d5 100644
--- a/calendar/gui/alarm-notify/notify-main.c
+++ b/calendar/gui/alarm-notify/notify-main.c
@@ -67,7 +67,7 @@ static gint
save_session_cb (GnomeClient *client, GnomeSaveStyle save_style, gint shutdown,
GnomeInteractStyle interact_style, gint fast, gpointer user_data)
{
- char *args[2];
+ gchar *args[2];
args[0] = g_build_filename (EVOLUTION_LIBEXECDIR,
"evolution-alarm-notify"
@@ -110,7 +110,7 @@ init_session (void)
* singleton service object.
*/
static BonoboObject *
-alarm_notify_factory_fn (BonoboGenericFactory *factory, const char *component_id, void *data)
+alarm_notify_factory_fn (BonoboGenericFactory *factory, const gchar *component_id, gpointer data)
{
g_return_val_if_fail (alarm_notify_service != NULL, NULL);
@@ -127,8 +127,8 @@ init_alarm_service (gpointer user_data)
return FALSE;
}
-int
-main (int argc, char **argv)
+gint
+main (gint argc, gchar **argv)
{
bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
diff --git a/calendar/gui/alarm-notify/util.c b/calendar/gui/alarm-notify/util.c
index 640a8f5f99..5377c8d4b2 100644
--- a/calendar/gui/alarm-notify/util.c
+++ b/calendar/gui/alarm-notify/util.c
@@ -33,12 +33,12 @@
#include "util.h"
/* Converts a time_t to a string, relative to the specified timezone */
-char *
+gchar *
timet_to_str_with_zone (time_t t, icaltimezone *zone)
{
struct icaltimetype itt;
struct tm tm;
- char buf[256];
+ gchar buf[256];
if (t == -1)
return g_strdup (_("invalid time"));
@@ -51,15 +51,15 @@ timet_to_str_with_zone (time_t t, icaltimezone *zone)
return g_strdup (buf);
}
-char *
+gchar *
calculate_time (time_t start, time_t end)
{
time_t difference = end - start;
- char *str;
- int hours, minutes;
- char *times[4];
- char *joined;
- int i;
+ gchar *str;
+ gint hours, minutes;
+ gchar *times[4];
+ gchar *joined;
+ gint i;
i = 0;
if (difference >= 3600) {
diff --git a/calendar/gui/alarm-notify/util.h b/calendar/gui/alarm-notify/util.h
index b7b715ca9b..bb6935729a 100644
--- a/calendar/gui/alarm-notify/util.h
+++ b/calendar/gui/alarm-notify/util.h
@@ -28,6 +28,6 @@
#include <libecal/e-cal-component.h>
-char *timet_to_str_with_zone (time_t t, icaltimezone *zone);
-char *calculate_time (time_t start, time_t end);
+gchar *timet_to_str_with_zone (time_t t, icaltimezone *zone);
+gchar *calculate_time (time_t start, time_t end);
#endif
diff --git a/calendar/gui/cal-search-bar.c b/calendar/gui/cal-search-bar.c
index 6183d873ba..b93a98a934 100644
--- a/calendar/gui/cal-search-bar.c
+++ b/calendar/gui/cal-search-bar.c
@@ -46,7 +46,7 @@
typedef struct CALSearchBarItem {
ESearchBarItem search;
- const char *image;
+ const gchar *image;
} CALSearchBarItem;
static ESearchBarItem calendar_search_items[] = {
@@ -192,7 +192,7 @@ cal_search_bar_init (CalSearchBar *cal_search)
static void
free_categories (GPtrArray *categories)
{
- int i;
+ gint i;
for (i = 0; i < categories->len; i++) {
if (categories->pdata[i] == NULL)
@@ -245,14 +245,14 @@ cal_search_bar_destroy (GtkObject *object)
/* Emits the "sexp_changed" signal for the calendar search bar */
static void
-notify_sexp_changed (CalSearchBar *cal_search, const char *sexp)
+notify_sexp_changed (CalSearchBar *cal_search, const gchar *sexp)
{
g_signal_emit (GTK_OBJECT (cal_search), cal_search_bar_signals[SEXP_CHANGED], 0, sexp);
}
/* Returns the string of the currently selected category, NULL for "Unmatched" and "All
*/
-static const char *
+static const gchar *
get_current_category (CalSearchBar *cal_search)
{
CalSearchBarPrivate *priv;
@@ -282,16 +282,16 @@ get_current_category (CalSearchBar *cal_search)
/* Returns a sexp for the selected category in the drop-down menu. The "All"
- * option is returned as (const char *) 1, and the "Unfiled" option is returned
+ * option is returned as (const gchar *) 1, and the "Unfiled" option is returned
* as NULL.
*/
-static char *
+static gchar *
get_show_option_sexp (CalSearchBar *cal_search)
{
CalSearchBarPrivate *priv ;
gint viewid ;
- char *start, *end, *due, *ret = NULL;
- const char *category = NULL ;
+ gchar *start, *end, *due, *ret = NULL;
+ const gchar *category = NULL ;
time_t start_range, end_range;
priv = cal_search->priv;
@@ -405,10 +405,10 @@ get_show_option_sexp (CalSearchBar *cal_search)
/* Sets the query string to be (contains? "field" "text") */
static void
-notify_e_cal_view_contains (CalSearchBar *cal_search, const char *field, const char *view)
+notify_e_cal_view_contains (CalSearchBar *cal_search, const gchar *field, const gchar *view)
{
- char *text = NULL;
- char *sexp;
+ gchar *text = NULL;
+ gchar *sexp;
text = e_search_bar_get_text (E_SEARCH_BAR (cal_search));
@@ -437,7 +437,7 @@ notify_e_cal_view_contains (CalSearchBar *cal_search, const char *field, const c
static void
notify_category_is (CalSearchBar *cal_search)
{
- char *sexp;
+ gchar *sexp;
sexp = get_show_option_sexp (cal_search);
@@ -455,9 +455,9 @@ notify_category_is (CalSearchBar *cal_search)
static void
regen_query (CalSearchBar *cal_search)
{
- int id;
- char *show_option_sexp = NULL;
- char *sexp = NULL;
+ gint id;
+ gchar *show_option_sexp = NULL;
+ gchar *sexp = NULL;
GString *out = NULL;
EFilterBar *efb = (EFilterBar *) cal_search;
@@ -518,7 +518,7 @@ regen_query (CalSearchBar *cal_search)
static void
regen_view_query (CalSearchBar *cal_search)
{
- const char *category;
+ const gchar *category;
notify_category_is (cal_search);
category = cal_search_bar_get_category (cal_search);
@@ -546,7 +546,7 @@ generate_viewoption_menu (CALSearchBarItem *subitems)
for (i = 0; subitems[i].search.id != -1; ++i) {
if (subitems[i].search.text) {
- char *str = NULL;
+ gchar *str = NULL;
str = e_str_without_underscores (subitems[i].search.text);
menu_item = gtk_image_menu_item_new_with_label (str);
if (subitems[i].image) {
@@ -588,12 +588,12 @@ setup_category_options (CalSearchBar *cal_search, CALSearchBarItem *subitems, gi
subitems[index].image = NULL;
for (i = 0; i < priv->categories->len; i++) {
- const char *category;
+ const gchar *category;
category = priv->categories->pdata[i] ? priv->categories->pdata [i] : "";
/* The search.text field should not be free'd */
- subitems[i + offset].search.text = (char *) category;
+ subitems[i + offset].search.text = (gchar *) category;
subitems[i + offset].search.id = i + offset;
subitems[i + offset].image = e_categories_get_icon_file_for (category);
}
@@ -719,7 +719,7 @@ make_suboptions (CalSearchBar *cal_search)
}
static void
-search_menu_activated (ESearchBar *esb, int id)
+search_menu_activated (ESearchBar *esb, gint id)
{
if (id == E_FILTERBAR_ADVANCED_ID)
e_search_bar_set_item_id (esb, id);
@@ -739,9 +739,9 @@ cal_search_bar_construct (CalSearchBar *cal_search, guint32 flags)
{
ESearchBarItem *items;
guint32 bit = 0x1;
- int i, j;
- char *xmlfile = NULL;
- char *userfile = NULL;
+ gint i, j;
+ gchar *xmlfile = NULL;
+ gchar *userfile = NULL;
FilterPart *part;
RuleContext *search_context;
FilterRule *search_rule;
@@ -831,12 +831,12 @@ cal_search_bar_new (guint32 flags)
/* Used from qsort() */
static int
-compare_categories_cb (const void *a, const void *b)
+compare_categories_cb (gconstpointer a, gconstpointer b)
{
- const char **ca, **cb;
+ const gchar **ca, **cb;
- ca = (const char **) a;
- cb = (const char **) b;
+ ca = (const gchar **) a;
+ cb = (const gchar **) b;
/* FIXME: should use some utf8 strcoll() thingy */
return strcmp (*ca, *cb);
@@ -849,7 +849,7 @@ static GPtrArray *
sort_categories (GPtrArray *categories)
{
GPtrArray *c;
- int i;
+ gint i;
c = g_ptr_array_new ();
g_ptr_array_set_size (c, categories->len);
@@ -899,10 +899,10 @@ cal_search_bar_set_categories (CalSearchBar *cal_search, GPtrArray *categories)
* Return value: Name of the selected category, or NULL if there is no
* selected category.
**/
-const char *
+const gchar *
cal_search_bar_get_category (CalSearchBar *cal_search)
{
- const char *category;
+ const gchar *category;
category = get_current_category (cal_search);
diff --git a/calendar/gui/cal-search-bar.h b/calendar/gui/cal-search-bar.h
index 26f3998c89..3c7304f136 100644
--- a/calendar/gui/cal-search-bar.h
+++ b/calendar/gui/cal-search-bar.h
@@ -68,8 +68,8 @@ typedef struct {
/* Notification signals */
- void (* sexp_changed) (CalSearchBar *cal_search, const char *sexp);
- void (* category_changed) (CalSearchBar *cal_search, const char *category);
+ void (* sexp_changed) (CalSearchBar *cal_search, const gchar *sexp);
+ void (* category_changed) (CalSearchBar *cal_search, const gchar *category);
} CalSearchBarClass;
GType cal_search_bar_get_type (void);
@@ -80,7 +80,7 @@ GtkWidget *cal_search_bar_new (guint32 flags);
void cal_search_bar_set_categories (CalSearchBar *cal_search, GPtrArray *categories);
-const char *cal_search_bar_get_category (CalSearchBar *cal_search);
+const gchar *cal_search_bar_get_category (CalSearchBar *cal_search);
void cal_search_bar_get_time_range (CalSearchBar *cal_search, time_t *start, time_t *end);
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index e69cd463ea..1bf0c442c4 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -67,7 +67,7 @@ typedef struct {
} FocusData;
static void
-file_open_event_cb (BonoboUIComponent *uic, gpointer data, const char *path)
+file_open_event_cb (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -98,7 +98,7 @@ calendar_command_print (GnomeCalendar *gcal, GtkPrintOperationAction action)
/* File/Print callback */
static void
-file_print_cb (BonoboUIComponent *uic, gpointer data, const char *path)
+file_print_cb (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal = GNOME_CALENDAR (data);
@@ -106,7 +106,7 @@ file_print_cb (BonoboUIComponent *uic, gpointer data, const char *path)
}
static void
-file_print_preview_cb (BonoboUIComponent *uic, gpointer data, const char *path)
+file_print_preview_cb (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal = GNOME_CALENDAR (data);
@@ -134,7 +134,7 @@ set_normal_cursor (GnomeCalendar *gcal)
}
static void
-previous_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+previous_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -146,7 +146,7 @@ previous_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
}
static void
-next_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+next_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -166,7 +166,7 @@ calendar_goto_today (GnomeCalendar *gcal)
}
static void
-today_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+today_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -176,7 +176,7 @@ today_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
}
static void
-goto_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+goto_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -186,7 +186,7 @@ goto_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
}
static void
-show_day_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+show_day_view_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -196,7 +196,7 @@ show_day_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
}
static void
-show_work_week_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+show_work_week_view_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -206,7 +206,7 @@ show_work_week_view_clicked (BonoboUIComponent *uic, gpointer data, const char *
}
static void
-show_week_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+show_week_view_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -216,7 +216,7 @@ show_week_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
}
static void
-show_month_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+show_month_view_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -227,7 +227,7 @@ show_month_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path
static void
-show_list_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path)
+show_list_view_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
@@ -301,7 +301,7 @@ purge_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
GnomeCalendar *gcal;
GtkWidget *dialog, *parent, *box, *label, *spin;
- int response;
+ gint response;
gcal = GNOME_CALENDAR (data);
@@ -353,7 +353,7 @@ static void
sensitize_items(BonoboUIComponent *uic, struct _sensitize_item *items, guint32 mask)
{
while (items->command) {
- char command[32];
+ gchar command[32];
if (strlen(items->command)>=21) {
g_warning ("items->command >= 21: %s\n", items->command);
@@ -552,7 +552,7 @@ gcal_taskpad_focus_change_cb (GnomeCalendar *gcal, gboolean in, gpointer data)
}
static void
-help_debug (BonoboUIComponent *uid, void *data, const char *path)
+help_debug (BonoboUIComponent *uid, gpointer data, const gchar *path)
{
calendar_component_show_logger ((GtkWidget *) data);
}
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index bca0832bac..d7ae0c66e2 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -116,11 +116,11 @@ typedef struct
} CalendarComponentView;
struct _CalendarComponentPrivate {
- char *base_directory;
- char *config_directory;
+ gchar *base_directory;
+ gchar *config_directory;
GConfClient *gconf_client;
- int gconf_notify_id;
+ gint gconf_notify_id;
ESourceList *source_list;
ESourceList *task_source_list;
@@ -164,7 +164,7 @@ ensure_sources (CalendarComponent *component)
ESourceGroup *contacts;
ESource *personal_source;
ESource *birthdays_source;
- char *base_uri, *base_uri_proto, base_uri_proto_seventh;
+ gchar *base_uri, *base_uri_proto, base_uri_proto_seventh;
const gchar *base_dir;
gchar *create_source;
@@ -231,7 +231,7 @@ ensure_sources (CalendarComponent *component)
/* ensure the source name is in current locale, not read from configuration */
e_source_set_name (personal_source, _("Personal"));
} else {
- char *primary_calendar = calendar_config_get_primary_calendar();
+ gchar *primary_calendar = calendar_config_get_primary_calendar();
GSList *calendars_selected;
/* Create the default Person addressbook */
@@ -331,7 +331,7 @@ is_in_uids (GSList *uids, ESource *source)
GSList *l;
for (l = uids; l; l = l->next) {
- const char *uid = l->data;
+ const gchar *uid = l->data;
if (!strcmp (uid, e_source_peek_uid (source)))
return TRUE;
@@ -358,7 +358,7 @@ update_uris_for_selection (CalendarComponentView *component_view)
ESource *selected_source = l->data;
if (gnome_calendar_add_source (component_view->calendar, E_CAL_SOURCE_TYPE_EVENT, selected_source))
- uids_selected = g_slist_append (uids_selected, (char *) e_source_peek_uid (selected_source));
+ uids_selected = g_slist_append (uids_selected, (gchar *) e_source_peek_uid (selected_source));
}
e_source_selector_free_selection (component_view->source_selection);
@@ -410,7 +410,7 @@ update_selection (CalendarComponentView *component_view)
/* Make sure the whole selection is there */
for (l = uids_selected; l; l = l->next) {
- char *uid = l->data;
+ gchar *uid = l->data;
ESource *source;
source = e_source_list_peek_source_by_uid (component_view->source_list, uid);
@@ -441,7 +441,7 @@ update_task_memo_selection (CalendarComponentView *component_view, ECalSourceTyp
/* Remove any that aren't there any more */
for (l = source_selection; l; l = l->next) {
- char *uid = l->data;
+ gchar *uid = l->data;
ESource *source;
source = e_source_list_peek_source_by_uid (component_view->source_list, uid);
@@ -456,7 +456,7 @@ update_task_memo_selection (CalendarComponentView *component_view, ECalSourceTyp
/* Make sure the whole selection is there */
for (l = uids_selected; l; l = l->next) {
- char *uid = l->data;
+ gchar *uid = l->data;
ESource *source;
source = e_source_list_peek_source_by_uid (source_list, uid);
@@ -475,7 +475,7 @@ static void
update_primary_selection (CalendarComponentView *component_view)
{
ESource *source = NULL;
- char *uid;
+ gchar *uid;
uid = calendar_config_get_primary_calendar ();
if (uid) {
@@ -497,7 +497,7 @@ static void
update_primary_task_memo_selection (CalendarComponentView *component_view, ECalSourceType type)
{
ESource *source = NULL;
- char *uid;
+ gchar *uid;
ESourceList *source_list = NULL;
if (type == E_CAL_SOURCE_TYPE_TODO) {
@@ -520,7 +520,7 @@ update_primary_task_memo_selection (CalendarComponentView *component_view, ECalS
/* Callbacks. */
static void
-copy_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
+copy_calendar_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
CalendarComponentView *component_view = data;
ESource *selected_source;
@@ -533,12 +533,12 @@ copy_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-delete_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
+delete_calendar_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
CalendarComponentView *component_view = data;
ESource *selected_source;
ECal *cal;
- char *uri;
+ gchar *uri;
selected_source = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (component_view->source_selector));
if (!selected_source)
@@ -570,13 +570,13 @@ delete_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-new_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
+new_calendar_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
calendar_setup_edit_calendar (GTK_WINDOW (gtk_widget_get_toplevel(ep->target->widget)), NULL, pitem->user_data);
}
static void
-rename_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
+rename_calendar_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
CalendarComponentView *component_view = data;
ESourceSelector *selector;
@@ -586,7 +586,7 @@ rename_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-edit_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
+edit_calendar_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
CalendarComponentView *component_view = data;
ESource *selected_source;
@@ -599,7 +599,7 @@ edit_calendar_cb (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-set_offline_availability (EPopup *ep, EPopupItem *pitem, void *data, const char *value)
+set_offline_availability (EPopup *ep, EPopupItem *pitem, gpointer data, const gchar *value)
{
CalendarComponentView *component_view = data;
ESource *selected_source;
@@ -612,13 +612,13 @@ set_offline_availability (EPopup *ep, EPopupItem *pitem, void *data, const char
}
static void
-mark_no_offline_cb (EPopup *ep, EPopupItem *pitem, void *data)
+mark_no_offline_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
set_offline_availability (ep, pitem, data, "0");
}
static void
-mark_offline_cb (EPopup *ep, EPopupItem *pitem, void *data)
+mark_offline_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
set_offline_availability (ep, pitem, data, "1");
}
@@ -638,7 +638,7 @@ static EPopupItem ecc_source_popups[] = {
};
static void
-ecc_source_popup_free(EPopup *ep, GSList *list, void *data)
+ecc_source_popup_free(EPopup *ep, GSList *list, gpointer data)
{
g_slist_free(list);
}
@@ -649,7 +649,7 @@ popup_event_cb(ESourceSelector *selector, ESource *insource, GdkEventButton *eve
ECalPopup *ep;
ECalPopupTargetSource *t;
GSList *menus = NULL;
- int i;
+ gint i;
GtkMenu *menu;
/** @HookPoint-ECalPopup: Calendar Source Selector Context Menu
@@ -730,7 +730,7 @@ set_info (CalendarComponentView *component_view)
struct icaltimetype start_tt, end_tt;
time_t start_time, end_time;
struct tm start_tm, end_tm;
- char buffer[512], end_buffer[256];
+ gchar buffer[512], end_buffer[256];
GnomeCalendarViewType view;
gnome_calendar_get_visible_time_range (component_view->calendar, &start_time, &end_time);
@@ -866,15 +866,15 @@ config_primary_memos_selection_changed_cb (GConfClient *client, guint id, GConfE
/* Evolution::Component CORBA methods. */
static void
-impl_handleURI (PortableServer_Servant servant, const char *uri, CORBA_Environment *ev)
+impl_handleURI (PortableServer_Servant servant, const gchar *uri, CORBA_Environment *ev)
{
CalendarComponent *calendar_component = CALENDAR_COMPONENT (bonobo_object_from_servant (servant));
CalendarComponentPrivate *priv;
GList *l;
CalendarComponentView *view = NULL;
- char *src_uid = NULL;
- char *uid = NULL;
- char *rid = NULL;
+ gchar *src_uid = NULL;
+ gchar *uid = NULL;
+ gchar *rid = NULL;
priv = calendar_component->priv;
@@ -886,8 +886,8 @@ impl_handleURI (PortableServer_Servant servant, const char *uri, CORBA_Environme
if (!strncmp (uri, "calendar:", 9)) {
EUri *euri = e_uri_new (uri);
- const char *p;
- char *header, *content;
+ const gchar *p;
+ gchar *header, *content;
size_t len, clen;
time_t start = -1, end = -1;
@@ -900,7 +900,7 @@ impl_handleURI (PortableServer_Servant servant, const char *uri, CORBA_Environme
if (p[len] != '=')
break;
- header = (char *) p;
+ header = (gchar *) p;
header[len] = '\0';
p += len + 1;
@@ -992,10 +992,10 @@ selector_tree_data_dropped (ESourceSelector *selector,
if (data->data) {
icalcomponent *icalcomp = NULL;
- char *comp_str; /* do not free this! */
+ gchar *comp_str; /* do not free this! */
/* data->data is "source_uid\ncomponent_string" */
- comp_str = strchr ((char *)data->data, '\n');
+ comp_str = strchr ((gchar *)data->data, '\n');
if (comp_str) {
comp_str [0] = 0;
comp_str++;
@@ -1003,7 +1003,7 @@ selector_tree_data_dropped (ESourceSelector *selector,
icalcomp = icalparser_parse_string (comp_str);
if (icalcomp) {
- success = cal_comp_process_source_list_drop (client, icalcomp, action, (char *)data->data, component->priv->source_list);
+ success = cal_comp_process_source_list_drop (client, icalcomp, action, (gchar *)data->data, component->priv->source_list);
icalcomponent_free (icalcomp);
}
}
@@ -1045,7 +1045,7 @@ setup_create_ecal (CalendarComponent *calendar_component, CalendarComponentView
{
CalendarComponentPrivate *priv;
ESource *source = NULL;
- char *uid;
+ gchar *uid;
guint not;
priv = calendar_component->priv;
@@ -1160,7 +1160,7 @@ create_new_event (CalendarComponent *calendar_component, CalendarComponentView *
}
static void
-create_local_item_cb (EUserCreatableItemsHandler *handler, const char *item_type_name, void *data)
+create_local_item_cb (EUserCreatableItemsHandler *handler, const gchar *item_type_name, gpointer data)
{
CalendarComponent *calendar_component = data;
CalendarComponentPrivate *priv;
@@ -1434,36 +1434,36 @@ impl__get_userCreatableItems (PortableServer_Servant servant,
CORBA_sequence_set_release (list, FALSE);
- list->_buffer[0].id = (char *) CREATE_EVENT_ID;
- list->_buffer[0].description = (char *) _("New appointment");
- list->_buffer[0].menuDescription = (char *) C_("New", "_Appointment");
- list->_buffer[0].tooltip = (char *) _("Create a new appointment");
+ list->_buffer[0].id = (gchar *) CREATE_EVENT_ID;
+ list->_buffer[0].description = (gchar *) _("New appointment");
+ list->_buffer[0].menuDescription = (gchar *) C_("New", "_Appointment");
+ list->_buffer[0].tooltip = (gchar *) _("Create a new appointment");
list->_buffer[0].menuShortcut = 'a';
- list->_buffer[0].iconName = (char *) "appointment-new";
+ list->_buffer[0].iconName = (gchar *) "appointment-new";
list->_buffer[0].type = GNOME_Evolution_CREATABLE_OBJECT;
- list->_buffer[1].id = (char *) CREATE_MEETING_ID;
- list->_buffer[1].description = (char *) _("New meeting");
- list->_buffer[1].menuDescription = (char *) C_("New", "M_eeting");
- list->_buffer[1].tooltip = (char *) _("Create a new meeting request");
+ list->_buffer[1].id = (gchar *) CREATE_MEETING_ID;
+ list->_buffer[1].description = (gchar *) _("New meeting");
+ list->_buffer[1].menuDescription = (gchar *) C_("New", "M_eeting");
+ list->_buffer[1].tooltip = (gchar *) _("Create a new meeting request");
list->_buffer[1].menuShortcut = 'e';
- list->_buffer[1].iconName = (char *) "stock_new-meeting";
+ list->_buffer[1].iconName = (gchar *) "stock_new-meeting";
list->_buffer[1].type = GNOME_Evolution_CREATABLE_OBJECT;
- list->_buffer[2].id = (char *) CREATE_ALLDAY_EVENT_ID;
- list->_buffer[2].description = (char *) _("New all day appointment");
- list->_buffer[2].menuDescription = (char *) C_("New", "All Day A_ppointment");
- list->_buffer[2].tooltip = (char *) _("Create a new all-day appointment");
+ list->_buffer[2].id = (gchar *) CREATE_ALLDAY_EVENT_ID;
+ list->_buffer[2].description = (gchar *) _("New all day appointment");
+ list->_buffer[2].menuDescription = (gchar *) C_("New", "All Day A_ppointment");
+ list->_buffer[2].tooltip = (gchar *) _("Create a new all-day appointment");
list->_buffer[2].menuShortcut = '\0';
- list->_buffer[2].iconName = (char *) "stock_new-24h-appointment";
+ list->_buffer[2].iconName = (gchar *) "stock_new-24h-appointment";
list->_buffer[2].type = GNOME_Evolution_CREATABLE_OBJECT;
- list->_buffer[3].id = (char *) CREATE_CALENDAR_ID;
- list->_buffer[3].description = (char *) _("New calendar");
- list->_buffer[3].menuDescription = (char *) C_("New", "Cale_ndar");
- list->_buffer[3].tooltip = (char *) _("Create a new calendar");
+ list->_buffer[3].id = (gchar *) CREATE_CALENDAR_ID;
+ list->_buffer[3].description = (gchar *) _("New calendar");
+ list->_buffer[3].menuDescription = (gchar *) C_("New", "Cale_ndar");
+ list->_buffer[3].tooltip = (gchar *) _("Create a new calendar");
list->_buffer[3].menuShortcut = '\0';
- list->_buffer[3].iconName = (char *) "x-office-calendar";
+ list->_buffer[3].iconName = (gchar *) "x-office-calendar";
list->_buffer[3].type = GNOME_Evolution_CREATABLE_FOLDER;
return list;
@@ -1637,13 +1637,13 @@ calendar_component_peek (void)
return component;
}
-const char *
+const gchar *
calendar_component_peek_base_directory (CalendarComponent *component)
{
return component->priv->base_directory;
}
-const char *
+const gchar *
calendar_component_peek_config_directory (CalendarComponent *component)
{
return component->priv->config_directory;
diff --git a/calendar/gui/calendar-component.h b/calendar/gui/calendar-component.h
index 1fbcdbc487..851c4c3237 100644
--- a/calendar/gui/calendar-component.h
+++ b/calendar/gui/calendar-component.h
@@ -58,8 +58,8 @@ GType calendar_component_get_type (void);
CalendarComponent *calendar_component_peek (void);
-const char *calendar_component_peek_base_directory (CalendarComponent *component);
-const char *calendar_component_peek_config_directory (CalendarComponent *component);
+const gchar *calendar_component_peek_base_directory (CalendarComponent *component);
+const gchar *calendar_component_peek_config_directory (CalendarComponent *component);
ESourceList *calendar_component_peek_source_list (CalendarComponent *component);
EActivityHandler *calendar_component_peek_activity_handler (CalendarComponent *component);
void calendar_component_show_logger (gpointer);
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index ffd398bd69..58f77968d6 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -73,7 +73,7 @@ calendar_config_remove_notification (guint id)
gboolean
calendar_config_locale_supports_12_hour_format (void)
{
- char s[16];
+ gchar s[16];
time_t t = 0;
calendar_config_init ();
@@ -83,7 +83,7 @@ calendar_config_locale_supports_12_hour_format (void)
}
/* Returns the string representation of a units value */
-static const char *
+static const gchar *
units_to_string (CalUnits units)
{
switch (units) {
@@ -103,7 +103,7 @@ units_to_string (CalUnits units)
/* opposite function to 'units_to_string' */
static CalUnits
-string_to_units (const char *units)
+string_to_units (const gchar *units)
{
CalUnits res;
@@ -151,7 +151,7 @@ calendar_config_add_notification_calendars_selected (GConfClientNotifyFunc func,
}
/* The primary calendar */
-char *
+gchar *
calendar_config_get_primary_calendar (void)
{
calendar_config_init ();
@@ -160,7 +160,7 @@ calendar_config_get_primary_calendar (void)
}
void
-calendar_config_set_primary_calendar (const char *primary_uid)
+calendar_config_set_primary_calendar (const gchar *primary_uid)
{
calendar_config_init ();
@@ -233,7 +233,7 @@ calendar_config_get_timezone_stored (void)
icaltimezone *
calendar_config_get_icaltimezone (void)
{
- char *location;
+ gchar *location;
icaltimezone *zone = NULL;
calendar_config_init ();
@@ -618,9 +618,9 @@ calendar_config_add_notification_month_scroll_by_week (GConfClientNotifyFunc fun
/* Whether we show the Marcus Bains Line (current time), and in what colors. */
void
-calendar_config_get_marcus_bains (gboolean *show_line, const char **dayview_color, const char **timebar_color)
+calendar_config_get_marcus_bains (gboolean *show_line, const gchar **dayview_color, const gchar **timebar_color)
{
- static char *dcolor = NULL, *tcolor = NULL;
+ static gchar *dcolor = NULL, *tcolor = NULL;
calendar_config_init ();
@@ -855,7 +855,7 @@ calendar_config_add_notification_tasks_selected (GConfClientNotifyFunc func, gpo
}
/* The primary task list */
-char *
+gchar *
calendar_config_get_primary_tasks (void)
{
calendar_config_init ();
@@ -864,7 +864,7 @@ calendar_config_get_primary_tasks (void)
}
void
-calendar_config_set_primary_tasks (const char *primary_uid)
+calendar_config_set_primary_tasks (const gchar *primary_uid)
{
calendar_config_init ();
@@ -933,7 +933,7 @@ calendar_config_add_notification_memos_selected (GConfClientNotifyFunc func, gpo
}
/* The primary memo list */
-char *
+gchar *
calendar_config_get_primary_memos (void)
{
calendar_config_init ();
@@ -942,7 +942,7 @@ calendar_config_get_primary_memos (void)
}
void
-calendar_config_set_primary_memos (const char *primary_uid)
+calendar_config_set_primary_memos (const gchar *primary_uid)
{
calendar_config_init ();
@@ -1086,7 +1086,7 @@ calendar_config_add_notification_hide_completed_tasks (GConfClientNotifyFunc fun
CalUnits
calendar_config_get_hide_completed_tasks_units (void)
{
- char *units;
+ gchar *units;
CalUnits cu;
calendar_config_init ();
@@ -1109,7 +1109,7 @@ calendar_config_get_hide_completed_tasks_units (void)
void
calendar_config_set_hide_completed_tasks_units (CalUnits cu)
{
- char *units;
+ gchar *units;
calendar_config_init ();
@@ -1384,7 +1384,7 @@ calendar_config_set_use_default_reminder (gboolean value)
*
* Return value: Interval for default reminders.
**/
-int
+gint
calendar_config_get_default_reminder_interval (void)
{
calendar_config_init ();
@@ -1400,7 +1400,7 @@ calendar_config_get_default_reminder_interval (void)
* appointments.
**/
void
-calendar_config_set_default_reminder_interval (int interval)
+calendar_config_set_default_reminder_interval (gint interval)
{
calendar_config_init ();
@@ -1418,7 +1418,7 @@ calendar_config_set_default_reminder_interval (int interval)
CalUnits
calendar_config_get_default_reminder_units (void)
{
- char *units;
+ gchar *units;
CalUnits cu;
calendar_config_init ();
@@ -1455,7 +1455,7 @@ calendar_config_set_default_reminder_units (CalUnits units)
* are retrieved even when returns FALSE.
**/
gboolean
-calendar_config_get_ba_reminder (int *interval, CalUnits *units)
+calendar_config_get_ba_reminder (gint *interval, CalUnits *units)
{
calendar_config_init ();
@@ -1464,7 +1464,7 @@ calendar_config_get_ba_reminder (int *interval, CalUnits *units)
}
if (units) {
- char *str;
+ gchar *str;
str = gconf_client_get_string (config, CALENDAR_CONFIG_BA_REMINDER_UNITS, NULL);
*units = string_to_units (str);
@@ -1483,7 +1483,7 @@ calendar_config_get_ba_reminder (int *interval, CalUnits *units)
* @units: The units of the reminder; can be NULL.
**/
void
-calendar_config_set_ba_reminder (gboolean *enabled, int *interval, CalUnits *units)
+calendar_config_set_ba_reminder (gboolean *enabled, gint *interval, CalUnits *units)
{
calendar_config_init ();
@@ -1505,10 +1505,10 @@ calendar_config_set_ba_reminder (gboolean *enabled, int *interval, CalUnits *uni
* Returns the subexpression to use to filter out completed tasks according
* to the config settings. The returned sexp should be freed.
**/
-char*
+gchar *
calendar_config_get_hide_completed_tasks_sexp (gboolean get_completed)
{
- char *sexp = NULL;
+ gchar *sexp = NULL;
if (calendar_config_get_hide_completed_tasks ()) {
CalUnits units;
@@ -1525,7 +1525,7 @@ calendar_config_get_hide_completed_tasks_sexp (gboolean get_completed)
else
sexp = g_strdup ("(is-completed?)");
} else {
- char *isodate;
+ gchar *isodate;
icaltimezone *zone;
struct icaltimetype tt;
time_t t;
@@ -1603,10 +1603,10 @@ calendar_config_set_dir_path (const gchar *path)
gconf_client_set_string (config, CALENDAR_CONFIG_SAVE_DIR, path, NULL);
}
-char *
+gchar *
calendar_config_get_dir_path (void)
{
- char *path;
+ gchar *path;
calendar_config_init ();
@@ -1641,14 +1641,14 @@ calendar_config_free_day_second_zones (GSList *zones)
/* keeps max 'day_second_zones_max' zones, if 'location' is already in a list, then it'll became first there */
void
-calendar_config_set_day_second_zone (const char *location)
+calendar_config_set_day_second_zone (const gchar *location)
{
calendar_config_init ();
if (location && *location) {
GSList *lst, *l;
GError *error = NULL;
- int max_zones;
+ gint max_zones;
/* configurable max number of timezones to remember */
max_zones = gconf_client_get_int (config, CALENDAR_CONFIG_DAY_SECOND_ZONES_MAX, &error);
@@ -1666,7 +1666,7 @@ calendar_config_set_day_second_zone (const char *location)
if (l->data && g_str_equal (l->data, location)) {
if (l != lst) {
/* isn't first in the list */
- char *val = l->data;
+ gchar *val = l->data;
lst = g_slist_remove (lst, val);
lst = g_slist_prepend (lst, val);
@@ -1695,7 +1695,7 @@ calendar_config_set_day_second_zone (const char *location)
}
/* location of the second time zone user has selected. Free with g_free. */
-char *
+gchar *
calendar_config_get_day_second_zone (void)
{
calendar_config_init ();
@@ -1709,7 +1709,7 @@ calendar_config_select_day_second_zone (void)
icaltimezone *zone = NULL;
ETimezoneDialog *tzdlg;
GtkWidget *dialog;
- char *second_location;
+ gchar *second_location;
second_location = calendar_config_get_day_second_zone ();
if (second_location && *second_location)
@@ -1725,7 +1725,7 @@ calendar_config_select_day_second_zone (void)
dialog = e_timezone_dialog_get_toplevel (tzdlg);
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
- const char *location = NULL;
+ const gchar *location = NULL;
zone = e_timezone_dialog_get_timezone (tzdlg);
if (zone == icaltimezone_get_utc_timezone ()) {
diff --git a/calendar/gui/calendar-config.h b/calendar/gui/calendar-config.h
index ff4e69d008..c4f264c230 100644
--- a/calendar/gui/calendar-config.h
+++ b/calendar/gui/calendar-config.h
@@ -69,8 +69,8 @@ void calendar_config_set_calendars_selected (GSList *selected);
guint calendar_config_add_notification_calendars_selected (GConfClientNotifyFunc func, gpointer data);
/* The primary calendar */
-char *calendar_config_get_primary_calendar (void);
-void calendar_config_set_primary_calendar (const char *primary_uid);
+gchar *calendar_config_get_primary_calendar (void);
+void calendar_config_set_primary_calendar (const gchar *primary_uid);
guint calendar_config_add_notification_primary_calendar (GConfClientNotifyFunc func, gpointer data);
/* Use system timezone; if TRUE, then influences also the current timezone functions. */
@@ -79,8 +79,8 @@ void calendar_config_set_use_system_timezone (gboolean use);
guint calendar_config_add_notification_use_system_timezone (GConfClientNotifyFunc func, gpointer data);
/* The current timezone, e.g. "Europe/London". */
-gchar* calendar_config_get_timezone (void);
-gchar* calendar_config_get_timezone_stored (void);
+gchar * calendar_config_get_timezone (void);
+gchar * calendar_config_get_timezone_stored (void);
icaltimezone *calendar_config_get_icaltimezone (void);
void calendar_config_set_timezone (const gchar *timezone);
guint calendar_config_add_notification_timezone (GConfClientNotifyFunc func, gpointer data);
@@ -142,7 +142,7 @@ void calendar_config_set_time_divisions (gint divisions);
guint calendar_config_add_notification_time_divisions (GConfClientNotifyFunc func, gpointer data);
/* Whether we show the Marcus Bains Line, and in what colors. */
-void calendar_config_get_marcus_bains (gboolean *show_line, const char **dayview_color, const char **timebar_color);
+void calendar_config_get_marcus_bains (gboolean *show_line, const gchar **dayview_color, const gchar **timebar_color);
void calendar_config_add_notification_marcus_bains (GConfClientNotifyFunc func, gpointer data, gint *not_show, gint *not_dcolor, gint *not_tcolor);
/* Whether we show event end times. */
@@ -191,8 +191,8 @@ void calendar_config_set_tasks_selected (GSList *selected);
guint calendar_config_add_notification_tasks_selected (GConfClientNotifyFunc func, gpointer data);
/* The primary calendar */
-char *calendar_config_get_primary_tasks (void);
-void calendar_config_set_primary_tasks (const char *primary_uid);
+gchar *calendar_config_get_primary_tasks (void);
+void calendar_config_set_primary_tasks (const gchar *primary_uid);
guint calendar_config_add_notification_primary_tasks (GConfClientNotifyFunc func, gpointer data);
/* The pane position */
@@ -206,8 +206,8 @@ void calendar_config_set_memos_selected (GSList *selected);
guint calendar_config_add_notification_memos_selected (GConfClientNotifyFunc func, gpointer data);
/* The primary calendar */
-char *calendar_config_get_primary_memos (void);
-void calendar_config_set_primary_memos (const char *primary_uid);
+gchar *calendar_config_get_primary_memos (void);
+void calendar_config_set_primary_memos (const gchar *primary_uid);
guint calendar_config_add_notification_primary_memos (GConfClientNotifyFunc func, gpointer data);
/* Colors for the task list */
@@ -230,7 +230,7 @@ gint calendar_config_get_hide_completed_tasks_value(void);
void calendar_config_set_hide_completed_tasks_value(gint value);
guint calendar_config_add_notification_hide_completed_tasks_value (GConfClientNotifyFunc func, gpointer data);
-char * calendar_config_get_hide_completed_tasks_sexp (gboolean get_completed);
+gchar * calendar_config_get_hide_completed_tasks_sexp (gboolean get_completed);
/* Confirmation options */
gboolean calendar_config_get_confirm_delete (void);
@@ -243,8 +243,8 @@ void calendar_config_set_confirm_purge (gboolean confirm);
gboolean calendar_config_get_use_default_reminder (void);
void calendar_config_set_use_default_reminder (gboolean value);
-int calendar_config_get_default_reminder_interval (void);
-void calendar_config_set_default_reminder_interval (int interval);
+gint calendar_config_get_default_reminder_interval (void);
+void calendar_config_set_default_reminder_interval (gint interval);
CalUnits calendar_config_get_default_reminder_units (void);
void calendar_config_set_default_reminder_units (CalUnits units);
@@ -262,19 +262,19 @@ guint calendar_config_add_notification_free_busy_template (GConfClientNotifyFunc
supports 12-hour time format. */
gboolean calendar_config_locale_supports_12_hour_format(void);
-void calendar_config_set_dir_path (const char *);
-char * calendar_config_get_dir_path (void);
+void calendar_config_set_dir_path (const gchar *);
+gchar * calendar_config_get_dir_path (void);
GSList *calendar_config_get_day_second_zones (void);
void calendar_config_free_day_second_zones (GSList *zones);
-void calendar_config_set_day_second_zone (const char *location);
-char * calendar_config_get_day_second_zone (void);
+void calendar_config_set_day_second_zone (const gchar *location);
+gchar * calendar_config_get_day_second_zone (void);
void calendar_config_select_day_second_zone (void);
guint calendar_config_add_notification_day_second_zone (GConfClientNotifyFunc func, gpointer data);
/* Birthdays & Anniversaries reminder settings */
-gboolean calendar_config_get_ba_reminder (int *interval, CalUnits *units);
-void calendar_config_set_ba_reminder (gboolean *enabled, int *interval, CalUnits *units);
+gboolean calendar_config_get_ba_reminder (gint *interval, CalUnits *units);
+void calendar_config_set_ba_reminder (gboolean *enabled, gint *interval, CalUnits *units);
/* Scroll in a month view by a week, not by a month */
gboolean calendar_config_get_month_scroll_by_week (void);
diff --git a/calendar/gui/calendar-view-factory.c b/calendar/gui/calendar-view-factory.c
index 8d167f44de..95497b1782 100644
--- a/calendar/gui/calendar-view-factory.c
+++ b/calendar/gui/calendar-view-factory.c
@@ -43,9 +43,9 @@ struct _CalendarViewFactoryPrivate {
static void calendar_view_factory_finalize (GObject *object);
-static const char *calendar_view_factory_get_title (GalViewFactory *factory);
-static const char *calendar_view_factory_get_type_code (GalViewFactory *factory);
-static GalView *calendar_view_factory_new_view (GalViewFactory *factory, const char *name);
+static const gchar *calendar_view_factory_get_title (GalViewFactory *factory);
+static const gchar *calendar_view_factory_get_type_code (GalViewFactory *factory);
+static GalView *calendar_view_factory_new_view (GalViewFactory *factory, const gchar *name);
G_DEFINE_TYPE (CalendarViewFactory, calendar_view_factory, GAL_VIEW_FACTORY_TYPE)
@@ -99,7 +99,7 @@ calendar_view_factory_finalize (GObject *object)
/* get_title method for the calendar view factory */
-static const char *
+static const gchar *
calendar_view_factory_get_title (GalViewFactory *factory)
{
CalendarViewFactory *cal_view_factory;
@@ -127,7 +127,7 @@ calendar_view_factory_get_title (GalViewFactory *factory)
}
/* get_type_code method for the calendar view factory */
-static const char *
+static const gchar *
calendar_view_factory_get_type_code (GalViewFactory *factory)
{
CalendarViewFactory *cal_view_factory;
@@ -156,7 +156,7 @@ calendar_view_factory_get_type_code (GalViewFactory *factory)
/* new_view method for the calendar view factory */
static GalView *
-calendar_view_factory_new_view (GalViewFactory *factory, const char *name)
+calendar_view_factory_new_view (GalViewFactory *factory, const gchar *name)
{
CalendarViewFactory *cal_view_factory;
CalendarViewFactoryPrivate *priv;
diff --git a/calendar/gui/calendar-view.c b/calendar/gui/calendar-view.c
index 5415affdf2..b316771ca1 100644
--- a/calendar/gui/calendar-view.c
+++ b/calendar/gui/calendar-view.c
@@ -36,18 +36,18 @@ struct _CalendarViewPrivate {
GnomeCalendarViewType view_type;
/* Title of the view */
- char *title;
+ gchar *title;
};
static void calendar_view_finalize (GObject *object);
-static void calendar_view_load (GalView *view, const char *filename);
-static void calendar_view_save (GalView *view, const char *filename);
-static const char *calendar_view_get_title (GalView *view);
-static void calendar_view_set_title (GalView *view, const char *title);
-static const char *calendar_view_get_type_code (GalView *view);
+static void calendar_view_load (GalView *view, const gchar *filename);
+static void calendar_view_save (GalView *view, const gchar *filename);
+static const gchar *calendar_view_get_title (GalView *view);
+static void calendar_view_set_title (GalView *view, const gchar *title);
+static const gchar *calendar_view_get_type_code (GalView *view);
static GalView *calendar_view_clone (GalView *view);
G_DEFINE_TYPE (CalendarView, calendar_view, GAL_VIEW_TYPE)
@@ -114,20 +114,20 @@ calendar_view_finalize (GObject *object)
/* load method of the calendar view */
static void
-calendar_view_load (GalView *view, const char *filename)
+calendar_view_load (GalView *view, const gchar *filename)
{
/* nothing */
}
/* save method of the calendar view */
static void
-calendar_view_save (GalView *view, const char *filename)
+calendar_view_save (GalView *view, const gchar *filename)
{
/* nothing */
}
/* get_title method of the calendar view */
-static const char *
+static const gchar *
calendar_view_get_title (GalView *view)
{
CalendarView *cal_view;
@@ -136,12 +136,12 @@ calendar_view_get_title (GalView *view)
cal_view = CALENDAR_VIEW (view);
priv = cal_view->priv;
- return (const char *) priv->title;
+ return (const gchar *) priv->title;
}
/* set_title method of the calendar view */
static void
-calendar_view_set_title (GalView *view, const char *title)
+calendar_view_set_title (GalView *view, const gchar *title)
{
CalendarView *cal_view;
CalendarViewPrivate *priv;
@@ -156,7 +156,7 @@ calendar_view_set_title (GalView *view, const char *title)
}
/* get_type_code method for the calendar view */
-static const char *
+static const gchar *
calendar_view_get_type_code (GalView *view)
{
CalendarView *cal_view;
@@ -219,7 +219,7 @@ calendar_view_clone (GalView *view)
CalendarView *
calendar_view_construct (CalendarView *cal_view,
GnomeCalendarViewType view_type,
- const char *title)
+ const gchar *title)
{
CalendarViewPrivate *priv;
@@ -245,7 +245,7 @@ calendar_view_construct (CalendarView *cal_view,
* Return value: A newly-created calendar view.
**/
CalendarView *
-calendar_view_new (GnomeCalendarViewType view_type, const char *title)
+calendar_view_new (GnomeCalendarViewType view_type, const gchar *title)
{
CalendarView *cal_view;
diff --git a/calendar/gui/calendar-view.h b/calendar/gui/calendar-view.h
index 51e3235c34..a3c4a54012 100644
--- a/calendar/gui/calendar-view.h
+++ b/calendar/gui/calendar-view.h
@@ -57,10 +57,10 @@ GType calendar_view_get_type (void);
CalendarView *calendar_view_construct (CalendarView *cal_view,
GnomeCalendarViewType view_type,
- const char *title);
+ const gchar *title);
CalendarView *calendar_view_new (GnomeCalendarViewType view_type,
- const char *title);
+ const gchar *title);
GnomeCalendarViewType calendar_view_get_view_type (CalendarView *cal_view);
diff --git a/calendar/gui/comp-editor-factory.c b/calendar/gui/comp-editor-factory.c
index b98f7170ed..a217254b18 100644
--- a/calendar/gui/comp-editor-factory.c
+++ b/calendar/gui/comp-editor-factory.c
@@ -56,7 +56,7 @@ typedef struct {
union {
struct {
- char *uid;
+ gchar *uid;
} existing;
struct {
@@ -71,13 +71,13 @@ typedef struct {
CompEditorFactory *factory;
/* Uri of the calendar, used as key in the clients hash table */
- char *uri;
+ gchar *uri;
/* Client of the calendar */
ECal *client;
/* Count editors using this client */
- int editor_count;
+ gint editor_count;
/* Pending requests; they are pending if the client is still being opened */
GSList *pending;
@@ -232,7 +232,7 @@ editor_destroy_cb (GtkObject *object, gpointer data)
/* Starts editing an existing component on a client that is already open */
static void
-edit_existing (OpenClient *oc, const char *uid)
+edit_existing (OpenClient *oc, const gchar *uid)
{
ECalComponent *comp;
icalcomponent *icalcomp;
@@ -451,7 +451,7 @@ cal_opened_cb (ECal *client, ECalendarStatus status, gpointer data)
* open request.
*/
static OpenClient *
-open_client (CompEditorFactory *factory, ECalSourceType source_type, const char *uristr)
+open_client (CompEditorFactory *factory, ECalSourceType source_type, const gchar *uristr)
{
CompEditorFactoryPrivate *priv;
ECal *client;
@@ -495,7 +495,7 @@ open_client (CompEditorFactory *factory, ECalSourceType source_type, const char
* NULL on failure; in the latter case it sets the ev exception.
*/
static OpenClient *
-lookup_open_client (CompEditorFactory *factory, ECalSourceType source_type, const char *str_uri, CORBA_Environment *ev)
+lookup_open_client (CompEditorFactory *factory, ECalSourceType source_type, const gchar *str_uri, CORBA_Environment *ev)
{
CompEditorFactoryPrivate *priv;
OpenClient *oc;
@@ -526,7 +526,7 @@ lookup_open_client (CompEditorFactory *factory, ECalSourceType source_type, cons
/* Queues a request for editing an existing object */
static void
-queue_edit_existing (OpenClient *oc, const char *uid)
+queue_edit_existing (OpenClient *oc, const gchar *uid)
{
Request *request;
diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c
index 153dc089ec..49b43900d5 100644
--- a/calendar/gui/comp-util.c
+++ b/calendar/gui/comp-util.c
@@ -70,7 +70,7 @@ cal_comp_util_add_exdate (ECalComponent *comp, time_t t, icaltimezone *zone)
/* Returns TRUE if the TZIDs are equivalent, i.e. both NULL or the same. */
static gboolean
-e_cal_component_compare_tzid (const char *tzid1, const char *tzid2)
+e_cal_component_compare_tzid (const gchar *tzid1, const gchar *tzid2)
{
gboolean retval = TRUE;
@@ -103,10 +103,10 @@ cal_comp_util_compare_event_timezones (ECalComponent *comp,
icaltimezone *zone)
{
ECalComponentDateTime start_datetime, end_datetime;
- const char *tzid;
+ const gchar *tzid;
gboolean retval = FALSE;
icaltimezone *start_zone, *end_zone;
- int offset1, offset2;
+ gint offset1, offset2;
tzid = icaltimezone_get_tzid (zone);
@@ -211,8 +211,8 @@ cal_comp_util_compare_event_timezones (ECalComponent *comp,
gboolean
cal_comp_is_on_server (ECalComponent *comp, ECal *client)
{
- const char *uid;
- char *rid = NULL;
+ const gchar *uid;
+ gchar *rid = NULL;
icalcomponent *icalcomp;
GError *error = NULL;
@@ -287,7 +287,7 @@ cal_comp_event_new_with_defaults (ECal *client)
{
icalcomponent *icalcomp;
ECalComponent *comp;
- int interval;
+ gint interval;
CalUnits units;
ECalComponentAlarm *alarm;
icalproperty *icalprop;
@@ -446,11 +446,11 @@ cal_comp_util_get_n_icons (ECalComponent *comp)
e_cal_component_get_categories_list (comp, &categories_list);
for (elem = categories_list; elem; elem = elem->next) {
- char *category;
+ gchar *category;
GdkPixmap *pixmap = NULL;
GdkBitmap *mask = NULL;
- category = (char *) elem->data;
+ category = (gchar *) elem->data;
if (e_categories_config_get_icon_for (category, &pixmap, &mask)) {
num_icons++;
g_object_unref (pixmap);
@@ -488,7 +488,7 @@ cal_comp_selection_set_string_list (GtkSelectionData *data, GSList *str_list)
const guint8 *c = p->data;
if (c)
- g_byte_array_append (array, c, strlen ((const char *) c) + 1);
+ g_byte_array_append (array, c, strlen ((const gchar *) c) + 1);
}
gtk_selection_data_set (data, data->target, 8, array->data, array->len);
@@ -509,17 +509,17 @@ GSList *
cal_comp_selection_get_string_list (GtkSelectionData *data)
{
/* format is "str1\0str2\0...strN\0" */
- char *inptr, *inend;
+ gchar *inptr, *inend;
GSList *list;
g_return_val_if_fail (data != NULL, NULL);
list = NULL;
- inptr = (char *)data->data;
- inend = (char *)(data->data + data->length);
+ inptr = (gchar *)data->data;
+ inend = (gchar *)(data->data + data->length);
while (inptr < inend) {
- char *start = inptr;
+ gchar *start = inptr;
while (inptr < inend && *inptr)
inptr++;
@@ -533,7 +533,7 @@ cal_comp_selection_get_string_list (GtkSelectionData *data)
}
static void
-datetime_to_zone (ECal *client, ECalComponentDateTime *date, const char *tzid)
+datetime_to_zone (ECal *client, ECalComponentDateTime *date, const gchar *tzid)
{
icaltimezone *from, *to;
@@ -612,8 +612,8 @@ cal_comp_set_dtend_with_oldzone (ECal *client, ECalComponent *comp, const ECalCo
static gboolean
update_single_object (ECal *client, icalcomponent *icalcomp, gboolean fail_on_modify)
{
- const char *uid;
- char *tmp;
+ const gchar *uid;
+ gchar *tmp;
icalcomponent *tmp_icalcomp;
gboolean res;
@@ -688,10 +688,10 @@ update_objects (ECal *client, icalcomponent *icalcomp)
* @return Whether was the operation successful.
**/
gboolean
-cal_comp_process_source_list_drop (ECal *destination, icalcomponent *comp, GdkDragAction action, const char *source_uid, ESourceList *source_list)
+cal_comp_process_source_list_drop (ECal *destination, icalcomponent *comp, GdkDragAction action, const gchar *source_uid, ESourceList *source_list)
{
- const char * uid;
- char *old_uid = NULL;
+ const gchar * uid;
+ gchar *old_uid = NULL;
icalcomponent *tmp_icalcomp = NULL;
GError *error = NULL;
gboolean success = FALSE;
@@ -703,7 +703,7 @@ cal_comp_process_source_list_drop (ECal *destination, icalcomponent *comp, GdkDr
/* FIXME deal with GDK_ACTION_ASK */
if (action == GDK_ACTION_COPY) {
- char *tmp;
+ gchar *tmp;
old_uid = g_strdup (icalcomponent_get_uid (comp));
tmp = e_cal_component_gen_uid ();
@@ -804,7 +804,7 @@ comp_util_sanitize_recurrence_master (ECalComponent *comp, ECal *client)
icalcomponent *icalcomp = NULL;
ECalComponentRange rid;
ECalComponentDateTime sdt;
- const char *uid;
+ const gchar *uid;
/* Get the master component */
e_cal_component_get_uid (comp, &uid);
@@ -822,7 +822,7 @@ comp_util_sanitize_recurrence_master (ECalComponent *comp, ECal *client)
if (rid.datetime.value && sdt.value && icaltime_compare_date_only (*rid.datetime.value, *sdt.value) == 0) {
ECalComponentDateTime msdt, medt, edt;
- int *sequence;
+ gint *sequence;
e_cal_component_get_dtstart (master, &msdt);
e_cal_component_get_dtend (master, &medt);
diff --git a/calendar/gui/comp-util.h b/calendar/gui/comp-util.h
index 3faf9f49a8..f6090543a5 100644
--- a/calendar/gui/comp-util.h
+++ b/calendar/gui/comp-util.h
@@ -57,7 +57,7 @@ GSList *cal_comp_selection_get_string_list (GtkSelectionData *data);
void cal_comp_set_dtstart_with_oldzone (ECal *client, ECalComponent *comp, const ECalComponentDateTime *pdate);
void cal_comp_set_dtend_with_oldzone (ECal *client, ECalComponent *comp, const ECalComponentDateTime *pdate);
-gboolean cal_comp_process_source_list_drop (ECal *destination, icalcomponent *comp, GdkDragAction action, const char *source_uid, ESourceList *source_list);
+gboolean cal_comp_process_source_list_drop (ECal *destination, icalcomponent *comp, GdkDragAction action, const gchar *source_uid, ESourceList *source_list);
void comp_util_sanitize_recurrence_master (ECalComponent *comp, ECal *client);
#endif
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c
index 73bfde30cc..ca8a58d528 100644
--- a/calendar/gui/dialogs/alarm-dialog.c
+++ b/calendar/gui/dialogs/alarm-dialog.c
@@ -86,7 +86,7 @@ typedef struct {
GtkWidget *aalarm_file_chooser;
/* Mail alarm widgets */
- const char *email;
+ const gchar *email;
GtkWidget *malarm_group;
GtkWidget *malarm_address_group;
GtkWidget *malarm_addresses;
@@ -103,7 +103,7 @@ typedef struct {
ENameSelector *name_selector;
} Dialog;
-static const char *section_name = "Send To";
+static const gchar *section_name = "Send To";
/* "relative" types */
enum {
@@ -119,7 +119,7 @@ enum {
};
/* Combo box maps */
-static const int action_map[] = {
+static const gint action_map[] = {
E_CAL_COMPONENT_ALARM_DISPLAY,
E_CAL_COMPONENT_ALARM_AUDIO,
E_CAL_COMPONENT_ALARM_PROCEDURE,
@@ -127,27 +127,27 @@ static const int action_map[] = {
-1
};
-static const char *action_map_cap[] = {
+static const gchar *action_map_cap[] = {
CAL_STATIC_CAPABILITY_NO_DISPLAY_ALARMS,
CAL_STATIC_CAPABILITY_NO_AUDIO_ALARMS,
CAL_STATIC_CAPABILITY_NO_PROCEDURE_ALARMS,
CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS
};
-static const int value_map[] = {
+static const gint value_map[] = {
MINUTES,
HOURS,
DAYS,
-1
};
-static const int relative_map[] = {
+static const gint relative_map[] = {
BEFORE,
AFTER,
-1
};
-static const int time_map[] = {
+static const gint time_map[] = {
E_CAL_COMPONENT_ALARM_TRIGGER_RELATIVE_START,
E_CAL_COMPONENT_ALARM_TRIGGER_RELATIVE_END,
-1
@@ -159,7 +159,7 @@ enum duration_units {
DUR_DAYS
};
-static const int duration_units_map[] = {
+static const gint duration_units_map[] = {
DUR_MINUTES,
DUR_HOURS,
DUR_DAYS,
@@ -197,8 +197,8 @@ alarm_to_dialog (Dialog *dialog)
gboolean valid;
gboolean repeat;
ECalComponentAlarmAction action;
- char *email;
- int i;
+ gchar *email;
+ gint i;
/* Clean the page */
clear_widgets (dialog);
@@ -314,7 +314,7 @@ repeat_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
static void
aalarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
{
- char *url;
+ gchar *url;
icalattach *attach;
if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->aalarm_sound)))
@@ -333,7 +333,7 @@ aalarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
static void
alarm_to_aalarm_widgets (Dialog *dialog, ECalComponentAlarm *alarm)
{
- const char *url;
+ const gchar *url;
icalattach *attach;
e_cal_component_alarm_get_attach (alarm, (&attach));
@@ -368,7 +368,7 @@ alarm_to_dalarm_widgets (Dialog *dialog, ECalComponentAlarm *alarm )
static void
dalarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
{
- char *str;
+ gchar *str;
ECalComponentText description;
GtkTextBuffer *text_buffer;
GtkTextIter text_iter_start, text_iter_end;
@@ -394,7 +394,7 @@ dalarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
icalcomp = e_cal_component_alarm_get_icalcomponent (alarm);
icalprop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY);
while (icalprop) {
- const char *x_name;
+ const gchar *x_name;
x_name = icalproperty_get_x_name (icalprop);
if (!strcmp (x_name, "X-EVOLUTION-NEEDS-DESCRIPTION")) {
@@ -410,7 +410,7 @@ dalarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
static void
malarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
{
- char *str;
+ gchar *str;
ECalComponentText description;
GSList *attendee_list = NULL;
GtkTextBuffer *text_buffer;
@@ -468,7 +468,7 @@ malarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
icalcomp = e_cal_component_alarm_get_icalcomponent (alarm);
icalprop = icalcomponent_get_first_property(icalcomp, ICAL_X_PROPERTY);
while (icalprop) {
- const char *x_name;
+ const gchar *x_name;
x_name = icalproperty_get_x_name (icalprop);
if (!strcmp (x_name, "X-EVOLUTION-NEEDS-DESCRIPTION")) {
@@ -489,7 +489,7 @@ alarm_to_malarm_widgets (Dialog *dialog, ECalComponentAlarm *alarm )
ECalComponentText description;
GtkTextBuffer *text_buffer;
GSList *attendee_list, *l;
- int len;
+ gint len;
/* Attendees */
name_selector_model = e_name_selector_peek_model (dialog->name_selector);
@@ -531,7 +531,7 @@ static void
alarm_to_palarm_widgets (Dialog *dialog, ECalComponentAlarm *alarm)
{
ECalComponentText description;
- const char *url;
+ const gchar *url;
icalattach *attach;
e_cal_component_alarm_get_attach (alarm, (&attach));
@@ -551,9 +551,9 @@ alarm_to_palarm_widgets (Dialog *dialog, ECalComponentAlarm *alarm)
static void
palarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
{
- char *program;
+ gchar *program;
icalattach *attach;
- char *str;
+ gchar *str;
ECalComponentText description;
icalcomponent *icalcomp;
icalproperty *icalprop;
@@ -579,7 +579,7 @@ palarm_widgets_to_alarm (Dialog *dialog, ECalComponentAlarm *alarm)
icalcomp = e_cal_component_alarm_get_icalcomponent (alarm);
icalprop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY);
while (icalprop) {
- const char *x_name;
+ const gchar *x_name;
x_name = icalproperty_get_x_name (icalprop);
if (!strcmp (x_name, "X-EVOLUTION-NEEDS-DESCRIPTION")) {
@@ -792,7 +792,7 @@ get_widgets (Dialog *dialog)
#undef GW
if (dialog->action_combo) {
- const char *actions[] = {
+ const gchar *actions[] = {
N_("Pop up an alert"),
N_("Play a sound"),
N_("Run a program"),
@@ -865,7 +865,7 @@ static void
show_options (Dialog *dialog)
{
gboolean repeat;
- char *email;
+ gchar *email;
e_cal_component_alarm_set_action (dialog->alarm,
e_dialog_combo_box_get (dialog->action_combo, action_map));
@@ -943,7 +943,7 @@ repeat_toggle_toggled_cb (GtkToggleButton *toggle, gpointer data)
static void
check_custom_sound (Dialog *dialog)
{
- char *str, *dir;
+ gchar *str, *dir;
gboolean sens;
str = gtk_file_chooser_get_filename (
@@ -985,7 +985,7 @@ aalarm_attach_changed_cb (GtkWidget *widget, gpointer data)
static void
check_custom_message (Dialog *dialog)
{
- char *str;
+ gchar *str;
GtkTextBuffer *text_buffer;
GtkTextIter text_iter_start, text_iter_end;
gboolean sens;
@@ -1024,7 +1024,7 @@ dalarm_description_changed_cb (GtkWidget *widget, gpointer data)
static void
check_custom_program (Dialog *dialog)
{
- char *str;
+ gchar *str;
gboolean sens;
str = e_dialog_editable_get (dialog->palarm_program);
@@ -1044,7 +1044,7 @@ palarm_program_changed_cb (GtkWidget *widget, gpointer data)
static void
check_custom_email (Dialog *dialog)
{
- char *str;
+ gchar *str;
GtkTextBuffer *text_buffer;
GtkTextIter text_iter_start, text_iter_end;
ENameSelectorModel *name_selector_model;
@@ -1100,9 +1100,9 @@ static void
action_changed_cb (GtkWidget *action_combo, gpointer data)
{
Dialog *dialog = data;
- char *dir;
+ gchar *dir;
ECalComponentAlarmAction action;
- int page = 0, i;
+ gint page = 0, i;
action = e_dialog_combo_box_get (dialog->action_combo, action_map);
for (i = 0; action_map[i] != -1 ; i++) {
@@ -1188,8 +1188,8 @@ gboolean
alarm_dialog_run (GtkWidget *parent, ECal *ecal, ECalComponentAlarm *alarm)
{
Dialog dialog;
- int response_id;
- char *gladefile;
+ gint response_id;
+ gchar *gladefile;
g_return_val_if_fail (alarm != NULL, FALSE);
diff --git a/calendar/gui/dialogs/alarm-list-dialog.c b/calendar/gui/dialogs/alarm-list-dialog.c
index 8520b3727b..882f3fd0cc 100644
--- a/calendar/gui/dialogs/alarm-list-dialog.c
+++ b/calendar/gui/dialogs/alarm-list-dialog.c
@@ -263,8 +263,8 @@ gboolean
alarm_list_dialog_run (GtkWidget *parent, ECal *ecal, EAlarmList *list_store)
{
Dialog dialog;
- int response_id;
- char *gladefile;
+ gint response_id;
+ gchar *gladefile;
dialog.ecal = ecal;
dialog.list_store = list_store;
@@ -312,7 +312,7 @@ GtkWidget *
alarm_list_dialog_peek (ECal *ecal, EAlarmList *list_store)
{
Dialog *dialog;
- char *gladefile;
+ gchar *gladefile;
dialog = (Dialog *)g_new (Dialog, 1);
dialog->ecal = ecal;
diff --git a/calendar/gui/dialogs/cal-attachment-select-file.c b/calendar/gui/dialogs/cal-attachment-select-file.c
index 9c502153d3..b33753c42e 100644
--- a/calendar/gui/dialogs/cal-attachment-select-file.c
+++ b/calendar/gui/dialogs/cal-attachment-select-file.c
@@ -42,11 +42,11 @@ enum {
};
static GtkWidget*
-run_selector(CompEditor *editor, const char *title, guint32 flags, gboolean *showinline_p)
+run_selector(CompEditor *editor, const gchar *title, guint32 flags, gboolean *showinline_p)
{
GtkWidget *selection;
GtkWidget *showinline = NULL;
- char *path;
+ gchar *path;
path = g_object_get_data ((GObject *) editor, "attach_path");
@@ -117,12 +117,12 @@ run_selector(CompEditor *editor, const char *title, guint32 flags, gboolean *sho
* Return value: the selected filename, or %NULL if the user
* cancelled.
**/
-char *
-comp_editor_select_file (CompEditor *editor, const char *title, gboolean save_mode)
+gchar *
+comp_editor_select_file (CompEditor *editor, const gchar *title, gboolean save_mode)
{
guint32 flags = save_mode ? SELECTOR_MODE_SAVE : SELECTOR_MODE_MULTI;
GtkWidget *selection;
- char *name = NULL;
+ gchar *name = NULL;
selection = run_selector (editor, title, flags, NULL);
if (selection) {
diff --git a/calendar/gui/dialogs/cal-attachment-select-file.h b/calendar/gui/dialogs/cal-attachment-select-file.h
index 0f965e6c9b..b69a741007 100644
--- a/calendar/gui/dialogs/cal-attachment-select-file.h
+++ b/calendar/gui/dialogs/cal-attachment-select-file.h
@@ -26,8 +26,8 @@
#include "comp-editor.h"
-char *comp_editor_select_file (CompEditor *editor,
- const char *title,
+gchar *comp_editor_select_file (CompEditor *editor,
+ const gchar *title,
gboolean save_mode);
GPtrArray *comp_editor_select_file_attachments (CompEditor *editor,
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index f00adc0f0d..ce6f607b5f 100644
--- a/calendar/gui/dialogs/cal-prefs-dialog.c
+++ b/calendar/gui/dialogs/cal-prefs-dialog.c
@@ -36,21 +36,21 @@
#include <glib/gi18n.h>
#include <string.h>
-static const int week_start_day_map[] = {
+static const gint week_start_day_map[] = {
1, 2, 3, 4, 5, 6, 0, -1
};
-static const int time_division_map[] = {
+static const gint time_division_map[] = {
60, 30, 15, 10, 5, -1
};
/* The following two are kept separate in case we need to re-order each menu individually */
-static const int hide_completed_units_map[] = {
+static const gint hide_completed_units_map[] = {
CAL_MINUTES, CAL_HOURS, CAL_DAYS, -1
};
/* same is used for Birthdays & Anniversaries calendar */
-static const int default_reminder_units_map[] = {
+static const gint default_reminder_units_map[] = {
CAL_MINUTES, CAL_HOURS, CAL_DAYS, -1
};
@@ -92,7 +92,7 @@ calendar_prefs_dialog_init (CalendarPrefsDialog *dialog)
}
static GtkWidget *
-eccp_widget_glade (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, void *data)
+eccp_widget_glade (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data)
{
CalendarPrefsDialog *prefs = data;
@@ -104,7 +104,7 @@ working_days_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
CalWeekdays working_days = 0;
guint32 mask = 1;
- int day;
+ gint day;
for (day = 0; day < 7; day++) {
if (e_dialog_toggle_get (prefs->working_days[day]))
@@ -128,8 +128,8 @@ timezone_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
static void
update_day_second_zone_caption (CalendarPrefsDialog *prefs)
{
- char *location;
- const char *caption;
+ gchar *location;
+ const gchar *caption;
icaltimezone *zone;
g_return_if_fail (prefs != NULL);
@@ -172,7 +172,7 @@ day_second_zone_clicked (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
GtkWidget *menu, *item;
GSList *group = NULL, *recent_zones, *s;
- char *location;
+ gchar *location;
icaltimezone *zone, *second_zone = NULL;
menu = gtk_menu_new ();
@@ -223,7 +223,7 @@ day_second_zone_clicked (GtkWidget *widget, CalendarPrefsDialog *prefs)
static void
start_of_day_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
- int start_hour, start_minute, end_hour, end_minute;
+ gint start_hour, start_minute, end_hour, end_minute;
EDateEdit *start, *end;
start = E_DATE_EDIT (prefs->start_of_day);
@@ -248,7 +248,7 @@ start_of_day_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
static void
end_of_day_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
- int start_hour, start_minute, end_hour, end_minute;
+ gint start_hour, start_minute, end_hour, end_minute;
EDateEdit *start, *end;
start = E_DATE_EDIT (prefs->start_of_day);
@@ -272,7 +272,7 @@ end_of_day_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
static void
week_start_day_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
- int week_start_day;
+ gint week_start_day;
week_start_day = e_dialog_combo_box_get (prefs->week_start_day, week_start_day_map);
calendar_config_set_week_start_day (week_start_day);
@@ -294,7 +294,7 @@ use_24_hour_toggled (GtkToggleButton *toggle, CalendarPrefsDialog *prefs)
static void
time_divisions_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
- int time_divisions;
+ gint time_divisions;
time_divisions = e_dialog_combo_box_get (prefs->time_divisions, time_division_map);
calendar_config_set_time_divisions (time_divisions);
@@ -417,7 +417,7 @@ static void
ba_reminder_interval_changed (GtkWidget *widget, CalendarPrefsDialog *prefs)
{
const gchar *str;
- int value;
+ gint value;
str = gtk_entry_get_text (GTK_ENTRY (widget));
value = (int) g_ascii_strtod (str, NULL);
@@ -492,7 +492,7 @@ update_system_tz_widgets (CalendarPrefsDialog *prefs)
zone = e_cal_util_get_system_timezone ();
if (zone) {
- char *tmp = g_strdup_printf ("(%s)", icaltimezone_get_display_name (zone));
+ gchar *tmp = g_strdup_printf ("(%s)", icaltimezone_get_display_name (zone));
gtk_label_set_text (GTK_LABEL (prefs->system_tz_label), tmp);
g_free (tmp);
} else {
@@ -512,7 +512,7 @@ use_system_tz_changed (GtkWidget *check, CalendarPrefsDialog *prefs)
static void
setup_changes (CalendarPrefsDialog *prefs)
{
- int i;
+ gint i;
for (i = 0; i < 7; i ++)
g_signal_connect (G_OBJECT (prefs->working_days[i]), "toggled", G_CALLBACK (working_days_changed), prefs);
@@ -617,7 +617,7 @@ initialize_selection (ESourceSelector *selector, ESourceList *source_list)
GSList *sources;
for (sources = e_source_group_peek_sources (group); sources; sources = sources->next) {
ESource *source = E_SOURCE (sources->data);
- const char *completion = e_source_get_property (source, "alarm");
+ const gchar *completion = e_source_get_property (source, "alarm");
if (!completion || !g_ascii_strcasecmp (completion, "true")) {
if (!completion)
e_source_set_property (E_SOURCE (source), "alarm", "true");
@@ -648,9 +648,9 @@ show_config (CalendarPrefsDialog *prefs)
gint mask, day, week_start_day, time_divisions;
icaltimezone *zone;
gboolean sensitive, set = FALSE;
- char *location;
+ gchar *location;
CalUnits units;
- int interval;
+ gint interval;
/* Use system timezone */
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (prefs->use_system_tz_check), calendar_config_get_use_system_timezone ());
@@ -753,7 +753,7 @@ static ECalConfigItem eccp_items[] = {
};
static void
-eccp_free (EConfig *ec, GSList *items, void *data)
+eccp_free (EConfig *ec, GSList *items, gpointer data)
{
g_slist_free (items);
}
@@ -764,10 +764,10 @@ calendar_prefs_dialog_construct (CalendarPrefsDialog *prefs)
GladeXML *gui;
ECalConfig *ec;
ECalConfigTargetPrefs *target;
- int i;
+ gint i;
GtkWidget *toplevel;
GSList *l;
- const char *working_day_names[] = {
+ const gchar *working_day_names[] = {
"sun_button",
"mon_button",
"tue_button",
@@ -776,7 +776,7 @@ calendar_prefs_dialog_construct (CalendarPrefsDialog *prefs)
"fri_button",
"sat_button",
};
- char *gladefile;
+ gchar *gladefile;
gladefile = g_build_filename (EVOLUTION_GLADEDIR,
"cal-prefs-dialog.glade",
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c
index 95820b8247..32fbc9bd68 100644
--- a/calendar/gui/dialogs/calendar-setup.c
+++ b/calendar/gui/dialogs/calendar-setup.c
@@ -58,11 +58,11 @@ struct _CalendarSourceDialog {
};
static gboolean
-eccp_check_complete (EConfig *ec, const char *pageid, void *data)
+eccp_check_complete (EConfig *ec, const gchar *pageid, gpointer data)
{
CalendarSourceDialog *sdialog = data;
gboolean valid = TRUE;
- const char *tmp;
+ const gchar *tmp;
ESource *source;
tmp = e_source_peek_name (sdialog->source);
@@ -72,7 +72,7 @@ eccp_check_complete (EConfig *ec, const char *pageid, void *data)
}
static void
-eccp_commit (EConfig *ec, GSList *items, void *data)
+eccp_commit (EConfig *ec, GSList *items, gpointer data)
{
CalendarSourceDialog *sdialog = data;
xmlNodePtr xml;
@@ -80,7 +80,7 @@ eccp_commit (EConfig *ec, GSList *items, void *data)
if (sdialog->original_source) {
const gchar *color_spec;
- xml = xmlNewNode (NULL, (const unsigned char *)"dummy");
+ xml = xmlNewNode (NULL, (const guchar *)"dummy");
e_source_dump_to_xml_node (sdialog->source, xml);
e_source_update_from_xml_node (sdialog->original_source, xml->children, NULL);
xmlFreeNode (xml);
@@ -95,7 +95,7 @@ eccp_commit (EConfig *ec, GSList *items, void *data)
}
static void
-eccp_free (EConfig *ec, GSList *items, void *data)
+eccp_free (EConfig *ec, GSList *items, gpointer data)
{
CalendarSourceDialog *sdialog = data;
@@ -113,7 +113,7 @@ eccp_free (EConfig *ec, GSList *items, void *data)
static void
eccp_type_changed (GtkComboBox *dropdown, CalendarSourceDialog *sdialog)
{
- int id = gtk_combo_box_get_active (dropdown);
+ gint id = gtk_combo_box_get_active (dropdown);
GtkTreeModel *model;
GtkTreeIter iter;
@@ -134,15 +134,15 @@ eccp_type_changed (GtkComboBox *dropdown, CalendarSourceDialog *sdialog)
}
static GtkWidget *
-eccp_get_source_type (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, void *data)
+eccp_get_source_type (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidget *old, gpointer data)
{
static GtkWidget *label, *type;
- int row;
+ gint row;
CalendarSourceDialog *sdialog = data;
ECalConfigTargetSource *t = (ECalConfigTargetSource *) ec->target;
ESource *source = t->source;
ESourceGroup *group = e_source_peek_group (source);
- char *markup;
+ gchar *markup;
if (old)
gtk_widget_destroy (label);
@@ -164,7 +164,7 @@ eccp_get_source_type (EConfig *ec, EConfigItem *item, GtkWidget *parent, GtkWidg
GtkListStore *store;
GtkTreeIter iter;
GSList *l;
- int active = 0, i = 0;
+ gint active = 0, i = 0;
label = gtk_label_new_with_mnemonic(_("_Type:"));
@@ -211,10 +211,10 @@ name_changed (GtkEntry *entry, ECalConfigTargetSource *t)
}
static GtkWidget *
-eccp_get_source_name (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eccp_get_source_name (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
static GtkWidget *label, *entry;
- int row;
+ gint row;
ECalConfigTargetSource *t = (ECalConfigTargetSource *) ec->target;
ESource *source = t->source;
@@ -252,13 +252,13 @@ offline_status_changed_cb (GtkWidget *widget, CalendarSourceDialog *sdialog)
}
static GtkWidget *
-eccp_general_offline (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eccp_general_offline (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
CalendarSourceDialog *sdialog = data;
GtkWidget *offline_setting = NULL;
- const char *offline_sync;
- int row;
- const char *base_uri = e_source_group_peek_base_uri (sdialog->source_group);
+ const gchar *offline_sync;
+ gint row;
+ const gchar *base_uri = e_source_group_peek_base_uri (sdialog->source_group);
gboolean is_local = base_uri && (g_str_has_prefix (base_uri, "file://") || g_str_has_prefix (base_uri, "contacts://"));
offline_sync = e_source_get_property (sdialog->source, "offline_sync");
if (old)
@@ -318,7 +318,7 @@ choose_initial_color (void)
}
static GtkWidget *
-eccp_get_source_color (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, void *data)
+eccp_get_source_color (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, struct _GtkWidget *old, gpointer data)
{
CalendarSourceDialog *sdialog = data;
static GtkWidget *label, *color_button;
@@ -434,9 +434,9 @@ void
calendar_setup_edit_calendar (struct _GtkWindow *parent, ESource *source, ESourceGroup *group)
{
CalendarSourceDialog *sdialog = g_new0 (CalendarSourceDialog, 1);
- char *xml;
+ gchar *xml;
ECalConfig *ec;
- int i;
+ gint i;
GSList *items = NULL;
ECalConfigTargetSource *target;
@@ -491,9 +491,9 @@ void
calendar_setup_edit_task_list (struct _GtkWindow *parent, ESource *source)
{
CalendarSourceDialog *sdialog = g_new0 (CalendarSourceDialog, 1);
- char *xml;
+ gchar *xml;
ECalConfig *ec;
- int i;
+ gint i;
GSList *items = NULL;
ECalConfigTargetSource *target;
@@ -547,9 +547,9 @@ void
calendar_setup_edit_memo_list (struct _GtkWindow *parent, ESource *source)
{
CalendarSourceDialog *sdialog = g_new0 (CalendarSourceDialog, 1);
- char *xml;
+ gchar *xml;
ECalConfig *ec;
- int i;
+ gint i;
GSList *items = NULL;
ECalConfigTargetSource *target;
diff --git a/calendar/gui/dialogs/cancel-comp.c b/calendar/gui/dialogs/cancel-comp.c
index cddd4f8d8d..cdb388e7b9 100644
--- a/calendar/gui/dialogs/cancel-comp.c
+++ b/calendar/gui/dialogs/cancel-comp.c
@@ -67,7 +67,7 @@ gboolean
cancel_component_dialog (GtkWindow *parent, ECal *client, ECalComponent *comp, gboolean deleting)
{
ECalComponentVType vtype;
- const char *id;
+ const gchar *id;
if (deleting && e_cal_get_save_schedules (client))
return TRUE;
diff --git a/calendar/gui/dialogs/changed-comp.c b/calendar/gui/dialogs/changed-comp.c
index d1abc1724d..5fb0240037 100644
--- a/calendar/gui/dialogs/changed-comp.c
+++ b/calendar/gui/dialogs/changed-comp.c
@@ -48,7 +48,7 @@ changed_component_dialog (GtkWindow *parent, ECalComponent *comp, gboolean delet
{
GtkWidget *dialog;
ECalComponentVType vtype;
- char *str;
+ gchar *str;
gint response;
vtype = e_cal_component_get_vtype (comp);
diff --git a/calendar/gui/dialogs/comp-editor-page.c b/calendar/gui/dialogs/comp-editor-page.c
index 93b9cd9304..2281e5d0fc 100644
--- a/calendar/gui/dialogs/comp-editor-page.c
+++ b/calendar/gui/dialogs/comp-editor-page.c
@@ -432,7 +432,7 @@ comp_editor_page_notify_dates_changed (CompEditorPage *page,
*/
void
comp_editor_page_display_validation_error (CompEditorPage *page,
- const char *msg,
+ const gchar *msg,
GtkWidget *field)
{
GtkWidget *dialog;
diff --git a/calendar/gui/dialogs/comp-editor-page.h b/calendar/gui/dialogs/comp-editor-page.h
index 819ea74ccc..a58da9b804 100644
--- a/calendar/gui/dialogs/comp-editor-page.h
+++ b/calendar/gui/dialogs/comp-editor-page.h
@@ -82,7 +82,7 @@ struct _CompEditorPageClass {
/* Notification signals */
- void (* dates_changed) (CompEditorPage *page, const char *dates);
+ void (* dates_changed) (CompEditorPage *page, const gchar *dates);
/* Virtual methods */
@@ -119,7 +119,7 @@ void comp_editor_page_notify_dates_changed
CompEditorPageDates *dates);
void comp_editor_page_display_validation_error
(CompEditorPage *page,
- const char *msg,
+ const gchar *msg,
GtkWidget *field);
G_END_DECLS
diff --git a/calendar/gui/dialogs/comp-editor-util.c b/calendar/gui/dialogs/comp-editor-util.c
index 4666058b51..e9661db372 100644
--- a/calendar/gui/dialogs/comp-editor-util.c
+++ b/calendar/gui/dialogs/comp-editor-util.c
@@ -121,7 +121,7 @@ write_label_piece (struct icaltimetype *tt,
{
struct tm tmp_tm = { 0 };
struct icaltimetype tt_copy = *tt;
- int len;
+ gint len;
/* FIXME: May want to convert the time to an appropriate zone. */
@@ -166,7 +166,7 @@ write_label_piece (struct icaltimetype *tt,
void
comp_editor_date_label (CompEditorPageDates *dates, GtkWidget *label)
{
- char buffer[1024];
+ gchar buffer[1024];
gboolean start_set = FALSE, end_set = FALSE;
gboolean complete_set = FALSE, due_set = FALSE;
@@ -290,13 +290,13 @@ comp_editor_get_current_time (GtkObject *object, gpointer data)
* Return value: The category names stripped of surrounding whitespace
* and separated with commas.
**/
-char *
-comp_editor_strip_categories (const char *categories)
+gchar *
+comp_editor_strip_categories (const gchar *categories)
{
- char *new_categories;
- const char *start, *end;
- const char *p;
- char *new_p;
+ gchar *new_categories;
+ const gchar *start, *end;
+ const gchar *p;
+ gchar *new_p;
if (!categories)
return NULL;
@@ -314,7 +314,7 @@ comp_editor_strip_categories (const char *categories)
if (g_unichar_isspace (c))
continue;
else if (c == ',') {
- int len;
+ gint len;
if (!start)
continue;
@@ -337,7 +337,7 @@ comp_editor_strip_categories (const char *categories)
}
if (start) {
- int len;
+ gint len;
g_return_val_if_fail (start <= end, NULL);
diff --git a/calendar/gui/dialogs/comp-editor-util.h b/calendar/gui/dialogs/comp-editor-util.h
index 5516fe4cc4..3bf8921291 100644
--- a/calendar/gui/dialogs/comp-editor-util.h
+++ b/calendar/gui/dialogs/comp-editor-util.h
@@ -39,6 +39,6 @@ GtkWidget *comp_editor_new_date_edit (gboolean show_date, gboolean show_time,
struct tm comp_editor_get_current_time (GtkObject *object, gpointer data);
-char *comp_editor_strip_categories (const char *categories);
+gchar *comp_editor_strip_categories (const gchar *categories);
#endif
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index cd2dac7a9e..9fe0b3f1ca 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -198,10 +198,10 @@ get_attachment_list (CompEditor *editor)
GtkTreeModel *model;
GtkTreeIter iter;
GSList *list = NULL;
- const char *comp_uid = NULL;
- const char *local_store = e_cal_get_local_attachment_store (editor->priv->client);
+ const gchar *comp_uid = NULL;
+ const gchar *local_store = e_cal_get_local_attachment_store (editor->priv->client);
gboolean valid;
- int ticker=0;
+ gint ticker=0;
e_cal_component_get_uid (editor->priv->comp, &comp_uid);
@@ -216,9 +216,9 @@ get_attachment_list (CompEditor *editor)
CamelDataWrapper *wrapper;
CamelMimePart *mime_part;
CamelStream *stream;
- char *attach_file_url;
- char *safe_fname, *utf8_safe_fname;
- char *filename;
+ gchar *attach_file_url;
+ gchar *safe_fname, *utf8_safe_fname;
+ gchar *filename;
gint column_id;
column_id = E_ATTACHMENT_STORE_COLUMN_ATTACHMENT;
@@ -244,7 +244,7 @@ get_attachment_list (CompEditor *editor)
if (!utf8_safe_fname)
safe_fname = g_strdup_printf ("%s-%d", _("attachment"), ticker++);
else {
- safe_fname = g_filename_from_utf8 ((const char *) utf8_safe_fname, -1, NULL, NULL, NULL);
+ safe_fname = g_filename_from_utf8 ((const gchar *) utf8_safe_fname, -1, NULL, NULL, NULL);
g_free (utf8_safe_fname);
}
filename = g_strdup_printf ("%s-%s", comp_uid, safe_fname);
@@ -298,7 +298,7 @@ static void
listen_for_changes (CompEditor *editor)
{
CompEditorPrivate *priv;
- const char *uid = NULL;
+ const gchar *uid = NULL;
priv = editor->priv;
@@ -318,7 +318,7 @@ listen_for_changes (CompEditor *editor)
e_cal_component_get_uid (priv->comp, &uid);
if (uid) {
- char *query;
+ gchar *query;
query = g_strdup_printf ("(uid? \"%s\")", uid);
e_cal_get_query (priv->source_client, query, &priv->view, NULL);
@@ -356,7 +356,7 @@ save_comp (CompEditor *editor)
gboolean result;
GError *error = NULL;
GHashTable *timezones;
- const char *orig_uid;
+ const gchar *orig_uid;
icalcomponent *icalcomp;
priv = editor->priv;
@@ -449,7 +449,7 @@ save_comp (CompEditor *editor)
icalproperty *icalprop;
icalprop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY);
while (icalprop) {
- const char *x_name;
+ const gchar *x_name;
x_name = icalproperty_get_x_name (icalprop);
if (!strcmp (x_name, "X-EVOLUTION-OPTIONS-DELAY")) {
@@ -817,7 +817,7 @@ action_save_cb (GtkAction *action,
delegate = flags & COMP_EDITOR_DELEGATE;
if (delegate && !remove_event_dialog (priv->client, priv->comp, GTK_WINDOW (editor))) {
- const char *uid = NULL;
+ const gchar *uid = NULL;
GError *error = NULL;
e_cal_component_get_uid (priv->comp, &uid);
@@ -2078,7 +2078,7 @@ page_unmapped_cb (GtkWidget *page_widget,
void
comp_editor_append_page (CompEditor *editor,
CompEditorPage *page,
- const char *label,
+ const gchar *label,
gboolean add)
{
CompEditorPrivate *priv;
@@ -2339,7 +2339,7 @@ real_edit_comp (CompEditor *editor, ECalComponent *comp)
/* TODO These functions should be available in e-cal-component.c */
static void
-set_attendees_for_delegation (ECalComponent *comp, const char *address, ECalComponentItipMethod method)
+set_attendees_for_delegation (ECalComponent *comp, const gchar *address, ECalComponentItipMethod method)
{
icalproperty *prop;
icalparameter *param;
@@ -2350,8 +2350,8 @@ set_attendees_for_delegation (ECalComponent *comp, const char *address, ECalComp
for (prop = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY);
prop;
prop = icalcomponent_get_next_property (icalcomp, ICAL_ATTENDEE_PROPERTY)) {
- const char *attendee = icalproperty_get_attendee (prop);
- const char *delfrom = NULL;
+ const gchar *attendee = icalproperty_get_attendee (prop);
+ const gchar *delfrom = NULL;
param = icalproperty_get_first_parameter(prop, ICAL_DELEGATEDFROM_PARAMETER);
if (param)
@@ -2371,8 +2371,8 @@ get_users_from_memo_comp (ECalComponent *comp, GList **users)
{
icalcomponent *icalcomp;
icalproperty *icalprop;
- const char *attendees = NULL;
- char **emails, **iter;
+ const gchar *attendees = NULL;
+ gchar **emails, **iter;
icalcomp = e_cal_component_get_icalcomponent (comp);
@@ -2402,7 +2402,7 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method, gboolean str
CompEditorPrivate *priv;
CompEditorFlags flags;
ECalComponent *send_comp = NULL;
- char *address = NULL;
+ gchar *address = NULL;
GList *users = NULL;
g_return_val_if_fail (IS_COMP_EDITOR (editor), FALSE);
@@ -2413,7 +2413,7 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method, gboolean str
if (priv->mod == CALOBJ_MOD_ALL && e_cal_component_is_instance (priv->comp)) {
/* Ensure we send the master object, not the instance only */
icalcomponent *icalcomp = NULL;
- const char *uid = NULL;
+ const gchar *uid = NULL;
e_cal_component_get_uid (priv->comp, &uid);
if (e_cal_get_object (priv->client, uid, NULL, &icalcomp, NULL) && icalcomp) {
@@ -2449,7 +2449,7 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method, gboolean str
}
} else {
/* Clone the component with attachments set to CID:... */
- int num_attachments, i;
+ gint num_attachments, i;
GSList *attach_list = NULL;
GSList *mime_attach_list;
@@ -2567,7 +2567,7 @@ void
comp_editor_delete_comp (CompEditor *editor)
{
CompEditorPrivate *priv;
- const char *uid;
+ const gchar *uid;
g_return_if_fail (IS_COMP_EDITOR (editor));
@@ -2647,8 +2647,8 @@ comp_editor_get_mime_attach_list (CompEditor *editor)
CamelDataWrapper *wrapper;
CamelMimePart *mime_part;
CamelStreamMem *mstream;
- unsigned char *buffer = NULL;
- const char *desc, *disp;
+ guchar *buffer = NULL;
+ const gchar *desc, *disp;
gint column_id;
column_id = E_ATTACHMENT_STORE_COLUMN_ATTACHMENT;
@@ -2668,7 +2668,7 @@ comp_editor_get_mime_attach_list (CompEditor *editor)
camel_data_wrapper_decode_to_stream (wrapper, (CamelStream *) mstream);
buffer = g_memdup (mstream->buffer->data, mstream->buffer->len);
- cal_mime_attach->encoded_data = (char *)buffer;
+ cal_mime_attach->encoded_data = (gchar *)buffer;
cal_mime_attach->length = mstream->buffer->len;
cal_mime_attach->filename = g_strdup (camel_mime_part_get_filename (mime_part));
desc = camel_mime_part_get_description (mime_part);
diff --git a/calendar/gui/dialogs/copy-source-dialog.c b/calendar/gui/dialogs/copy-source-dialog.c
index 92444678be..49cf8b3ce4 100644
--- a/calendar/gui/dialogs/copy-source-dialog.c
+++ b/calendar/gui/dialogs/copy-source-dialog.c
@@ -38,7 +38,7 @@ typedef struct {
} CopySourceDialogData;
static void
-show_error (GtkWindow *parent, const char *msg)
+show_error (GtkWindow *parent, const gchar *msg)
{
GtkWidget *dialog;
@@ -82,7 +82,7 @@ copy_source (CopySourceDialogData *csdd)
} else {
if (e_cal_get_object_list (source_client, "#t", &obj_list, NULL)) {
GList *l;
- const char *uid;
+ const gchar *uid;
icalcomponent *icalcomp;
for (l = obj_list; l != NULL; l = l->next) {
@@ -93,7 +93,7 @@ copy_source (CopySourceDialogData *csdd)
e_cal_modify_object (dest_client, l->data, CALOBJ_MOD_ALL, NULL);
icalcomponent_free (icalcomp);
} else {
- e_cal_create_object (dest_client, l->data, (char **) &uid, NULL);
+ e_cal_create_object (dest_client, l->data, (gchar **) &uid, NULL);
g_free ((gpointer) uid);
}
}
diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c
index ae371aabb2..1a004272d1 100644
--- a/calendar/gui/dialogs/delete-comp.c
+++ b/calendar/gui/dialogs/delete-comp.c
@@ -58,12 +58,12 @@
gboolean
delete_component_dialog (ECalComponent *comp,
gboolean consider_as_untitled,
- int n_comps, ECalComponentVType vtype,
+ gint n_comps, ECalComponentVType vtype,
GtkWidget *widget)
{
- const char *id;
- char *arg0 = NULL;
- int response;
+ const gchar *id;
+ gchar *arg0 = NULL;
+ gint response;
if (comp) {
g_return_val_if_fail (E_IS_CAL_COMPONENT (comp), FALSE);
@@ -167,9 +167,9 @@ cb_toggled_cb (GtkWidget *toggle, gpointer data)
}
gboolean
-prompt_retract_dialog (ECalComponent *comp, char **retract_text, GtkWidget *parent, gboolean *retract)
+prompt_retract_dialog (ECalComponent *comp, gchar **retract_text, GtkWidget *parent, gboolean *retract)
{
- char *message = NULL;
+ gchar *message = NULL;
ECalComponentVType type = E_CAL_COMPONENT_NO_TYPE;
GtkMessageDialog *dialog = NULL;
GtkWidget *cb, *label, *entry, *vbox, *sw, *frame;
diff --git a/calendar/gui/dialogs/delete-comp.h b/calendar/gui/dialogs/delete-comp.h
index c619e28b98..9123dcc479 100644
--- a/calendar/gui/dialogs/delete-comp.h
+++ b/calendar/gui/dialogs/delete-comp.h
@@ -31,8 +31,8 @@
gboolean delete_component_dialog (ECalComponent *comp,
gboolean consider_as_untitled,
- int n_comps, ECalComponentVType vtype,
+ gint n_comps, ECalComponentVType vtype,
GtkWidget *widget);
-gboolean prompt_retract_dialog (ECalComponent *comp, char **retract_text, GtkWidget *parent, gboolean *retract);
+gboolean prompt_retract_dialog (ECalComponent *comp, gchar **retract_text, GtkWidget *parent, gboolean *retract);
#endif
diff --git a/calendar/gui/dialogs/delete-error.c b/calendar/gui/dialogs/delete-error.c
index f8df587aa4..c312e16ada 100644
--- a/calendar/gui/dialogs/delete-error.c
+++ b/calendar/gui/dialogs/delete-error.c
@@ -42,7 +42,7 @@ void
delete_error_dialog (GError *error, ECalComponentVType vtype)
{
GtkWidget *dialog;
- const char *str;
+ const gchar *str;
const gchar *icon_name = NULL;
if (!error)
diff --git a/calendar/gui/dialogs/e-delegate-dialog.c b/calendar/gui/dialogs/e-delegate-dialog.c
index 8e060832df..87fb164e6a 100644
--- a/calendar/gui/dialogs/e-delegate-dialog.c
+++ b/calendar/gui/dialogs/e-delegate-dialog.c
@@ -36,8 +36,8 @@
#include "e-delegate-dialog.h"
struct _EDelegateDialogPrivate {
- char *name;
- char *address;
+ gchar *name;
+ gchar *address;
/* Glade XML data */
GladeXML *xml;
@@ -51,7 +51,7 @@ struct _EDelegateDialogPrivate {
GtkWidget *entry;
};
-static const char *section_name = "Delegate To";
+static const gchar *section_name = "Delegate To";
static void e_delegate_dialog_finalize (GObject *object);
@@ -116,14 +116,14 @@ e_delegate_dialog_finalize (GObject *object)
EDelegateDialog *
-e_delegate_dialog_construct (EDelegateDialog *edd, const char *name, const char *address)
+e_delegate_dialog_construct (EDelegateDialog *edd, const gchar *name, const gchar *address)
{
EDelegateDialogPrivate *priv;
EDestinationStore *destination_store;
EDestination *dest;
ENameSelectorModel *name_selector_model;
ENameSelectorDialog *name_selector_dialog;
- char *gladefile;
+ gchar *gladefile;
g_return_val_if_fail (edd != NULL, NULL);
g_return_val_if_fail (E_IS_DELEGATE_DIALOG (edd), NULL);
@@ -234,7 +234,7 @@ addressbook_response_cb (GtkWidget *widget, gint response, gpointer data)
* editor could not be created.
**/
EDelegateDialog *
-e_delegate_dialog_new (const char *name, const char *address)
+e_delegate_dialog_new (const gchar *name, const gchar *address)
{
EDelegateDialog *edd;
@@ -242,7 +242,7 @@ e_delegate_dialog_new (const char *name, const char *address)
return e_delegate_dialog_construct (E_DELEGATE_DIALOG (edd), name, address);
}
-char *
+gchar *
e_delegate_dialog_get_delegate (EDelegateDialog *edd)
{
EDelegateDialogPrivate *priv;
@@ -274,7 +274,7 @@ e_delegate_dialog_get_delegate (EDelegateDialog *edd)
}
-char *
+gchar *
e_delegate_dialog_get_delegate_name (EDelegateDialog *edd)
{
EDelegateDialogPrivate *priv;
diff --git a/calendar/gui/dialogs/e-delegate-dialog.h b/calendar/gui/dialogs/e-delegate-dialog.h
index e4f474781a..6ff872e7e4 100644
--- a/calendar/gui/dialogs/e-delegate-dialog.h
+++ b/calendar/gui/dialogs/e-delegate-dialog.h
@@ -54,18 +54,18 @@ struct _EDelegateDialogClass {
GType e_delegate_dialog_get_type (void);
EDelegateDialog* e_delegate_dialog_construct (EDelegateDialog *etd,
- const char *name,
- const char *address);
+ const gchar *name,
+ const gchar *address);
-EDelegateDialog* e_delegate_dialog_new (const char *name,
- const char *address);
+EDelegateDialog* e_delegate_dialog_new (const gchar *name,
+ const gchar *address);
-char* e_delegate_dialog_get_delegate (EDelegateDialog *etd);
+gchar * e_delegate_dialog_get_delegate (EDelegateDialog *etd);
-char* e_delegate_dialog_get_delegate_name (EDelegateDialog *etd);
+gchar * e_delegate_dialog_get_delegate_name (EDelegateDialog *etd);
void e_delegate_dialog_set_delegate (EDelegateDialog *etd,
- const char *address);
+ const gchar *address);
GtkWidget* e_delegate_dialog_get_toplevel (EDelegateDialog *etd);
diff --git a/calendar/gui/dialogs/e-send-options-utils.c b/calendar/gui/dialogs/e-send-options-utils.c
index fd6bf245c2..5af9d4bc43 100644
--- a/calendar/gui/dialogs/e-send-options-utils.c
+++ b/calendar/gui/dialogs/e-send-options-utils.c
@@ -34,8 +34,8 @@ e_sendoptions_utils_set_default_data (ESendOptionsDialog *sod, ESource *source,
ESendOptionsStatusTracking *sopts;
GConfClient *gconf = gconf_client_get_default ();
ESourceList *source_list;
- const char *uid;
- const char *value;
+ const gchar *uid;
+ const gchar *value;
gopts = sod->data->gopts;
sopts = sod->data->sopts;
@@ -153,7 +153,7 @@ e_sendoptions_utils_set_default_data (ESendOptionsDialog *sod, ESource *source,
void
e_sendoptions_utils_fill_component (ESendOptionsDialog *sod, ECalComponent *comp)
{
- int i = 1;
+ gint i = 1;
icalproperty *prop;
icalcomponent *icalcomp;
ESendOptionsGeneral *gopts;
@@ -166,7 +166,7 @@ e_sendoptions_utils_fill_component (ESendOptionsDialog *sod, ECalComponent *comp
icalcomp = e_cal_component_get_icalcomponent (comp);
if (e_sendoptions_get_need_general_options (sod)) {
- prop = icalproperty_new_x ((const char *) g_strdup_printf ("%d", gopts->priority));
+ prop = icalproperty_new_x ((const gchar *) g_strdup_printf ("%d", gopts->priority));
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-PRIORITY");
icalcomponent_add_property (icalcomp, prop);
@@ -174,20 +174,20 @@ e_sendoptions_utils_fill_component (ESendOptionsDialog *sod, ECalComponent *comp
if (gopts->reply_convenient)
prop = icalproperty_new_x ("convenient");
else
- prop = icalproperty_new_x ((const char *) g_strdup_printf ( "%d", gopts->reply_within));
+ prop = icalproperty_new_x ((const gchar *) g_strdup_printf ( "%d", gopts->reply_within));
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-REPLY");
icalcomponent_add_property (icalcomp, prop);
}
if (gopts->expiration_enabled && gopts->expire_after) {
- prop = icalproperty_new_x ((const char *) g_strdup_printf ( "%d", gopts->expire_after));
+ prop = icalproperty_new_x ((const gchar *) g_strdup_printf ( "%d", gopts->expire_after));
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-EXPIRE");
icalcomponent_add_property (icalcomp, prop);
}
if (gopts->delay_enabled) {
struct icaltimetype temp;
- char *str;
+ gchar *str;
icaltimezone *zone = calendar_config_get_icaltimezone ();
temp = icaltime_from_timet_with_zone (gopts->delay_until, FALSE, zone);
@@ -201,7 +201,7 @@ e_sendoptions_utils_fill_component (ESendOptionsDialog *sod, ECalComponent *comp
}
if (sopts->tracking_enabled)
- prop = icalproperty_new_x ((const char *) g_strdup_printf ( "%d", sopts->track_when));
+ prop = icalproperty_new_x ((const gchar *) g_strdup_printf ( "%d", sopts->track_when));
else
prop = icalproperty_new_x ("0");
@@ -209,19 +209,19 @@ e_sendoptions_utils_fill_component (ESendOptionsDialog *sod, ECalComponent *comp
icalcomponent_add_property (icalcomp, prop);
- prop = icalproperty_new_x ((const char *) g_strdup_printf ("%d", sopts->opened));
+ prop = icalproperty_new_x ((const gchar *) g_strdup_printf ("%d", sopts->opened));
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-OPENED");
icalcomponent_add_property (icalcomp, prop);
- prop = icalproperty_new_x ((const char *) g_strdup_printf ("%d", sopts->accepted));
+ prop = icalproperty_new_x ((const gchar *) g_strdup_printf ("%d", sopts->accepted));
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-ACCEPTED");
icalcomponent_add_property (icalcomp, prop);
- prop = icalproperty_new_x ((const char *) g_strdup_printf ("%d", sopts->declined));
+ prop = icalproperty_new_x ((const gchar *) g_strdup_printf ("%d", sopts->declined));
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-DECLINED");
icalcomponent_add_property (icalcomp, prop);
- prop = icalproperty_new_x ((const char *) g_strdup_printf ("%d", sopts->completed));
+ prop = icalproperty_new_x ((const gchar *) g_strdup_printf ("%d", sopts->completed));
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-COMPLETED");
icalcomponent_add_property (icalcomp, prop);
}
diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c
index cff9d75950..93110b8797 100644
--- a/calendar/gui/dialogs/event-editor.c
+++ b/calendar/gui/dialogs/event-editor.c
@@ -551,8 +551,8 @@ event_editor_edit_comp (CompEditor *editor, ECalComponent *comp)
/* Set up the attendees */
if (attendees != NULL) {
GSList *l;
- int row;
- char *user_email;
+ gint row;
+ gchar *user_email;
user_email = itip_get_comp_attendee (comp, client);
if (!priv->meeting_shown) {
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index b2ac6b55db..f1994fa9a7 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -73,7 +73,7 @@ enum {
ALARM_CUSTOM
};
-static const int alarm_map_with_user_time[] = {
+static const gint alarm_map_with_user_time[] = {
ALARM_NONE,
ALARM_15_MINUTES,
ALARM_1_HOUR,
@@ -83,7 +83,7 @@ static const int alarm_map_with_user_time[] = {
-1
};
-static const int alarm_map_without_user_time[] = {
+static const gint alarm_map_without_user_time[] = {
ALARM_NONE,
ALARM_15_MINUTES,
ALARM_1_HOUR,
@@ -113,7 +113,7 @@ struct _EventPagePrivate {
EAccountList *accounts;
GList *address_strings;
EMeetingAttendee *ia;
- char *user_add;
+ gchar *user_add;
ECalComponent *comp;
/* For meeting/event */
@@ -176,9 +176,9 @@ struct _EventPagePrivate {
gboolean sendoptions_shown;
ESendOptionsDialog *sod;
- char *old_summary;
+ gchar *old_summary;
CalUnits alarm_units;
- int alarm_interval;
+ gint alarm_interval;
/* This is TRUE if both the start & end timezone are the same. If the
start timezone is then changed, we updated the end timezone to the
@@ -189,7 +189,7 @@ struct _EventPagePrivate {
GtkWidget *alarm_list_dlg_widget;
/* either with-user-time or without it */
- const int *alarm_map;
+ const gint *alarm_map;
};
static GtkWidget *event_page_get_widget (CompEditorPage *page);
@@ -206,8 +206,8 @@ static void hour_sel_changed ( GtkSpinButton *widget, EventPage *epage);
static void minute_sel_changed ( GtkSpinButton *widget, EventPage *epage);
static void hour_minute_changed ( EventPage *epage);
static void update_end_time_combo ( EventPage *epage);
-static void event_page_select_organizer (EventPage *epage, const char *backend_address);
-static void set_subscriber_info_string (EventPage *epage, const char *backend_address);
+static void event_page_select_organizer (EventPage *epage, const gchar *backend_address);
+static void set_subscriber_info_string (EventPage *epage, const gchar *backend_address);
G_DEFINE_TYPE (EventPage, event_page, TYPE_COMP_EDITOR_PAGE)
@@ -508,7 +508,7 @@ clear_widgets (EventPage *epage)
}
static gboolean
-is_custom_alarm (ECalComponentAlarm *ca, char *old_summary, CalUnits user_units, int user_interval, int *alarm_type)
+is_custom_alarm (ECalComponentAlarm *ca, gchar *old_summary, CalUnits user_units, gint user_interval, gint *alarm_type)
{
ECalComponentAlarmTrigger trigger;
ECalComponentAlarmRepeat repeat;
@@ -530,7 +530,7 @@ is_custom_alarm (ECalComponentAlarm *ca, char *old_summary, CalUnits user_units,
icalcomp = e_cal_component_alarm_get_icalcomponent (ca);
icalprop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY);
while (icalprop) {
- const char *x_name;
+ const gchar *x_name;
x_name = icalproperty_get_x_name (icalprop);
if (!strcmp (x_name, "X-EVOLUTION-NEEDS-DESCRIPTION"))
@@ -627,7 +627,7 @@ is_custom_alarm (ECalComponentAlarm *ca, char *old_summary, CalUnits user_units,
}
static gboolean
-is_custom_alarm_uid_list (ECalComponent *comp, GList *alarms, char *old_summary, CalUnits user_units, int user_interval, int *alarm_type)
+is_custom_alarm_uid_list (ECalComponent *comp, GList *alarms, gchar *old_summary, CalUnits user_units, gint user_interval, gint *alarm_type)
{
ECalComponentAlarm *ca;
gboolean result;
@@ -643,7 +643,7 @@ is_custom_alarm_uid_list (ECalComponent *comp, GList *alarms, char *old_summary,
}
static gboolean
-is_custom_alarm_store (EAlarmList *alarm_list_store, char *old_summary, CalUnits user_units, int user_interval, int *alarm_type)
+is_custom_alarm_store (EAlarmList *alarm_list_store, gchar *old_summary, CalUnits user_units, gint user_interval, gint *alarm_type)
{
const ECalComponentAlarm *alarm;
GtkTreeModel *model;
@@ -700,7 +700,7 @@ event_page_set_view_rsvp (EventPage *epage, gboolean state)
}
static GtkWidget *
-create_image_event_box (const char *image_text, const char *tip_text)
+create_image_event_box (const gchar *image_text, const gchar *tip_text)
{
GtkWidget *image, *box;
@@ -866,7 +866,7 @@ get_current_account (EventPage *epage)
{
EventPagePrivate *priv;
EIterator *it;
- const char *str;
+ const gchar *str;
priv = epage->priv;
@@ -876,7 +876,7 @@ get_current_account (EventPage *epage)
for (it = e_list_get_iterator((EList *)priv->accounts); e_iterator_is_valid(it); e_iterator_next(it)) {
EAccount *a = (EAccount *)e_iterator_get(it);
- char *full = g_strdup_printf("%s <%s>", a->id->name, a->id->address);
+ gchar *full = g_strdup_printf("%s <%s>", a->id->name, a->id->address);
if (!g_ascii_strcasecmp (full, str)) {
g_free (full);
@@ -905,8 +905,8 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
ECalComponentClassification cl;
ECalComponentTransparency transparency;
ECalComponentDateTime start_date, end_date;
- const char *location, *uid = NULL;
- const char *categories;
+ const gchar *location, *uid = NULL;
+ const gchar *categories;
gchar *backend_addr = NULL;
GSList *l;
gboolean validated = TRUE;
@@ -1084,7 +1084,7 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
if (e_cal_component_has_alarms (comp)) {
GList *alarms, *list;
- int alarm_type;
+ gint alarm_type;
alarms = e_cal_component_get_alarm_uids (comp);
if (!is_custom_alarm_uid_list (comp, alarms, priv->old_summary, priv->alarm_units, priv->alarm_interval, &alarm_type))
@@ -1140,7 +1140,7 @@ event_page_fill_component (CompEditorPage *page, ECalComponent *comp)
ECalComponentDateTime start_date, end_date;
struct icaltimetype start_tt, end_tt;
gboolean all_day_event, start_date_set, end_date_set, busy;
- char *cat, *str;
+ gchar *cat, *str;
GtkTextBuffer *text_buffer;
GtkTextIter text_iter_start, text_iter_end;
@@ -1322,7 +1322,7 @@ event_page_fill_component (CompEditorPage *page, ECalComponent *comp)
icalcomp = e_cal_component_alarm_get_icalcomponent (alarm);
icalprop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY);
while (icalprop) {
- const char *x_name;
+ const gchar *x_name;
ECalComponentText summary;
x_name = icalproperty_get_x_name (icalprop);
@@ -1349,7 +1349,7 @@ event_page_fill_component (CompEditorPage *page, ECalComponent *comp)
ECalComponentAlarm *ca;
ECalComponentText summary;
ECalComponentAlarmTrigger trigger;
- int alarm_type;
+ gint alarm_type;
ca = e_cal_component_alarm_new ();
@@ -1456,7 +1456,7 @@ event_page_fill_component (CompEditorPage *page, ECalComponent *comp)
if (flags & COMP_EDITOR_DELEGATE) {
GSList *attendee_list, *l;
- int i;
+ gint i;
const GPtrArray *attendees = e_meeting_store_get_attendees (priv->model);
e_cal_component_get_attendee_list (priv->comp, &attendee_list);
@@ -1530,7 +1530,7 @@ static void
time_sel_changed (GtkComboBox *combo, EventPage *epage)
{
EventPagePrivate *priv;
- int selection = gtk_combo_box_get_active (combo);
+ gint selection = gtk_combo_box_get_active (combo);
priv = epage->priv;
@@ -1683,8 +1683,8 @@ existing_attendee (EMeetingAttendee *ia, ECalComponent *comp)
for (l = attendees; l; l = l->next) {
ECalComponentAttendee *attendee = l->data;
- const char *address;
- const char *sentby = NULL;
+ const gchar *address;
+ const gchar *sentby = NULL;
address = itip_strip_mailto (attendee->value);
if (attendee->sentby)
@@ -1707,7 +1707,7 @@ remove_attendee (EventPage *epage, EMeetingAttendee *ia)
EventPagePrivate *priv = epage->priv;
CompEditor *editor;
CompEditorFlags flags;
- int pos = 0;
+ gint pos = 0;
gboolean delegate;
editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (epage));
@@ -1767,7 +1767,7 @@ remove_clicked_cb (GtkButton *btn, EventPage *epage)
GtkTreePath *path = NULL;
GtkTreeModel *model = NULL;
gboolean valid_iter;
- char *address;
+ gchar *address;
priv = epage->priv;
@@ -1847,7 +1847,7 @@ attendee_added_cb (EMeetingListView *emlv,
e_meeting_store_remove_attendee (priv->model, ia);
} else {
if (!e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_DELEGATE_TO_MANY)) {
- const char *delegator_id = e_meeting_attendee_get_delfrom (ia);
+ const gchar *delegator_id = e_meeting_attendee_get_delfrom (ia);
EMeetingAttendee *delegator;
delegator = e_meeting_store_find_attendee (priv->model, delegator_id, NULL);
@@ -1866,7 +1866,7 @@ attendee_added_cb (EMeetingListView *emlv,
/* Callbacks for list view*/
static void
-popup_add_cb (EPopup *ep, EPopupItem *pitem, void *data)
+popup_add_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
EventPage *epage = data;
@@ -1874,7 +1874,7 @@ popup_add_cb (EPopup *ep, EPopupItem *pitem, void *data)
}
static void
-popup_delete_cb (EPopup *ep, EPopupItem *pitem, void *data)
+popup_delete_cb (EPopup *ep, EPopupItem *pitem, gpointer data)
{
EventPage *epage = data;
@@ -1894,7 +1894,7 @@ static EPopupItem context_menu_items[] = {
};
static void
-context_popup_free(EPopup *ep, GSList *items, void *data)
+context_popup_free(EPopup *ep, GSList *items, gpointer data)
{
g_slist_free(items);
}
@@ -1909,11 +1909,11 @@ button_press_event (GtkWidget *widget, GdkEventButton *event, EventPage *epage)
EMeetingAttendee *ia;
GtkTreePath *path;
GtkTreeIter iter;
- char *address;
+ gchar *address;
guint32 disable_mask = ~0;
GSList *menus = NULL;
ECalPopup *ep;
- int i;
+ gint i;
/* only process right-clicks */
if (event->button != 3 || event->type != GDK_BUTTON_PRESS)
@@ -2348,7 +2348,7 @@ check_start_before_end (struct icaltimetype *start_tt,
gboolean adjust_end_time)
{
struct icaltimetype end_tt_copy;
- int cmp;
+ gint cmp;
/* Convert the end time to the same timezone as the start time. */
end_tt_copy = *end_tt;
@@ -2420,7 +2420,7 @@ times_updated (EventPage *epage, gboolean adjust_end_time)
if (all_day_event) {
/* All Day Events are simple. We just compare the dates and if
start > end we copy one of them to the other. */
- int cmp = icaltime_compare_date_only (start_tt, end_tt);
+ gint cmp = icaltime_compare_date_only (start_tt, end_tt);
if (cmp > 0) {
if (adjust_end_time) {
end_tt = start_tt;
@@ -2646,7 +2646,7 @@ source_changed_cb (ESourceComboBox *source_combo_box, EventPage *epage)
}
static void
-set_subscriber_info_string (EventPage *epage, const char *backend_address)
+set_subscriber_info_string (EventPage *epage, const gchar *backend_address)
{
CompEditor *editor;
ECal *client;
@@ -2679,7 +2679,7 @@ alarm_changed_cb (GtkWidget *widget, gpointer data)
ECalComponentAlarmTrigger trigger;
icalcomponent *icalcomp;
icalproperty *icalprop;
- int alarm_type;
+ gint alarm_type;
ca = e_cal_component_alarm_new ();
@@ -2813,7 +2813,7 @@ init_widgets (EventPage *epage)
CompEditor *editor;
GtkTextBuffer *text_buffer;
icaltimezone *zone;
- char *combo_label = NULL;
+ gchar *combo_label = NULL;
GtkTreeSelection *selection;
ECal *client;
@@ -3013,7 +3013,7 @@ init_widgets (EventPage *epage)
static void
-event_page_select_organizer (EventPage *epage, const char *backend_address)
+event_page_select_organizer (EventPage *epage, const gchar *backend_address)
{
EventPagePrivate *priv = epage->priv;
CompEditor *editor;
@@ -3021,10 +3021,10 @@ event_page_select_organizer (EventPage *epage, const char *backend_address)
ECal *client;
EAccount *def_account;
gchar *def_address = NULL;
- const char *default_address;
+ const gchar *default_address;
gboolean subscribed_cal = FALSE;
ESource *source = NULL;
- const char *user_addr = NULL;
+ const gchar *user_addr = NULL;
def_account = itip_addresses_get_default();
if (def_account && def_account->enabled)
@@ -3047,7 +3047,7 @@ event_page_select_organizer (EventPage *epage, const char *backend_address)
if (user_addr)
for (l = priv->address_strings; l != NULL; l = l->next)
if (g_strrstr ((gchar *) l->data, user_addr) != NULL) {
- default_address = (const char *) l->data;
+ default_address = (const gchar *) l->data;
break;
}
@@ -3080,7 +3080,7 @@ event_page_construct (EventPage *epage, EMeetingStore *model)
EventPagePrivate *priv;
EIterator *it;
EAccount *a;
- char *gladefile;
+ gchar *gladefile;
priv = epage->priv;
g_object_ref (model);
@@ -3217,7 +3217,7 @@ static void
set_attendees (ECalComponent *comp, const GPtrArray *attendees)
{
GSList *comp_attendees = NULL, *l;
- int i;
+ gint i;
for (i = 0; i < attendees->len; i++) {
EMeetingAttendee *ia = g_ptr_array_index (attendees, i);
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c
index 957b8f695c..c3642a91d4 100644
--- a/calendar/gui/dialogs/memo-page.c
+++ b/calendar/gui/dialogs/memo-page.c
@@ -101,10 +101,10 @@ struct _MemoPagePrivate {
};
static void set_subscriber_info_string (MemoPage *mpage, const gchar *backend_address);
-static const char * get_recipients (ECalComponent *comp);
+static const gchar * get_recipients (ECalComponent *comp);
static void sensitize_widgets (MemoPage *mpage);
static gboolean memo_page_fill_component (CompEditorPage *page, ECalComponent *comp);
-static void memo_page_select_organizer (MemoPage *mpage, const char *backend_address);
+static void memo_page_select_organizer (MemoPage *mpage, const gchar *backend_address);
G_DEFINE_TYPE (MemoPage, memo_page, TYPE_COMP_EDITOR_PAGE)
@@ -196,7 +196,7 @@ memo_page_fill_widgets (CompEditorPage *page,
ECalComponentText text;
ECalComponentDateTime d;
GSList *l;
- const char *categories;
+ const gchar *categories;
gchar *backend_addr = NULL;
mpage = MEMO_PAGE (page);
@@ -363,7 +363,7 @@ sensitize_widgets (MemoPage *mpage)
}
/* returns empty string rather than NULL because of simplicity of usage */
-static const char *
+static const gchar *
get_recipients (ECalComponent *comp)
{
icalcomponent *icalcomp;
@@ -377,7 +377,7 @@ get_recipients (ECalComponent *comp)
for (icalprop = icalcomponent_get_first_property (icalcomp, ICAL_X_PROPERTY);
icalprop;
icalprop = icalcomponent_get_next_property (icalcomp, ICAL_X_PROPERTY)) {
- const char *xname = icalproperty_get_x_name (icalprop);
+ const gchar *xname = icalproperty_get_x_name (icalprop);
if (xname && strcmp (xname, "X-EVOLUTION-RECIPIENTS") == 0)
break;
@@ -420,7 +420,7 @@ fill_comp_with_recipients (ENameSelector *name_selector, ECalComponent *comp)
ENameSelectorDialog *dialog;
EContactStore *c_store;
GList *books, *l;
- char *uri = e_contact_get (contact, E_CONTACT_BOOK_URI);
+ gchar *uri = e_contact_get (contact, E_CONTACT_BOOK_URI);
dialog = e_name_selector_peek_dialog (name_selector);
c_store = dialog->name_selector_model->contact_store;
@@ -437,11 +437,11 @@ fill_comp_with_recipients (ENameSelector *name_selector, ECalComponent *comp)
if (book) {
GList *contacts = NULL;
EContact *n_con = NULL;
- char *qu;
+ gchar *qu;
EBookQuery *query;
qu = g_strdup_printf ("(is \"full_name\" \"%s\")",
- (char *) e_contact_get (contact, E_CONTACT_FULL_NAME));
+ (gchar *) e_contact_get (contact, E_CONTACT_FULL_NAME));
query = e_book_query_from_string (qu);
if (!e_book_get_contacts (book, query, &contacts, NULL)) {
@@ -471,7 +471,7 @@ fill_comp_with_recipients (ENameSelector *name_selector, ECalComponent *comp)
for (l = list_dests; l; l = l->next) {
EDestination *dest = l->data;
- const char *name, *attendee = NULL;
+ const gchar *name, *attendee = NULL;
name = e_destination_get_name (dest);
@@ -512,7 +512,7 @@ get_current_account (MemoPage *page)
{
MemoPagePrivate *priv = page->priv;
EIterator *it;
- const char *str;
+ const gchar *str;
str = gtk_entry_get_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (priv->org_combo))));
if (!str)
@@ -520,7 +520,7 @@ get_current_account (MemoPage *page)
for (it = e_list_get_iterator((EList *)priv->accounts); e_iterator_is_valid(it); e_iterator_next(it)) {
EAccount *a = (EAccount *)e_iterator_get(it);
- char *full = g_strdup_printf("%s <%s>", a->id->name, a->id->address);
+ gchar *full = g_strdup_printf("%s <%s>", a->id->name, a->id->address);
if (!g_ascii_strcasecmp (full, str)) {
g_free (full);
@@ -549,8 +549,8 @@ memo_page_fill_component (CompEditorPage *page,
ECalComponentClassification classification;
ECalComponentDateTime start_date;
struct icaltimetype start_tt;
- char *cat, *str;
- int i;
+ gchar *cat, *str;
+ gint i;
GtkTextBuffer *text_buffer;
GtkTextIter text_iter_start, text_iter_end;
@@ -591,10 +591,10 @@ memo_page_fill_component (CompEditorPage *page,
e_cal_component_set_description_list (comp, NULL);
}
else {
- int idxToUse = 1;
+ gint idxToUse = 1;
GSList l;
ECalComponentText text, sumText;
- char *txt, *p;
+ gchar *txt, *p;
gunichar uc;
for(i = 0, p = str, uc = g_utf8_get_char_validated (p, -1);
@@ -1016,7 +1016,7 @@ get_to_entry (ENameSelector *name_selector)
}
static void
-memo_page_select_organizer (MemoPage *mpage, const char *backend_address)
+memo_page_select_organizer (MemoPage *mpage, const gchar *backend_address)
{
MemoPagePrivate *priv;
CompEditor *editor;
@@ -1025,10 +1025,10 @@ memo_page_select_organizer (MemoPage *mpage, const char *backend_address)
ECal *client;
EAccount *def_account;
gchar *def_address = NULL;
- const char *default_address;
+ const gchar *default_address;
gboolean subscribed_cal = FALSE;
ESource *source = NULL;
- const char *user_addr = NULL;
+ const gchar *user_addr = NULL;
def_account = itip_addresses_get_default();
if (def_account && def_account->enabled)
@@ -1053,7 +1053,7 @@ memo_page_select_organizer (MemoPage *mpage, const char *backend_address)
if (user_addr)
for (l = priv->address_strings; l != NULL; l = l->next)
if (g_strrstr ((gchar *) l->data, user_addr) != NULL) {
- default_address = (const char *) l->data;
+ default_address = (const gchar *) l->data;
break;
}
@@ -1087,7 +1087,7 @@ memo_page_construct (MemoPage *mpage)
CompEditor *editor;
CompEditorFlags flags;
EIterator *it;
- char *gladefile;
+ gchar *gladefile;
EAccount *a;
editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (mpage));
diff --git a/calendar/gui/dialogs/recur-comp.c b/calendar/gui/dialogs/recur-comp.c
index 8d8dabbaf2..1323755cb1 100644
--- a/calendar/gui/dialogs/recur-comp.c
+++ b/calendar/gui/dialogs/recur-comp.c
@@ -37,7 +37,7 @@ recur_component_dialog (ECal *client,
CalObjModType *mod,
GtkWindow *parent, gboolean delegated)
{
- char *str;
+ gchar *str;
GtkWidget *dialog, *rb_this, *rb_prior, *rb_future, *rb_all, *hbox;
GtkWidget *placeholder, *vbox;
ECalComponentVType vtype;
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index f89993154f..5e24495b5c 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -61,7 +61,7 @@ enum month_num_options {
MONTH_NUM_OTHER
};
-static const int month_num_options_map[] = {
+static const gint month_num_options_map[] = {
MONTH_NUM_FIRST,
MONTH_NUM_SECOND,
MONTH_NUM_THIRD,
@@ -83,7 +83,7 @@ enum month_day_options {
MONTH_DAY_SUN
};
-static const int month_day_options_map[] = {
+static const gint month_day_options_map[] = {
MONTH_DAY_NTH,
MONTH_DAY_MON,
MONTH_DAY_TUE,
@@ -101,14 +101,14 @@ enum recur_type {
RECUR_CUSTOM
};
-static const int type_map[] = {
+static const gint type_map[] = {
RECUR_NONE,
RECUR_SIMPLE,
RECUR_CUSTOM,
-1
};
-static const int freq_map[] = {
+static const gint freq_map[] = {
ICAL_DAILY_RECURRENCE,
ICAL_WEEKLY_RECURRENCE,
ICAL_MONTHLY_RECURRENCE,
@@ -122,7 +122,7 @@ enum ending_type {
ENDING_FOREVER
};
-static const int ending_types_map[] = {
+static const gint ending_types_map[] = {
ENDING_FOR,
ENDING_UNTIL,
ENDING_FOREVER,
@@ -157,7 +157,7 @@ struct _RecurrencePagePrivate {
guint8 weekday_blocked_day_mask;
/* For monthly recurrences, created by hand */
- int month_index;
+ gint month_index;
GtkWidget *month_day_combo;
enum month_day_options month_day;
@@ -171,7 +171,7 @@ struct _RecurrencePagePrivate {
/* For ending count of occurrences, created by hand */
GtkWidget *ending_count_spin;
- int ending_count;
+ gint ending_count;
/* More widgets from the Glade file */
GtkWidget *exception_list; /* This is a GtkTreeView now */
@@ -583,7 +583,7 @@ sensitize_buttons (RecurrencePage *rpage)
gint selected_rows;
icalcomponent *icalcomp;
ECal *client;
- const char *uid;
+ const gchar *uid;
if (priv->comp == NULL)
return;
@@ -639,7 +639,7 @@ sensitize_buttons (RecurrencePage *rpage)
* icalrecurrencetype.by_day. Not needed at present.
*/
static short
-nth_weekday (int pos, icalrecurrencetype_weekday weekday)
+nth_weekday (gint pos, icalrecurrencetype_weekday weekday)
{
g_assert (pos > 0 && pos <= 5);
@@ -679,7 +679,7 @@ simple_recur_to_comp (RecurrencePage *rpage, ECalComponent *comp)
case ICAL_WEEKLY_RECURRENCE: {
guint8 day_mask;
- int i;
+ gint i;
g_return_if_fail (GTK_BIN (priv->special)->child != NULL);
g_return_if_fail (priv->weekday_picker != NULL);
@@ -976,10 +976,10 @@ make_weekly_special (RecurrencePage *rpage)
/* Creates the subtree for the monthly recurrence number */
static void
-make_recur_month_num_subtree (GtkTreeStore *store, GtkTreeIter *par, const char *title, int start, int end)
+make_recur_month_num_subtree (GtkTreeStore *store, GtkTreeIter *par, const gchar *title, gint start, gint end)
{
GtkTreeIter iter, parent;
- int i;
+ gint i;
gtk_tree_store_append (store, &parent, par);
gtk_tree_store_set (store, &parent, 0, _(title), 1, -1, -1);
@@ -1004,9 +1004,9 @@ only_leaf_sensitive (GtkCellLayout *cell_layout,
}
static GtkWidget *
-make_recur_month_num_combo (int month_index)
+make_recur_month_num_combo (gint month_index)
{
- static const char *options[] = {
+ static const gchar *options[] = {
/* TRANSLATORS: Entire string is for example: This appointment recurs/Every [x] month(s) on the [first] [Monday] [forever]'
* (dropdown menu options are in [square brackets]). This means that after 'first', either the string 'day' or
* the name of a week day (like 'Monday' or 'Friday') always follow.
@@ -1035,7 +1035,7 @@ make_recur_month_num_combo (int month_index)
N_("last")
};
- int i;
+ gint i;
GtkTreeStore *store;
GtkTreeIter iter;
GtkWidget *combo;
@@ -1095,7 +1095,7 @@ make_recur_month_num_combo (int month_index)
static GtkWidget *
make_recur_month_combobox (void)
{
- static const char *options[] = {
+ static const gchar *options[] = {
/* For Translator : 'day' is part of the sentence of the form 'appointment recurs/Every [x] month(s) on the [first] [day] [forever]'
(dropdown menu options are in [square brackets]). This means that after 'first', either the string 'day' or
the name of a week day (like 'Monday' or 'Friday') always follow. */
@@ -1110,7 +1110,7 @@ make_recur_month_combobox (void)
};
GtkWidget *combo;
- int i;
+ gint i;
combo = gtk_combo_box_new_text ();
@@ -1313,9 +1313,9 @@ make_recurrence_special (RecurrencePage *rpage)
/* Counts the elements in the by_xxx fields of an icalrecurrencetype */
static int
-count_by_xxx (short *field, int max_elements)
+count_by_xxx (short *field, gint max_elements)
{
- int i;
+ gint i;
for (i = 0; i < max_elements; i++)
if (field[i] == ICAL_RECURRENCE_ARRAY_MAX)
@@ -1540,11 +1540,11 @@ recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
CompEditorFlags flags;
CompEditorPageDates dates;
GSList *rrule_list;
- int len;
+ gint len;
struct icalrecurrencetype *r;
- int n_by_second, n_by_minute, n_by_hour;
- int n_by_day, n_by_month_day, n_by_year_day;
- int n_by_week_no, n_by_month, n_by_set_pos;
+ gint n_by_second, n_by_minute, n_by_hour;
+ gint n_by_day, n_by_month_day, n_by_year_day;
+ gint n_by_week_no, n_by_month, n_by_set_pos;
GtkAdjustment *adj;
rpage = RECURRENCE_PAGE (page);
@@ -1661,7 +1661,7 @@ recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
break;
case ICAL_WEEKLY_RECURRENCE: {
- int i;
+ gint i;
guint8 day_mask;
if (n_by_month_day != 0
@@ -1675,7 +1675,7 @@ recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
for (i = 0; i < 8 && r->by_day[i] != ICAL_RECURRENCE_ARRAY_MAX; i++) {
enum icalrecurrencetype_weekday weekday;
- int pos;
+ gint pos;
weekday = icalrecurrencetype_day_day_of_week (r->by_day[i]);
pos = icalrecurrencetype_day_position (r->by_day[i]);
@@ -1735,7 +1735,7 @@ recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
goto custom;
if (n_by_month_day == 1) {
- int nth;
+ gint nth;
if (n_by_set_pos != 0)
goto custom;
@@ -1759,7 +1759,7 @@ recurrence_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
} else if (n_by_day == 1) {
enum icalrecurrencetype_weekday weekday;
- int pos;
+ gint pos;
enum month_day_options month_day;
/* Outlook 2000 uses BYDAY=TU;BYSETPOS=2, and will not
@@ -2064,7 +2064,7 @@ type_toggled_cb (GtkToggleButton *toggle,
}
static GtkWidget *
-create_exception_dialog (RecurrencePage *rpage, const char *title, GtkWidget **date_edit)
+create_exception_dialog (RecurrencePage *rpage, const gchar *title, GtkWidget **date_edit)
{
RecurrencePagePrivate *priv;
GtkWidget *dialog, *toplevel;
@@ -2332,7 +2332,7 @@ recurrence_page_construct (RecurrencePage *rpage)
{
RecurrencePagePrivate *priv = rpage->priv;
CompEditor *editor;
- char *gladefile;
+ gchar *gladefile;
editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (rpage));
diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c
index 4baa22ab8a..c85ccbb4fe 100644
--- a/calendar/gui/dialogs/schedule-page.c
+++ b/calendar/gui/dialogs/schedule-page.c
@@ -387,7 +387,7 @@ schedule_page_construct (SchedulePage *spage, EMeetingStore *ems)
{
SchedulePagePrivate *priv = spage->priv;
CompEditor *editor;
- char *gladefile;
+ gchar *gladefile;
editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (spage));
diff --git a/calendar/gui/dialogs/select-source-dialog.c b/calendar/gui/dialogs/select-source-dialog.c
index f73af156b0..462ed7d82a 100644
--- a/calendar/gui/dialogs/select-source-dialog.c
+++ b/calendar/gui/dialogs/select-source-dialog.c
@@ -40,7 +40,7 @@ select_source_dialog (GtkWindow *parent, ECalSourceType obj_type)
GtkWidget *dialog;
ESourceList *source_list;
ESource *selected_source = NULL;
- const char *gconf_key;
+ const gchar *gconf_key;
GConfClient *conf_client;
const gchar *icon_name = NULL;
@@ -72,12 +72,12 @@ select_source_dialog (GtkWindow *parent, ECalSourceType obj_type)
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) {
selected_source = e_source_selector_dialog_peek_primary_selection (E_SOURCE_SELECTOR_DIALOG (dialog));
if (selected_source) {
- char *absolute_uri;
+ gchar *absolute_uri;
/* set the absolute URI on the source we keep around, since the group
will be unrefed */
absolute_uri = e_source_build_absolute_uri (selected_source);
- e_source_set_absolute_uri (selected_source, (const char *) absolute_uri);
+ e_source_set_absolute_uri (selected_source, (const gchar *) absolute_uri);
g_object_ref (selected_source);
g_free (absolute_uri);
diff --git a/calendar/gui/dialogs/send-comp.c b/calendar/gui/dialogs/send-comp.c
index 4eca089435..c11dadf853 100644
--- a/calendar/gui/dialogs/send-comp.c
+++ b/calendar/gui/dialogs/send-comp.c
@@ -45,7 +45,7 @@ have_nonprocedural_alarm (ECalComponent *comp)
ECalComponentAlarm *alarm;
ECalComponentAlarmAction action = E_CAL_COMPONENT_ALARM_UNKNOWN;
- alarm = e_cal_component_get_alarm (comp, (const char *)l->data);
+ alarm = e_cal_component_get_alarm (comp, (const gchar *)l->data);
if (alarm) {
e_cal_component_alarm_get_action (alarm, &action);
e_cal_component_alarm_free (alarm);
@@ -76,7 +76,7 @@ gboolean
send_component_dialog (GtkWindow *parent, ECal *client, ECalComponent *comp, gboolean new, gboolean *strip_alarms)
{
ECalComponentVType vtype;
- const char *id;
+ const gchar *id;
if (strip_alarms)
*strip_alarms = TRUE;
@@ -140,7 +140,7 @@ gboolean
send_component_prompt_subject (GtkWindow *parent, ECal *client, ECalComponent *comp)
{
ECalComponentVType vtype;
- const char *id;
+ const gchar *id;
vtype = e_cal_component_get_vtype (comp);
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c
index 7fb4679047..4cff39864a 100644
--- a/calendar/gui/dialogs/task-details-page.c
+++ b/calendar/gui/dialogs/task-details-page.c
@@ -65,7 +65,7 @@ struct _TaskDetailsPagePrivate {
};
/* Note that these two arrays must match. */
-static const int status_map[] = {
+static const gint status_map[] = {
ICAL_STATUS_NONE,
ICAL_STATUS_INPROCESS,
ICAL_STATUS_COMPLETED,
@@ -80,7 +80,7 @@ typedef enum {
PRIORITY_UNDEFINED
} TaskEditorPriority;
-static const int priority_map[] = {
+static const gint priority_map[] = {
PRIORITY_HIGH,
PRIORITY_NORMAL,
PRIORITY_LOW,
@@ -170,7 +170,7 @@ task_details_page_focus_main_widget (CompEditorPage *page)
static TaskEditorPriority
-priority_value_to_index (int priority_value)
+priority_value_to_index (gint priority_value)
{
TaskEditorPriority retval;
@@ -189,7 +189,7 @@ priority_value_to_index (int priority_value)
static int
priority_index_to_value (TaskEditorPriority priority)
{
- int retval;
+ gint retval;
switch (priority) {
case PRIORITY_UNDEFINED:
@@ -255,10 +255,10 @@ task_details_page_fill_widgets (CompEditorPage *page, ECalComponent *comp)
{
TaskDetailsPage *tdpage;
TaskDetailsPagePrivate *priv;
- int *priority_value, *percent = NULL;
+ gint *priority_value, *percent = NULL;
TaskEditorPriority priority;
icalproperty_status status;
- const char *url;
+ const gchar *url;
struct icaltimetype *completed = NULL;
tdpage = TASK_DETAILS_PAGE (page);
@@ -345,8 +345,8 @@ task_details_page_fill_component (CompEditorPage *page, ECalComponent *comp)
struct icaltimetype icalcomplete, icaltoday;
icalproperty_status status;
TaskEditorPriority priority;
- int priority_value, percent;
- char *url;
+ gint priority_value, percent;
+ gchar *url;
gboolean date_set;
icaltimezone *zone = calendar_config_get_icaltimezone ();
@@ -713,7 +713,7 @@ task_details_page_construct (TaskDetailsPage *tdpage)
{
TaskDetailsPagePrivate *priv = tdpage->priv;
CompEditor *editor;
- char *gladefile;
+ gchar *gladefile;
editor = comp_editor_page_get_editor (COMP_EDITOR_PAGE (tdpage));
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index fbab8b0581..c08ccfdb4d 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c