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

gEDA-cvs: CVS update: i_callbacks.c



  User: pbernaud
  Date: 06/10/20 18:59:05

  Modified:    .        i_callbacks.c
  Log:
  Fixed misbehaviour of main window closing even if user cancelled
  
  
  
  
  Revision  Changes    Path
  1.69      +8 -1      eda/geda/gaf/gschem/src/i_callbacks.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: i_callbacks.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/i_callbacks.c,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -b -r1.68 -r1.69
  --- i_callbacks.c	18 Oct 2006 19:43:22 -0000	1.68
  +++ i_callbacks.c	20 Oct 2006 22:59:05 -0000	1.69
  @@ -3584,7 +3584,7 @@
    *  used when you click the close button on the window which sends a DELETE
    *  signal to the app
    */
  -void i_callback_close_wm ( GtkWidget *widget, GdkEvent *event, 
  +gboolean i_callback_close_wm ( GtkWidget *widget, GdkEvent *event, 
   	                   gpointer data ) 
   {
   
  @@ -3592,4 +3592,11 @@
     exit_if_null(w_current);
   
     x_window_close(w_current);
  +
  +  /* stop further propagation of the delete_event signal for window: */
  +  /*   - if user has cancelled the close the window should obvioulsy */
  +  /*   not be destroyed */
  +  /*   - otherwise window has already been destroyed, nothing more to */
  +  /*   do */
  +  return TRUE;
   }
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs