bug report (0.99.8)



* Handling of timeout callbacks installed with gtk_timeout_add_interp is
  incorrect and results in segmentation faults.

  Patch:

diff -c -r gtk+-0.99.8/gtk/gtkmain.c gtk+-0.99.8.patched/gtk/gtkmain.c
*** gtk+-0.99.8/gtk/gtkmain.c   Wed Mar 18 07:05:59 1998
--- gtk+-0.99.8.patched/gtk/gtkmain.c   Tue Mar 24 18:27:57 1998
***************
*** 1291,1299 ****
        args[0].name = NULL;
        args[0].type = GTK_TYPE_BOOL;
        args[0].d.pointer_data = &ret_val;
!       ((GtkCallbackMarshal)timeoutf->function) (NULL,
!                                               timeoutf->data,
!                                               0, args);
        return ret_val;
      }
  }
--- 1291,1299 ----
        args[0].name = NULL;
        args[0].type = GTK_TYPE_BOOL;
        args[0].d.pointer_data = &ret_val;
!       (timeoutf->marshal) (NULL,
!                          timeoutf->data,
!                          0, args);
        return ret_val;
      }
  }
***************
*** 1380,1388 ****
        args[0].name = NULL;
        args[0].type = GTK_TYPE_BOOL;
        args[0].d.pointer_data = &ret_val;
!       ((GtkCallbackMarshal) quitf->marshal) (NULL,
!                                            quitf->data,
!                                            0, args);
        return ret_val;
      }
  }
--- 1380,1388 ----
        args[0].name = NULL;
        args[0].type = GTK_TYPE_BOOL;
        args[0].d.pointer_data = &ret_val;
!       (quitf->marshal) (NULL,
!                       quitf->data,
!                       0, args);
        return ret_val;
      }
  }


* Auto-configuration when using a compile directory not equal to source
  directory is incorrect. Some -I options put the source dir before the
  compile dir, resulting in the inclusion of the glibconfig.h that is in
  the source directory, not the correct (configured) version.
  This shows under SunOS 4 without wctype.h.

  Solution: have it include the configured dir before the source dir.

Regards,
David



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]