+2008-09-22 [colin] 3.5.0cvs122
+
+ * src/common/utils.c
+ * src/account.c
+ Remove raw printf
+ * src/compose.c
+ Fix cursor position after changing account
+ * src/imap.c
+ * src/mimeview.c
+ * src/news.c
+ Fix absolute path detection
+
2008-09-21 [colin] 3.5.0cvs121
* src/gtk/gtkaspell.c
( cvs diff -u -r 1.8.2.7 -r 1.8.2.8 src/plugins/Makefile.am; diff -u /dev/null src/plugins/smime/Makefile.am; diff -u /dev/null src/plugins/smime/plugin.c; diff -u /dev/null src/plugins/smime/smime.c; diff -u /dev/null src/plugins/smime/smime.deps; diff -u /dev/null src/plugins/smime/smime.h; ) > 3.5.0cvs119.patchset
( cvs diff -u -r 1.53.2.34 -r 1.53.2.35 po/POTFILES.in; ) > 3.5.0cvs120.patchset
( cvs diff -u -r 1.9.2.63 -r 1.9.2.64 src/gtk/gtkaspell.c; ) > 3.5.0cvs121.patchset
+( cvs diff -u -r 1.61.2.87 -r 1.61.2.88 src/account.c; cvs diff -u -r 1.382.2.478 -r 1.382.2.479 src/compose.c; cvs diff -u -r 1.179.2.229 -r 1.179.2.230 src/imap.c; cvs diff -u -r 1.83.2.143 -r 1.83.2.144 src/mimeview.c; cvs diff -u -r 1.101.2.55 -r 1.101.2.56 src/news.c; cvs diff -u -r 1.36.2.147 -r 1.36.2.148 src/common/utils.c; ) > 3.5.0cvs122.patchset
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=121
+EXTRA_VERSION=122
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
if (!account->sig_path)
return NULL;
-printf("opening %s\n", account->sig_path);
if (account->sig_type == SIG_FILE) {
if (!is_file_or_fifo_exist(account->sig_path)) {
if (tmp) {
/* attach is correct */
num_attach++;
- printf("realloc my_att %d\n", (num_attach+1));
my_att = g_realloc(my_att, (sizeof(char *))*(num_attach+1));
my_att[num_attach-1] = tmp;
my_att[num_attach] = NULL;
else
gtk_text_buffer_get_iter_at_offset(buffer, &iter,
compose->set_cursor_pos);
-
+
+ compose->set_cursor_pos = -1;
gtk_text_buffer_place_cursor(buffer, &iter);
g_signal_handlers_unblock_by_func(G_OBJECT(buffer),
G_CALLBACK(compose_changed_cb),
folder_path = imap_folder_get_path(folder);
g_return_val_if_fail(folder_path != NULL, NULL);
- if (folder_path[0] == G_DIR_SEPARATOR) {
+ if (g_path_is_absolute(folder_path)) {
if (item->path)
path = g_strconcat(folder_path, G_DIR_SEPARATOR_S,
item->path, NULL);
folder_path, NULL);
}
g_free(folder_path);
+#ifdef G_OS_WIN32
+ while (strchr(path, '/'))
+ *strchr(path, '/') = '\\';
+#endif
return path;
}
subst_for_filename(filename);
fullname = g_strconcat
- (basedir, G_DIR_SEPARATOR_S, (filename[0] == G_DIR_SEPARATOR)
+ (basedir, G_DIR_SEPARATOR_S, (g_path_is_absolute(filename))
? &filename[1] : filename, NULL);
g_free(filename);
folder_path = news_folder_get_path(folder);
g_return_val_if_fail(folder_path != NULL, NULL);
- if (folder_path[0] == G_DIR_SEPARATOR) {
+ if (g_path_is_absolute(folder_path)) {
if (item->path)
path = g_strconcat(folder_path, G_DIR_SEPARATOR_S,
item->path, NULL);
folder_path, NULL);
}
g_free(folder_path);
-
+#ifdef G_OS_WIN32
+ while (strchr(path, '/'))
+ *strchr(path, '/') = '\\';
+#endif
return path;
}