diff options
author | Nick Schermer <nick@xfce.org> | 2007-12-13 10:25:48 +0000 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2007-12-13 10:25:48 +0000 |
commit | 4a10c1fd251c6199e759edd5eb6afdf5122d3c41 (patch) | |
tree | 050743f2d721fe8c537b3106342a25a09b60c89d /panel | |
parent | b33e640fd84d88537245f70eafa6b948cf7fced4 (diff) |
* Don't allow deprecated glib functions.
* Replace deprecated io channel function.
(Old svn revision: 26469)
Diffstat (limited to 'panel')
-rw-r--r-- | panel/panel-app.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/panel/panel-app.c b/panel/panel-app.c index f6d43601..12fe95e2 100644 --- a/panel/panel-app.c +++ b/panel/panel-app.c @@ -296,9 +296,9 @@ signal_pipe_io (GIOChannel *source, gint signal; gsize bytes_read; - if (G_IO_ERROR_NONE == g_io_channel_read (source, (gchar *)&signal, - sizeof (signal), - &bytes_read) + if (G_IO_STATUS_NORMAL == g_io_channel_read_chars (source, (gchar *)&signal, + sizeof (signal), + &bytes_read, NULL) && sizeof(signal) == bytes_read) { switch (signal) |