[PATCH] ISO-8859-13 support
- From: =?ISO-8859-13?Q?Martynas_Kunig=EBlis?= <mkunigelis alna lt>
- To: balsa-list gnome org
- Subject: [PATCH] ISO-8859-13 support
- Date: Fri, 28 Apr 2000 14:44:01 +0200
Hello everyone,
Here's a patch that adds the ISO-8859-13 (Baltic) encoding to the "ISO Charset"
menu of message composition window. It also swaps two lines in balsa-message.c
in order to fix a misguiding error message (which you will probably see when
readint this message if you have no iso-8859-13 fonts installed). The patch is very
straightforward and I hope it gets applied. Thanks!
Martynas
Index: src/balsa-message.c
===================================================================
RCS file: /cvs/gnome/balsa/src/balsa-message.c,v
retrieving revision 1.102
diff -u -r1.102 balsa-message.c
--- src/balsa-message.c 2000/04/21 04:43:41 1.102
+++ src/balsa-message.c 2000/04/28 12:40:23
@@ -503,8 +503,8 @@
GdkFont *fnt = gdk_font_load(font_name);
if(fnt) gdk_font_unref(fnt);
else {
- font_name = balsa_app.message_font;
fprintf(stderr,"message/text:: font not found: %s\n",
font_name);
+ font_name = balsa_app.message_font;
}
} else font_name = balsa_app.message_font;
Index: src/sendmsg-window.c
===================================================================
RCS file: /cvs/gnome/balsa/src/sendmsg-window.c,v
retrieving revision 1.182
diff -u -r1.182 sendmsg-window.c
--- src/sendmsg-window.c 2000/04/27 17:03:10 1.182
+++ src/sendmsg-window.c 2000/04/28 12:40:31
@@ -76,6 +76,7 @@
static gint iso_5_cb(GtkWidget* , BalsaSendmsg *);
static gint iso_8_cb(GtkWidget* , BalsaSendmsg *);
static gint iso_9_cb(GtkWidget* , BalsaSendmsg *);
+static gint iso_13_cb(GtkWidget* , BalsaSendmsg *);
/* Standard DnD types */
enum
@@ -217,11 +218,13 @@
GNOMEUIINFO_ITEM_NONE( N_ ("_Central European (ISO-8859-2)"),
NULL,iso_2_cb)
,
#define ISO_CHARSET_3_POS 3
GNOMEUIINFO_ITEM_NONE( N_ ("_South European (ISO-8859-3)"), NULL,
iso_3_cb),
-#define ISO_CHARSET_5_POS 4
+#define ISO_CHARSET_13_POS 4
+ GNOMEUIINFO_ITEM_NONE( N_ ("_Baltic (ISO-8859-13)"), NULL, iso_13_cb),
+#define ISO_CHARSET_5_POS 5
GNOMEUIINFO_ITEM_NONE( N_ ("Cy_rillic (ISO-8859-5)"), NULL, iso_5_cb),
-#define ISO_CHARSET_8_POS 5
+#define ISO_CHARSET_8_POS 6
GNOMEUIINFO_ITEM_NONE( N_ ("_Hebrew (ISO-8859-8)"), NULL, iso_8_cb),
-#define ISO_CHARSET_9_POS 6
+#define ISO_CHARSET_9_POS 7
GNOMEUIINFO_ITEM_NONE( N_ ("_Turkish (ISO-8859-9)"), NULL, iso_9_cb),
GNOMEUIINFO_END
};
@@ -234,6 +237,7 @@
"ISO-8859-15",
"ISO-8859-2",
"ISO-8859-3",
+ "ISO-8859-13",
"ISO-8859-5",
"ISO-8859-8",
"ISO-8859-9",
@@ -1628,3 +1632,5 @@
{return set_iso_charset(bsmsg, 8, ISO_CHARSET_8_POS); }
static gint iso_9_cb(GtkWidget* widget, BalsaSendmsg *bsmsg)
{return set_iso_charset(bsmsg, 9, ISO_CHARSET_9_POS); }
+static gint iso_13_cb(GtkWidget* widget, BalsaSendmsg *bmsg)
+{return set_iso_charset(bmsg, 13, ISO_CHARSET_13_POS); }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]