evolution r36242 - in trunk: . mail plugins/email-custom-header plugins/templates
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r36242 - in trunk: . mail plugins/email-custom-header plugins/templates
- Date: Mon, 1 Sep 2008 14:57:02 +0000 (UTC)
Author: mbarnes
Date: Mon Sep 1 14:57:02 2008
New Revision: 36242
URL: http://svn.gnome.org/viewvc/evolution?rev=36242&view=rev
Log:
2008-09-01 Matthew Barnes <mbarnes redhat com>
* configure.in:
Fix compiler warnings in some of the test programs.
* mail/em-composer-utils.c (edit_message):
* plugins/email-custom-header/email-custom-header.c:
* plugins/templates/templates.c:
Don't mix declarations and code.
Modified:
trunk/ChangeLog
trunk/configure.in
trunk/mail/ChangeLog
trunk/mail/em-composer-utils.c
trunk/plugins/email-custom-header/ChangeLog
trunk/plugins/email-custom-header/email-custom-header.c
trunk/plugins/templates/ChangeLog
trunk/plugins/templates/templates.c
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Mon Sep 1 14:57:02 2008
@@ -259,8 +259,8 @@
int main (int argc, char **argv)
{
- const char *jp = "\x1B\x24\x42\x46\x7C\x4B\x5C\x38\x6C";
- const char *utf8 = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E";
+ char *jp = "\x1B\x24\x42\x46\x7C\x4B\x5C\x38\x6C";
+ char *utf8 = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E";
char *transbuf = malloc (10), *trans = transbuf;
iconv_t cd;
size_t jp_len = strlen (jp), utf8_len = 10;
Modified: trunk/mail/em-composer-utils.c
==============================================================================
--- trunk/mail/em-composer-utils.c (original)
+++ trunk/mail/em-composer-utils.c Mon Sep 1 14:57:02 2008
@@ -822,6 +822,8 @@
CamelStream *stream;
CamelMimePart *part;
int count1 = 0, string_changed = 0;
+ const char *cur;
+ int i;
char *str;
gint count = 2;
@@ -853,14 +855,14 @@
str = g_strndup ((const gchar*)((CamelStreamMem *) mem)->buffer->data, ((CamelStreamMem *) mem)->buffer->len);
camel_object_unref (mem);
- const char *cur = str;
- int i;
+ cur = str;
for (i = 0; i < strlen(str); i++) {
if (!g_ascii_strncasecmp (cur, "$", 1)) {
const char *end = cur, *check_env;
char *out;
GConfClient *gconf;
GSList *clue_list = NULL, *list;
+ char **temp_str;
gconf = gconf_client_get_default ();
@@ -870,7 +872,7 @@
out = g_strndup ((const gchar *) cur, end - cur);
check_env = out;
- char **temp_str = g_strsplit (str, out, 2);
+ temp_str = g_strsplit (str, out, 2);
/* Get the list from gconf */
clue_list = gconf_client_get_list ( gconf, GCONF_KEY_TEMPLATE_PLACEHOLDERS, GCONF_VALUE_STRING, NULL );
Modified: trunk/plugins/email-custom-header/email-custom-header.c
==============================================================================
--- trunk/plugins/email-custom-header/email-custom-header.c (original)
+++ trunk/plugins/email-custom-header/email-custom-header.c Mon Sep 1 14:57:02 2008
@@ -651,13 +651,13 @@
valid = gtk_tree_model_get_iter_first (model, iter);
while (valid && gtk_list_store_iter_is_valid (cd->store, iter)) {
char *keyword = NULL;
+ char *value = NULL;
gtk_tree_model_get (model, iter, HEADER_KEY_COLUMN, &keyword, -1);
/* Check if the keyword is not empty and then emit the row-changed
signal (if we delete the row, then the iter gets corrupted) */
if ((keyword) && !(g_utf8_strlen (g_strstrip (keyword), -1) > 0))
gtk_tree_model_row_changed (model, path, iter);
- char *value = NULL;
gtk_tree_model_get (model, iter, HEADER_VALUE_COLUMN, &value, -1);
/* Check if the keyword is not empty and then emit the row-changed
signal (if we delete the row, then the iter gets corrupted) */
@@ -919,9 +919,10 @@
header_list = gconf_client_get_list (client,GCONF_KEY_CUSTOM_HEADER,GCONF_VALUE_STRING, NULL);
for (list = header_list; list; list = g_slist_next (list)) {
- gtk_list_store_append (cd->store, &iter);
gchar **parse_header_list;
+
buffer = list->data;
+ gtk_list_store_append (cd->store, &iter);
parse_header_list = g_strsplit_set (buffer, "=,", -1);
str_colon = g_strconcat (parse_header_list[0], "", NULL);
gtk_list_store_set (cd->store, &iter, HEADER_KEY_COLUMN, str_colon, -1);
Modified: trunk/plugins/templates/templates.c
==============================================================================
--- trunk/plugins/templates/templates.c (original)
+++ trunk/plugins/templates/templates.c Mon Sep 1 14:57:02 2008
@@ -586,6 +586,7 @@
char *path;
EPopupItem *item;
CamelMimeMessage *message;
+ UserData *user_data;
const char *uid;
uid = g_strdup (g_ptr_array_index (uids, i));
@@ -615,7 +616,6 @@
item->visible = EM_POPUP_SELECT_MANY | EM_POPUP_SELECT_ONE;
/* Make some info available to the callback */
- UserData *user_data;
user_data = g_slice_new(UserData);
user_data->msg = message;
user_data->t = t;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]