diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 23:13:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 00:13:23 +0800 |
commit | fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch) | |
tree | ae78be371695c3dc18847b87d3f014f985aa3a40 /composer | |
parent | 6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff) | |
download | gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip |
Prefer GLib basic types over C types.
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-composer-header.c | 2 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/composer/e-composer-header.c b/composer/e-composer-header.c index 7b7cb9bcf2..d679bdd263 100644 --- a/composer/e-composer-header.c +++ b/composer/e-composer-header.c @@ -101,7 +101,7 @@ composer_header_constructor (GType type, if (header->priv->addaction) { GtkWidget *box, *tmp; - char *str; + gchar *str; header->action_widget = gtk_button_new (); box = gtk_hbox_new (FALSE, 0); diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 946bff28c1..7f1cb69504 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -235,7 +235,7 @@ best_charset (GByteArray *buf, const gchar *default_charset, CamelTransferEncodi return charset; /* Try to find something that will work */ - if (!(charset = (char *) camel_charset_best ((const gchar *)buf->data, buf->len))) { + if (!(charset = (gchar *) camel_charset_best ((const gchar *)buf->data, buf->len))) { *encoding = CAMEL_TRANSFER_ENCODING_7BIT; return NULL; } @@ -995,7 +995,7 @@ get_file_content (EMsgComposer *composer, camel_object_unref (memstream); g_byte_array_append (buffer, (const guint8 *)"", 1); - content = (char*)buffer->data; + content = (gchar *)buffer->data; g_byte_array_free (buffer, FALSE); return content; @@ -1478,9 +1478,9 @@ struct _drop_data { guint info; guint time; - unsigned int move:1; - unsigned int moved:1; - unsigned int aborted:1; + guint move:1; + guint moved:1; + guint aborted:1; }; static void @@ -2753,7 +2753,7 @@ e_msg_composer_new_with_message (CamelMimeMessage *message) } /* Restore the Account preference */ - account_name = (char *) camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Account"); + account_name = (gchar *) camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Account"); if (account_name) { account_name = g_strdup (account_name); g_strstrip (account_name); @@ -3154,7 +3154,7 @@ handle_mailto (EMsgComposer *composer, const gchar *mailto) if (p[len] != '=') break; - header = (char *) p; + header = (gchar *) p; header[len] = '\0'; p += len + 1; |