aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
commit948235c3d1076dbe6ed2e57a24c16a083bbd9f01 (patch)
tree4133b1adfd94d8f889ca7ad4ad851346518f4171 /composer
parentcc3a98fc1ad5bb87aa7335f3de404ee7feee1541 (diff)
downloadgsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.gz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.bz2
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.lz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.xz
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.zst
gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-header.c2
-rw-r--r--composer/e-msg-composer.c16
2 files changed, 9 insertions, 9 deletions
diff --git a/composer/e-composer-header.c b/composer/e-composer-header.c
index 63894f43c1..453317870f 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 98f2c31f86..5a91197078 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -134,13 +134,13 @@ static void handle_multipart_signed (EMsgComposer *composer, CamelMultipart *mul
*
* Return Value: The part in displayable html format.
**/
-static char *
+static gchar *
emcu_part_to_html (CamelMimePart *part, ssize_t *len, EMFormat *source)
{
EMFormatQuote *emfq;
CamelStreamMem *mem;
GByteArray *buf;
- char *text;
+ gchar *text;
buf = g_byte_array_new ();
mem = (CamelStreamMem *) camel_stream_mem_new ();
@@ -161,7 +161,7 @@ emcu_part_to_html (CamelMimePart *part, ssize_t *len, EMFormat *source)
camel_stream_write((CamelStream *) mem, "", 1);
camel_object_unref(mem);
- text = (char *)buf->data;
+ text = (gchar *)buf->data;
if (len)
*len = buf->len-1;
g_byte_array_free (buf, FALSE);
@@ -171,11 +171,11 @@ emcu_part_to_html (CamelMimePart *part, ssize_t *len, EMFormat *source)
/* copy of em_utils_prompt_user from mailer */
static gboolean
-emcu_prompt_user (GtkWindow *parent, const char *promptkey, const char *tag, const char *arg0, ...)
+emcu_prompt_user (GtkWindow *parent, const gchar *promptkey, const gchar *tag, const gchar *arg0, ...)
{
GtkWidget *mbox, *check = NULL;
va_list ap;
- int button;
+ gint button;
GConfClient *gconf = gconf_client_get_default ();
if (promptkey
@@ -314,7 +314,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;
}
@@ -2679,7 +2679,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);
@@ -3127,7 +3127,7 @@ handle_mailto (EMsgComposer *composer, const gchar *mailto)
if (p[len] != '=')
break;
- header = (char *) p;
+ header = (gchar *) p;
header[len] = '\0';
p += len + 1;