xchat-gnome r2659 - in trunk: . src/fe-gnome
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: xchat-gnome r2659 - in trunk: . src/fe-gnome
- Date: Sun, 7 Sep 2008 14:03:41 +0000 (UTC)
Author: chpe
Date: Sun Sep 7 14:03:41 2008
New Revision: 2659
URL: http://svn.gnome.org/viewvc/xchat-gnome?rev=2659&view=rev
Log:
Bug 522051 â Does not send IRC color escape codes properly
* src/fe-gnome/text-entry.c: (color_code_activate): Use ^C instead of
%C to intro the colour code. Patch by Aaron Haviland.
Modified:
trunk/ChangeLog
trunk/src/fe-gnome/text-entry.c
Modified: trunk/src/fe-gnome/text-entry.c
==============================================================================
--- trunk/src/fe-gnome/text-entry.c (original)
+++ trunk/src/fe-gnome/text-entry.c Sun Sep 7 14:03:41 2008
@@ -644,7 +644,7 @@
color_code_activate (GtkMenuItem *item, gpointer data)
{
int color = GPOINTER_TO_INT (data);
- char *code = g_strdup_printf ("%%C%d", color);
+ char *code = g_strdup_printf ("\003%d", color);
int position = gtk_editable_get_position (GTK_EDITABLE (gui.text_entry));
gtk_editable_insert_text (GTK_EDITABLE (gui.text_entry), code, strlen (code), &position);
gtk_editable_set_position (GTK_EDITABLE (gui.text_entry), position + strlen (code));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]