gnome-mud r745 - in trunk: . src
- From: lharris svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-mud r745 - in trunk: . src
- Date: Wed, 18 Feb 2009 06:03:21 +0000 (UTC)
Author: lharris
Date: Wed Feb 18 06:03:21 2009
New Revision: 745
URL: http://svn.gnome.org/viewvc/gnome-mud?rev=745&view=rev
Log:
Removed useless buffer, removed logging.
Modified:
trunk/ChangeLog
trunk/src/mud-connection-view.c
Modified: trunk/src/mud-connection-view.c
==============================================================================
--- trunk/src/mud-connection-view.c (original)
+++ trunk/src/mud-connection-view.c Wed Feb 18 06:03:21 2009
@@ -276,7 +276,7 @@
void
mud_connection_view_add_text(MudConnectionView *view, gchar *message, enum MudConnectionColorType type)
{
- gchar *encoding, *buf, *text;
+ gchar *encoding, *text;
const gchar *local_codeset;
gchar *profile_name;
GConfClient *client;
@@ -309,41 +309,34 @@
encoding = gconf_client_get_string(client, key, NULL);
}
- buf = text;
-
g_get_charset(&local_codeset);
- text = g_convert(text, -1,
+ text = g_convert(message, -1,
encoding,
local_codeset,
&bytes_read, &bytes_written, &error);
- g_free(buf);
-
- if(error)
- g_message("%s", error->message);
-
vte_terminal_set_encoding(VTE_TERMINAL(view->priv->terminal), encoding);
g_free(encoding);
switch (type)
{
- case Sent:
- mud_connection_view_feed_text(view, "\e[1;33m");
- break;
-
- case Error:
- mud_connection_view_feed_text(view, "\e[1;31m");
- break;
-
- case System:
- mud_connection_view_feed_text(view, "\e[1;32m");
- break;
-
- case Normal:
- default:
- break;
+ case Sent:
+ mud_connection_view_feed_text(view, "\e[1;33m");
+ break;
+
+ case Error:
+ mud_connection_view_feed_text(view, "\e[1;31m");
+ break;
+
+ case System:
+ mud_connection_view_feed_text(view, "\e[1;32m");
+ break;
+
+ case Normal:
+ default:
+ break;
}
if(view->local_echo)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]