aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-03-14 08:34:35 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-03-14 08:34:35 +0800
commita18af91be595552c76016523bcaa6e5bf7fb508b (patch)
tree6b345b9b74e42a83fd6e620ede7d78e60bf3a6dc
parent828991183bc924b2ec7d5019790e9200d9a37a6d (diff)
downloadgsoc2013-evolution-a18af91be595552c76016523bcaa6e5bf7fb508b.tar.gz
gsoc2013-evolution-a18af91be595552c76016523bcaa6e5bf7fb508b.tar.zst
gsoc2013-evolution-a18af91be595552c76016523bcaa6e5bf7fb508b.zip
If the charset item doesn't have a class (aka "Unknown"), don't write a
2002-03-13 Jeffrey Stedfast <fejj@ximian.com> * e-charset-picker.c (add_charset): If the charset item doesn't have a class (aka "Unknown"), don't write a class name, instead just give the charset name as the menu item label. Fixes bug #14753. svn path=/trunk/; revision=16154
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-charset-picker.c8
2 files changed, 12 insertions, 3 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 62ccbf968d..8e3d1447ca 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+2002-03-13 Jeffrey Stedfast <fejj@ximian.com>
+
+ * e-charset-picker.c (add_charset): If the charset item doesn't
+ have a class (aka "Unknown"), don't write a class name, instead
+ just give the charset name as the menu item label. Fixes bug
+ #14753.
+
2002-03-13 Christopher James Lahey <clahey@ximian.com>
* e-multi-config-dialog.c: Added alpha blending here.
diff --git a/widgets/misc/e-charset-picker.c b/widgets/misc/e-charset-picker.c
index aa2d174d89..5c8751149e 100644
--- a/widgets/misc/e-charset-picker.c
+++ b/widgets/misc/e-charset-picker.c
@@ -123,18 +123,20 @@ add_charset (GtkWidget *menu, ECharset *charset, gboolean free_name)
{
GtkWidget *item;
char *label;
-
+
if (charset->subclass) {
label = g_strdup_printf ("%s, %s (%s)",
_(classnames[charset->class]),
_(charset->subclass),
charset->name);
- } else {
+ } else if (charset->class) {
label = g_strdup_printf ("%s (%s)",
_(classnames[charset->class]),
charset->name);
+ } else {
+ label = g_strdup (charset->name);
}
-
+
item = gtk_menu_item_new_with_label (label);
gtk_object_set_data_full (GTK_OBJECT (item), "charset",
charset->name, free_name ? g_free : NULL);
>-6/+1 * - Update to 0.6.1miwi2006-12-156-140/+21 * Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-142-33/+78 * - Update to 0.5.1pav2006-05-019-93/+244 * - Update gstreamer to 0.10ahze2006-04-301-1/+1 * Conversion to a single libtool environment.ade2006-02-231-1/+0 * Chase URLs per distfile survey.linimon2005-11-261-1/+1 * - Add SHA256pav2005-11-251-0/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-1/+1 * Fix bug when insert diskmnag2005-10-282-1/+13 * Fix path for documentationmnag2005-10-253-16/+27 * - Update to 0.5.0.flz2005-10-205-18/+42 * - Update to 0.4.2pav2005-08-316-59/+40 * Remove some locale directories if empty.kwm2005-03-262-0/+7