Commit fa84c746 authored by Christian Persch's avatar Christian Persch

Use g_strerror() instead of strerror().

	* src/vte.c: (vte_terminal_refresh_size), (vte_terminal_set_size):
	Use g_strerror() instead of strerror().

svn path=/trunk/; revision=2375
parent f6170007
2009-03-02 Christian Persch <chpe@gnome.org>
* src/vte.c: (vte_terminal_refresh_size), (vte_terminal_set_size):
Use g_strerror() instead of strerror().
2009-02-12 Behdad Esfahbod <behdad@gnome.org>
Bug 54926 Should try bold version of font before pseudo-bolding
......
......@@ -7666,8 +7666,10 @@ vte_terminal_refresh_size(VteTerminal *terminal)
if (terminal->pvt->pty_master != -1) {
/* Use an ioctl to read the size of the terminal. */
if (_vte_pty_get_size(terminal->pvt->pty_master, &columns, &rows) != 0) {
int errsv = errno;
g_warning(_("Error reading PTY size, using defaults: "
"%s."), strerror(errno));
"%s."), g_strerror(errsv));
} else {
terminal->row_count = rows;
terminal->column_count = columns;
......@@ -7702,8 +7704,8 @@ vte_terminal_set_size(VteTerminal *terminal, glong columns, glong rows)
if (terminal->pvt->pty_master != -1) {
/* Try to set the terminal size. */
if (_vte_pty_set_size(terminal->pvt->pty_master, columns, rows) != 0) {
g_warning(_("Error setting PTY size: %s."),
strerror(errno));
g_warning("Error setting PTY size: %s.",
g_strerror(errno));
}
/* Read the terminal size, in case something went awry. */
vte_terminal_refresh_size(terminal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment