mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-12 22:22:43 +01:00
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
|
else
|
||||||
new_text = g_strconcat ("\0033>>\017 ", split_text[i], NULL);
|
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);
|
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);
|
memcpy (new_text, stamp, stamp_size);
|
||||||
g_free (stamp);
|
g_free (stamp);
|
||||||
memcpy (new_text + stamp_size, text, len);
|
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);
|
free (new_text);
|
||||||
} else
|
} else
|
||||||
gtk_xtext_append (xtbuf, text, len);
|
gtk_xtext_append (xtbuf, text, len, timet);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4685,7 +4685,7 @@ gtk_xtext_append_indent (xtext_buffer *buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
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;
|
textentry *ent;
|
||||||
|
|
||||||
@ -4707,7 +4707,7 @@ gtk_xtext_append (xtext_buffer *buf, unsigned char *text, int len)
|
|||||||
ent->indent = 0;
|
ent->indent = 0;
|
||||||
ent->left_len = -1;
|
ent->left_len = -1;
|
||||||
|
|
||||||
gtk_xtext_append_entry (buf, ent, 0);
|
gtk_xtext_append_entry (buf, ent, stamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
@ -4742,7 +4742,7 @@ gtk_xtext_lastlog (xtext_buffer *out, xtext_buffer *search_area)
|
|||||||
}
|
}
|
||||||
else
|
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;
|
out->text_last->stamp = ent->stamp;
|
||||||
|
@ -252,7 +252,7 @@ struct _GtkXTextClass
|
|||||||
};
|
};
|
||||||
|
|
||||||
GtkWidget *gtk_xtext_new (GdkColor palette[], int separator);
|
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,
|
void gtk_xtext_append_indent (xtext_buffer *buf,
|
||||||
unsigned char *left_text, int left_len,
|
unsigned char *left_text, int left_len,
|
||||||
unsigned char *right_text, int right_len,
|
unsigned char *right_text, int right_len,
|
||||||
|
Loading…
Reference in New Issue
Block a user