More debug printf()s in GSocket_Write()
Did I touch plot.cpp ?
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6653
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
static void
gtk_pizza_unrealize (GtkWidget *widget)
{
static void
gtk_pizza_unrealize (GtkWidget *widget)
{
- g_return_if_fail (widget != NULL);
- g_return_if_fail (GTK_IS_PIZZA (widget));
+ g_return_if_fail (widget != NULL);
+ g_return_if_fail (GTK_IS_PIZZA (widget));
- pizza = GTK_PIZZA (widget);
+ pizza = GTK_PIZZA (widget);
- gdk_window_set_user_data (pizza->bin_window, NULL);
- gdk_window_destroy (pizza->bin_window);
- pizza->bin_window = NULL;
+ gdk_window_set_user_data (pizza->bin_window, NULL);
+ gdk_window_destroy (pizza->bin_window);
+ pizza->bin_window = NULL;
- if (GTK_WIDGET_CLASS (parent_class)->unrealize)
- (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);
+ if (GTK_WIDGET_CLASS (parent_class)->unrealize)
+ (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);
/* Sometimes, We handle all expose events in window.cpp now. */
if (pizza->external_expose)
/* Sometimes, We handle all expose events in window.cpp now. */
if (pizza->external_expose)
if (event->window != pizza->bin_window)
return FALSE;
if (event->window != pizza->bin_window)
return FALSE;
static void
gtk_pizza_unrealize (GtkWidget *widget)
{
static void
gtk_pizza_unrealize (GtkWidget *widget)
{
- g_return_if_fail (widget != NULL);
- g_return_if_fail (GTK_IS_PIZZA (widget));
+ g_return_if_fail (widget != NULL);
+ g_return_if_fail (GTK_IS_PIZZA (widget));
- pizza = GTK_PIZZA (widget);
+ pizza = GTK_PIZZA (widget);
- gdk_window_set_user_data (pizza->bin_window, NULL);
- gdk_window_destroy (pizza->bin_window);
- pizza->bin_window = NULL;
+ gdk_window_set_user_data (pizza->bin_window, NULL);
+ gdk_window_destroy (pizza->bin_window);
+ pizza->bin_window = NULL;
- if (GTK_WIDGET_CLASS (parent_class)->unrealize)
- (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);
+ if (GTK_WIDGET_CLASS (parent_class)->unrealize)
+ (* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);
/* Sometimes, We handle all expose events in window.cpp now. */
if (pizza->external_expose)
/* Sometimes, We handle all expose events in window.cpp now. */
if (pizza->external_expose)
if (event->window != pizza->bin_window)
return FALSE;
if (event->window != pizza->bin_window)
return FALSE;
if (ret == -1)
{
if (errno == EWOULDBLOCK)
if (ret == -1)
{
if (errno == EWOULDBLOCK)
socket->m_error = GSOCK_WOULDBLOCK;
socket->m_error = GSOCK_WOULDBLOCK;
+ printf( "GSocket_Write error WOULDBLOCK\n" );
+ }
socket->m_error = GSOCK_IOERR;
socket->m_error = GSOCK_IOERR;
+ printf( "GSocket_Write error IOERR\n" );
+ }
/* Only reenable OUTPUT events after an error (just like WSAAsyncSelect
* in MSW). Once the first OUTPUT event is received, users can assume
/* Only reenable OUTPUT events after an error (just like WSAAsyncSelect
* in MSW). Once the first OUTPUT event is received, users can assume