Don't call g_warning(). (#320688) Instead set error and return failure.

2005-11-05  Tor Lillqvist  <tml@novell.com>

	* glib/giowin32.c (g_io_win32_set_flags): Don't call g_warning().
	(#320688) Instead set error and return failure.
This commit is contained in:
Tor Lillqvist 2005-11-08 08:46:57 +00:00 committed by Tor Lillqvist
parent 6d763bd97c
commit 4884c293d1
4 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-11-05 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c (g_io_win32_set_flags): Don't call g_warning().
(#320688) Instead set error and return failure.
2005-11-07 Matthias Clasen <mclasen@redhat.com> 2005-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref * glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref

View File

@ -1,3 +1,8 @@
2005-11-05 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c (g_io_win32_set_flags): Don't call g_warning().
(#320688) Instead set error and return failure.
2005-11-07 Matthias Clasen <mclasen@redhat.com> 2005-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref * glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref

View File

@ -1,3 +1,8 @@
2005-11-05 Tor Lillqvist <tml@novell.com>
* glib/giowin32.c (g_io_win32_set_flags): Don't call g_warning().
(#320688) Instead set error and return failure.
2005-11-07 Matthias Clasen <mclasen@redhat.com> 2005-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref * glib/gmain.c (g_main_dispatch): Don't call cb_funcs->unref

View File

@ -1444,9 +1444,11 @@ g_io_win32_set_flags (GIOChannel *channel,
g_print ("\n"); g_print ("\n");
} }
g_warning ("g_io_win32_set_flags () not implemented.\n"); g_set_error (err, G_IO_CHANNEL_ERROR,
G_IO_CHANNEL_ERROR_FAILED,
"Not implemented on Win32");
return G_IO_STATUS_NORMAL; return G_IO_STATUS_ERROR;
} }
static GIOFlags static GIOFlags