Browse Source

* Don't allow deprecated glib functions.

* Replace deprecated io channel function.


(Old svn revision: 26469)
upstream/xfce4-panel-4.10.1
Nick Schermer 15 years ago
parent
commit
4a10c1fd25
  1. 7
      configure.in.in
  2. 6
      panel/panel-app.c

7
configure.in.in

@ -151,10 +151,11 @@ dnl *** Check for gtk-doc ***
dnl *************************
GTK_DOC_CHECK([1.0])
dnl ******************************************
dnl *** Disable deprecated Xfce components ***
dnl ******************************************
dnl *************************************
dnl *** Disable deprecated components ***
dnl *************************************
AC_DEFINE([XFCE_DISABLE_DEPRECATED], [1], [Define to 1 to disable deprecated Xfce components])
AC_DEFINE([G_DISABLE_DEPRECATED], [1], [Define to 1 to disable deprecated Glib components])
dnl ***********************************
dnl *** Check for debugging support ***

6
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)

Loading…
Cancel
Save