aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-delegates-user.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 23:13:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-29 00:13:23 +0800
commitfad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch)
treeae78be371695c3dc18847b87d3f014f985aa3a40 /plugins/exchange-operations/exchange-delegates-user.c
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'plugins/exchange-operations/exchange-delegates-user.c')
-rw-r--r--plugins/exchange-operations/exchange-delegates-user.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/plugins/exchange-operations/exchange-delegates-user.c b/plugins/exchange-operations/exchange-delegates-user.c
index 7de3948814..437aeec51f 100644
--- a/plugins/exchange-operations/exchange-delegates-user.c
+++ b/plugins/exchange-operations/exchange-delegates-user.c
@@ -54,7 +54,7 @@
* means "end of list" to e_dialog_combo_box_get/set
*/
-static const int exchange_perm_map[] = {
+static const gint exchange_perm_map[] = {
E2K_PERMISSIONS_ROLE_NONE,
E2K_PERMISSIONS_ROLE_REVIEWER,
E2K_PERMISSIONS_ROLE_AUTHOR,
@@ -65,18 +65,18 @@ static const int exchange_perm_map[] = {
-1
};
-const char *exchange_delegates_user_folder_names[] = {
+const gchar *exchange_delegates_user_folder_names[] = {
"calendar", "tasks", "inbox", "contacts"
};
/* To translators: The folder names to be displayed in the message being
sent to the delegatee.
*/
-static const char *folder_names_for_display[] = {
+static const gchar *folder_names_for_display[] = {
N_("Calendar"), N_("Tasks"), N_("Inbox"), N_("Contacts")
};
-static const char *widget_names[] = {
+static const gchar *widget_names[] = {
"calendar_perms_combobox", "task_perms_combobox", "inbox_perms_combobox", "contact_perms_combobox",
};
@@ -156,10 +156,10 @@ parent_window_destroyed (gpointer dialog, GObject *where_parent_window_was)
/* Maps the role_nam parameter to their corresponding Full role name
*/
-static const char *
+static const gchar *
map_to_full_role_name (E2kPermissionsRole role_nam)
{
- const char *role_name;
+ const gchar *role_name;
switch (role_nam)
{
@@ -187,7 +187,7 @@ map_to_full_role_name (E2kPermissionsRole role_nam)
static void
em_utils_delegates_done (CamelFolder *folder, CamelMimeMessage *msg, CamelMessageInfo *info,
- int queued, const char *appended_uid, void *data)
+ gint queued, const gchar *appended_uid, gpointer data)
{
camel_message_info_free (info);
mail_send ();
@@ -211,8 +211,8 @@ exchange_delegates_user_edit (ExchangeAccount *account,
{
GladeXML *xml;
GtkWidget *dialog, *table, *label, *combobox, *check, *check_delegate;
- char *title;
- int button, i;
+ gchar *title;
+ gint button, i;
E2kPermissionsRole role;
gboolean modified;
@@ -299,13 +299,13 @@ exchange_delegates_user_edit (ExchangeAccount *account,
CamelStream *stream;
CamelFolder *out_folder;
CamelMessageInfo *info;
- char *self_address, *delegate_mail_subject;
- char *role_name;
+ gchar *self_address, *delegate_mail_subject;
+ gchar *role_name;
GString *role_name_final;
- const char *recipient_address;
- const char *delegate_exchange_dn;
- const char *msg_part1 = NULL, *msg_part2 = NULL;
+ const gchar *recipient_address;
+ const gchar *delegate_exchange_dn;
+ const gchar *msg_part1 = NULL, *msg_part2 = NULL;
role_name_final = g_string_new ("");
@@ -456,10 +456,10 @@ exchange_delegates_user_edit (ExchangeAccount *account,
* with most of the internal data blank).
**/
ExchangeDelegatesUser *
-exchange_delegates_user_new (const char *display_name)
+exchange_delegates_user_new (const gchar *display_name)
{
ExchangeDelegatesUser *user;
- int i;
+ gint i;
user = g_object_new (EXCHANGE_TYPE_DELEGATES_USER, NULL);
user->display_name = g_strdup (display_name);
@@ -487,7 +487,7 @@ exchange_delegates_user_new (const char *display_name)
**/
ExchangeDelegatesUser *
exchange_delegates_user_new_from_gc (E2kGlobalCatalog *gc,
- const char *email,
+ const gchar *email,
GByteArray *creator_entryid)
{
E2kGlobalCatalogStatus status;