From 5592a4994acc941e4fb309c85742c6ecface54f4 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 31 Jan 2006 03:00:25 +0000 Subject: disabled the trimming of statusbar strings. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@947 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ ChangeLog.ja | 5 +++++ src/statusbar.c | 9 +++------ src/textview.c | 8 ++------ 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index ec32c04a..eed27373 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-31 + + * src/statusbar.c + src/textview.c: disabled the trimming of statusbar strings. + 2006-01-31 * libsylph/prefs_common.[ch] diff --git a/ChangeLog.ja b/ChangeLog.ja index 985c8e12..a30eb17d 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2006-01-31 + + * src/statusbar.c + src/textview.c: ステータスバー文字列の切り詰めを行わないようにした。 + 2006-01-31 * libsylph/prefs_common.[ch] diff --git a/src/statusbar.c b/src/statusbar.c index 15897235..c4f7a6d4 100644 --- a/src/statusbar.c +++ b/src/statusbar.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2005 Hiroyuki Yamamoto + * Copyright (C) 1999-2006 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -51,12 +51,9 @@ void statusbar_puts(GtkStatusbar *statusbar, const gchar *str) { gint cid; gchar *buf; - gchar *tmp; - tmp = g_strdup(str); - strretchomp(tmp); - buf = trim_string(tmp, 76); - g_free(tmp); + buf = g_strdup(str); + strretchomp(buf); cid = gtk_statusbar_get_context_id(statusbar, "Standard Output"); gtk_statusbar_pop(statusbar, cid); diff --git a/src/textview.c b/src/textview.c index 5d4dfadb..a705c1c9 100644 --- a/src/textview.c +++ b/src/textview.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2005 Hiroyuki Yamamoto + * Copyright (C) 1999-2006 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1778,11 +1778,7 @@ static void textview_show_uri(TextView *textview, GtkTextIter *start, STATUSBAR_POP(textview); uri = textview_get_uri(textview, start, end); if (uri) { - gchar *trimmed_uri; - - trimmed_uri = trim_string(uri->uri, 60); - STATUSBAR_PUSH(textview, trimmed_uri); - g_free(trimmed_uri); + STATUSBAR_PUSH(textview, uri->uri); } } -- cgit v1.2.3