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

gEDA-cvs: CVS update: i_callbacks.c



  User: pcjc2   
  Date: 07/04/21 10:49:11

  Modified:    .        i_callbacks.c
  Log:
  Make test for revert page question more succinct, testing for the absence of the
  
  "YES" response, rather than for the various ways the user might cancel the dialog.
  
  
  
  
  Revision  Changes    Path
  1.79      +10 -19    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.78
  retrieving revision 1.79
  diff -u -b -r1.78 -r1.79
  --- i_callbacks.c	21 Apr 2007 14:03:55 -0000	1.78
  +++ i_callbacks.c	21 Apr 2007 14:49:11 -0000	1.79
  @@ -1765,17 +1765,8 @@
    response = gtk_dialog_run (GTK_DIALOG (dialog));
    gtk_widget_destroy (dialog);
    
  - switch (response) 
  - {
  -   case GTK_RESPONSE_NO:
  -   case GTK_RESPONSE_DELETE_EVENT:
  -     return; /* don't continue */
  -   break; 
  -
  -   case GTK_RESPONSE_YES:
  -   /* just fall through */
  -   break;
  - }
  +  if (response != GTK_RESPONSE_YES )
  +    return;
   
     /* save this for later */
     filename = g_strdup (w_current->page_current->page_filename);
  
  
  


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