Masaaki Noro
Motonobu Ichimura
Luca Rosellini
+ Yasuzaki Masayoshi
+2002-01-25
+
+ * src/procmime.c:
+ procmime_get_mime_type()
+ procmime_get_mime_type_table(): made the MIME type search case
+ insensitive.
+ * src/gtkstext.c:
+ gtk_stext_delete_line(): delete newline on empty line.
+ gtk_stext_delete_to_line_end(): delete newline if cursor is on
+ the last of line.
+ (thanks to Yasuzaki Masayoshi.)
+
2002-01-23
* src/compose.c
+2002-01-25 [paul] 0.7.0claws25
+
+ * sync with sylpheed 0.7.0cvs16
+ see ChangeLog entry 2002-01-25
+
2002-01-24 [paul] 0.7.0claws24
* more sync with sylpheed 0.7.0cvs15
+2002-01-25
+
+ * src/procmime.c:
+ procmime_get_mime_type()
+ procmime_get_mime_type_table(): MIME ¥¿¥¤¥×¤Î¸¡º÷¤òÂ羮ʸ»ú¤ò
+ ¶èÊ̤·¤Ê¤¤¤è¤¦¤Ë¤·¤¿¡£
+ * src/gtkstext.c:
+ gtk_stext_delete_line(): ¶õ¹Ô¤Ç¤Ï²þ¹Ô¤ò¾Ã¤¹¤è¤¦¤Ë¤·¤¿¡£
+ gtk_stext_delete_to_line_end(): ¥«¡¼¥½¥ë¤¬¹ÔËö¤Ë¤¢¤ë¾ì¹ç¤Ï²þ¹Ô
+ ¤ò¾Ã¤¹¤è¤¦¤Ë¤·¤¿¡£
+ (Yasuzaki Masayoshi ¤µ¤ó thanks.)
+
2002-01-23
* src/compose.c
o Vector Linux 1.5
o Yellow Dog Linux 2.0 (glibc 2.2.1)
o Yellow Dog Linux 2.1 (PowerPC)
+o ASP Linux 7.2 (glibc 2.2.4)
BSD
o HP-UX 11i
o Tru64 Unix 5.0 (OSF1 V5.0)
o SCO UnixWare 7
-o Mac OS X (Darwin 1.3) + Xtools (has locale problem)
+o Mac OS X 10.1.2 (Darwin 5.2) + XDarwin (has locale problem)
Others
o Vector Linux 1.5
o Yellow Dog Linux 2.0 (glibc 2.2.1)
o Yellow Dog Linux 2.1 (PowerPC)
+o ASP Linux 7.2 (glibc 2.2.4)
BSD
o HP-UX 11i
o Tru64 Unix 5.0 (OSF1 V5.0)
o SCO UnixWare 7
-o Mac OS X (Darwin 1.3) + Xtools (locale ¤ËÌäÂꤢ¤ê)
+o Mac OS X 10.1.2 (Darwin 5.2) + XDarwin (locale ¤ËÌäÂꤢ¤ê)
¤½¤Î¾
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws24
+EXTRA_VERSION=claws25
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
gtk_stext_delete_line (GtkSText *text)
{
gtk_stext_move_to_column (GTK_EDITABLE (text), 0);
- gtk_stext_kill_line (GTK_EDITABLE (text), 1);
+ if (GTK_STEXT_INDEX(text, GTK_EDITABLE (text)->current_pos) == LINE_DELIM)
+ {
+ gtk_stext_kill_char (GTK_EDITABLE (text), 1);
+ }
+ else
+ {
+ gtk_stext_kill_line (GTK_EDITABLE (text), 1);
+ }
}
void
gtk_stext_delete_to_line_end (GtkSText *text)
{
- gtk_stext_kill_line (GTK_EDITABLE (text), 1);
+ if (GTK_STEXT_INDEX(text, GTK_EDITABLE (text)->current_pos) == LINE_DELIM)
+ {
+ gtk_stext_kill_char (GTK_EDITABLE (text), 1);
+ }
+ else
+ {
+ gtk_stext_kill_line (GTK_EDITABLE (text), 1);
+ }
}
static void
{
static GHashTable *mime_type_table = NULL;
MimeType *mime_type;
- const gchar *ext, *p;
+ const gchar *p;
+ gchar *ext;
if (!mime_type_table) {
mime_type_table = procmime_get_mime_type_table();
filename = g_basename(filename);
p = strrchr(filename, '.');
- if (p)
- ext = p + 1;
- else
- return NULL;
+ if (!p) return NULL;
+ Xstrdup_a(ext, p + 1, return NULL);
+ g_strdown(ext);
mime_type = g_hash_table_lookup(mime_type_table, ext);
if (mime_type) {
gchar *str;
for (cur = mime_type_list; cur != NULL; cur = cur->next) {
gint i;
+ gchar *key;
mime_type = (MimeType *)cur->data;
if (!mime_type->extension) continue;
exts = g_strsplit(mime_type->extension, " ", 16);
- for (i = 0; exts[i] != NULL; i++)
- g_hash_table_insert(table, g_strdup(exts[i]),
- mime_type);
+ for (i = 0; exts[i] != NULL; i++) {
+ /* make the key case insensitive */
+ g_strdown(exts[i]);
+ /* use previously dup'd key on overwriting */
+ if (g_hash_table_lookup(table, exts[i]))
+ key = exts[i];
+ else
+ key = g_strdup(exts[i]);
+ g_hash_table_insert(table, key, mime_type);
+ }
g_strfreev(exts);
}