aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-05-07 06:30:47 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-05-07 06:30:47 +0800
commit68552ed22e3feeb63456d03d4c428b05d17a4c0b (patch)
tree3d34e91b83d45da584950184442afc03a63aec96
parent27a752e9c4a9ca419d08036feb066f6fe5e30b17 (diff)
downloadgsoc2013-evolution-68552ed22e3feeb63456d03d4c428b05d17a4c0b.tar.gz
gsoc2013-evolution-68552ed22e3feeb63456d03d4c428b05d17a4c0b.tar.zst
gsoc2013-evolution-68552ed22e3feeb63456d03d4c428b05d17a4c0b.zip
Use the GtkCellRendererText's "markup" property for error messages.
2008-05-06 Matthew Barnes <mbarnes@redhat.com> * mail-component.c (mail_component_show_logger): Use the GtkCellRendererText's "markup" property for error messages. svn path=/trunk/; revision=35473
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-component.c28
2 files changed, 14 insertions, 19 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index bdff98881a..a2a0b7e318 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-06 Matthew Barnes <mbarnes@redhat.com>
+
+ * mail-component.c (mail_component_show_logger):
+ Use the GtkCellRendererText's "markup" property for error messages.
+
2008-05-05 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #531426
diff --git a/mail/mail-component.c b/mail/mail-component.c
index 8e96477c84..7c83872314 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -1615,29 +1615,19 @@ append_logs (const char *txt, GtkListStore *store)
str = g_strsplit (txt, ":", 3);
if (str[0] && str[1] && str[2]) {
- int level;
- time_t time;
- char *data;
GtkTreeIter iter;
- level = atoi (str[0]);
- time = atol (str[1]);
- data = strrchr (str[2], '\n');
- *data = 0;
- data = str[2];
-
- gtk_list_store_append(store, &iter);
- gtk_list_store_set(store, &iter,
- COL_LEVEL, level,
- COL_TIME, time,
- COL_DATA, data,
- -1);
+ gtk_list_store_append (store, &iter);
+ gtk_list_store_set (
+ store, &iter,
+ COL_LEVEL, atoi (str[0]),
+ COL_TIME, atol (str[1]),
+ COL_DATA, g_strstrip (str[2]),
+ -1);
} else
- printf("Unable to decode error log: %s\n", txt);
+ g_printerr ("Unable to decode error log: %s\n", txt);
g_strfreev (str);
-
-
}
static void
@@ -1768,7 +1758,7 @@ mail_component_show_logger (gpointer top)
renderer = gtk_cell_renderer_text_new ();
gtk_tree_view_insert_column_with_attributes(
GTK_TREE_VIEW (widget), -1, _("Messages"),
- renderer, "text", COL_DATA, NULL);
+ renderer, "markup", COL_DATA, NULL);
container = gtk_hbutton_box_new ();
gtk_button_box_set_layout (
09 10:37:41 +0800'>2002-09-091-13/+24 * Catch up with lossage of 'union wait' in 5-CURRENT.obrien2002-09-092-21/+34 * Fix corrupted comment line.obrien2002-09-091-1/+1 * I have no idea what bsd.port.mk change broke this port, but be moreobrien2002-09-091-0/+1 * Update to 3.0.3. Not much changed here: [1] i18n PKGNAMEs converted towill2002-08-253-4/+4 * 1. Changed the lib depends on gettext to a build depends. This will meanalane2002-08-031-2/+2 * Bump PORTREVISION. KDE is fragile enough in its dependencies; we don'talane2002-08-021-0/+1 * Chase shlib rev of devel/gettextade2002-08-021-1/+1 * Fix MASTER_SITE_SUBDIR.will2002-07-101-1/+1 * Update to 3.0.2 -- full log available in ports/x11/kde3/Makefile,v 1.51.will2002-07-053-5/+12 * Upgrade to KDE 3.0.1. The delay in this upgrade is mainly due to thewill2002-06-163-2/+32 * Please welcome Qt3/KDE3 to our ports tree. This includes work since thewill2002-04-227-128/+154 * gettext upgrade uber-patch (stage 3)ade2002-04-131-1/+2 * Stage 1 of gettext update.ade2002-03-161-1/+1 * Add WWW.demon2001-12-281-0/+2 * Update to 2.2.2.demon2001-12-133-9/+16 * Note the standard these utilities conform to.obrien2001-11-2815-35/+133 * Unicode TrueType Font with UHoai Vietnamese encodingobrien2001-11-288-0/+60 * VISCII->Unicode conversionobrien2001-11-286-0/+36 * Upgrade to 2.2.1.demon2001-10-276-26/+23 * Sort entries.knu2001-09-211-3/+2 * Set DIST_SUBDIR=KDEdemon2001-09-112-1/+2 * MAINTAINER -> kde@FreeBSD.orgdemon2001-09-011-1/+1 * Our -man package does not understand .PN and .MS. So use .B (bold) untilobrien2001-08-232-18/+158 * Fix installation in a slightly different way.demon2001-08-212-6/+8 * Remove two languages not presented in new version.demon2001-08-201-3/+1 * Forgot to remove debug comment.demon2001-08-161-1/+1 * Upgrade to 2.2.demon2001-08-165-8/+31 * Note that VNterm adheres to RFC 1456 (VISCII and VIQR encodings)obrien2001-07-151-0/+6 * Remove Ukrainian from BATCH builds.demon2001-07-051-1/+1 * Exclude de, fr, ja, ru, zh_CN, zh_TW from bento's package.demon2001-04-171-1/+1 * Use `cp' rather than `ln' as WRKDIR and FILESDIR can be on different devices.obrien2001-04-171-1/+1 * Sort languages by name.demon2001-04-131-10/+10 * Examine LINGUAS variable before BATCH.demon2001-04-111-5/+5 * Allow to override MAINTAINER and CATEGORIES (in slave ports).demon2001-04-101-2/+2 * Add the ability to select which languages to install via dialog(1)-baseddemon2001-04-102-0/+87 * Update to 2.1.1demon2001-04-063-13/+2 * Change dot file to .vnelvisrc from .exrc.obrien2001-04-051-8/+26 * Default to Vietnamese processing.obrien2001-04-051-0/+5 * Overhaul QT/KDE support:will2001-04-031-2/+2 * Install new manpage.obrien2001-03-261-0/+2 * Add FreeBSD ID.obrien2001-03-261-0/+1 * Grr. a local cc(1) option got added by mistake.obrien2001-03-261-3/+3 * Sigh. This code is based on vnlibs. Thus I need to fix the Pascal'ismobrien2001-03-261-0/+8 * Respect CFLAGS.obrien2001-03-261-0/+11 * Add a man page.obrien2001-03-261-0/+65 * Minor tweak.obrien2001-03-261-2/+2 * Add reference to vnconvert(1).obrien2001-03-263-0/+3 * unbreak post-install script.sf2001-03-191-1/+1 * Use full path to `mkfontdir'.obrien2001-03-131-1/+1 * Make sure teTeX is installed before installing this port.obrien2001-03-131-0/+3 * Update to the 20010210 version. This fixes occasional core dumps in apps.obrien2001-03-092-2/+2 * New port: localized messages and documentation for KDE2.demon2001-03-025-0/+38 * Add aliases.obrien2001-02-163-0/+15 * Make this build when it is in the full /usr/ports tree and "vi-" is prependedobrien2001-02-121-1/+1 * Use the new libviet port in building.obrien2001-02-123-16/+15 * Use the new libviet port in building.obrien2001-02-113-14/+17 * Update vnterm so it is based on the X11R6.5.1 Xterm rather than the X11R5 one.obrien2001-02-1123-191/+1411 * Fix prefix bogon.obrien2001-02-111-0/+1 * These X fonts allow you to display Vietnamese characters in an Xterm andobrien2001-02-118-0/+134 * VIQR<->VISCII conversion and VISCII ctype-like routinesobrien2001-02-106-0/+49 * teTeX Vietnamese language + font supportobrien2001-02-078-0/+475 * Style fixes in ports/vietnamese.olgeni2001-02-061-1/+1 * Converts Vietnamese text files between popular formats.obrien2001-01-066-0/+40 * Add $FreeBSD$, which help me in problem reports.obrien2000-11-221-0/+1 * Fix curses clear() usage.obrien2000-11-033-0/+54 * Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} isasami2000-10-081-1/+1 * Add dependency to mkfontdir:XFree86-4-clients when XFREE86_VERSION=4.asami2000-09-121-1/+8 * Back out the previous commit. That one has a problem which occurs onknu2000-08-281-5/+1 * PKGNAMEPREFIX cleanup. This should allow chained PKGNAMEPREFIX'es.knu2000-08-271-1/+5 * Add one manpage, one doc file and delete two directories.asami2000-07-052-0/+4 * List two files in share/doc/vnlpr and delete the directory upon deinstall.asami2000-07-051-2/+3 * Update the manpage to note this now adhears to Vietnamese Standard Code forobrien2000-05-214-7/+58 * Correct whitespace introduced during PORTNAME conversion and portlintmharo2000-04-216-6/+6