Fix copying timestamp with server-time and indent nicks off
This commit is contained in:
parent
85557f2416
commit
05a6097dc6
@ -163,7 +163,7 @@ fe_add_rawlog (server *serv, char *text, int len, int outbound)
|
||||
else
|
||||
new_text = g_strconcat ("\0033>>\017 ", split_text[i], NULL);
|
||||
|
||||
gtk_xtext_append (GTK_XTEXT (serv->gui->rawlog_textlist)->buffer, new_text, strlen (new_text));
|
||||
gtk_xtext_append (GTK_XTEXT (serv->gui->rawlog_textlist)->buffer, new_text, strlen (new_text), 0);
|
||||
|
||||
g_free (new_text);
|
||||
}
|
||||
|
@ -85,10 +85,10 @@ PrintTextLine (xtext_buffer *xtbuf, unsigned char *text, int len, int indent, ti
|
||||
memcpy (new_text, stamp, stamp_size);
|
||||
g_free (stamp);
|
||||
memcpy (new_text + stamp_size, text, len);
|
||||
gtk_xtext_append (xtbuf, new_text, len + stamp_size);
|
||||
gtk_xtext_append (xtbuf, new_text, len + stamp_size, timet);
|
||||
free (new_text);
|
||||
} else
|
||||
gtk_xtext_append (xtbuf, text, len);
|
||||
gtk_xtext_append (xtbuf, text, len, timet);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -4685,7 +4685,7 @@ gtk_xtext_append_indent (xtext_buffer *buf,
|
||||
}
|
||||
|
||||
void
|
||||
gtk_xtext_append (xtext_buffer *buf, unsigned char *text, int len)
|
||||
gtk_xtext_append (xtext_buffer *buf, unsigned char *text, int len, time_t stamp)
|
||||
{
|
||||
textentry *ent;
|
||||
|
||||
@ -4707,7 +4707,7 @@ gtk_xtext_append (xtext_buffer *buf, unsigned char *text, int len)
|
||||
ent->indent = 0;
|
||||
ent->left_len = -1;
|
||||
|
||||
gtk_xtext_append_entry (buf, ent, 0);
|
||||
gtk_xtext_append_entry (buf, ent, stamp);
|
||||
}
|
||||
|
||||
gboolean
|
||||
@ -4742,7 +4742,7 @@ gtk_xtext_lastlog (xtext_buffer *out, xtext_buffer *search_area)
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_xtext_append (out, ent->str, ent->str_len);
|
||||
gtk_xtext_append (out, ent->str, ent->str_len, 0);
|
||||
}
|
||||
|
||||
out->text_last->stamp = ent->stamp;
|
||||
|
@ -252,7 +252,7 @@ struct _GtkXTextClass
|
||||
};
|
||||
|
||||
GtkWidget *gtk_xtext_new (GdkColor palette[], int separator);
|
||||
void gtk_xtext_append (xtext_buffer *buf, unsigned char *text, int len);
|
||||
void gtk_xtext_append (xtext_buffer *buf, unsigned char *text, int len, time_t stamp);
|
||||
void gtk_xtext_append_indent (xtext_buffer *buf,
|
||||
unsigned char *left_text, int left_len,
|
||||
unsigned char *right_text, int right_len,
|
||||
|
Loading…
Reference in New Issue
Block a user