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

gEDA-cvs: CVS update: x_dialog.c



  User: danmc   
  Date: 06/10/19 18:37:36

  Modified:    .        x_dialog.c
  Log:
  use GINT_TO_POINTER() and GPOINTER_TO_INT() when passing ints to callback functions
  
  
  Revision  Changes    Path
  1.25      +3 -3      eda/geda/gaf/gattrib/src/x_dialog.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_dialog.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/x_dialog.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -b -r1.24 -r1.25
  --- x_dialog.c	11 Oct 2006 05:54:59 -0000	1.24
  +++ x_dialog.c	19 Oct 2006 22:37:36 -0000	1.25
  @@ -1,4 +1,4 @@
  -/* $Id: x_dialog.c,v 1.24 2006/10/11 05:54:59 danmc Exp $ */
  +/* $Id: x_dialog.c,v 1.25 2006/10/19 22:37:36 danmc Exp $ */
   
   /* gEDA - GPL Electronic Design Automation
    * gattrib -- gEDA component and net attribute manipulation using spreadsheet.
  @@ -751,7 +751,7 @@
     gtk_box_pack_start(GTK_BOX(action_area), buttonok, FALSE, FALSE, 0);
     gtk_signal_connect(GTK_OBJECT(buttonok), "clicked",
   		     GTK_SIGNAL_FUNC(x_dialog_exit_announcement_close_callback),
  -		     (gpointer) return_code );
  +		     GINT_TO_POINTER( return_code ) );
     gtk_widget_show(buttonok);
   
     /* set this to grab ability to override other windows */
  @@ -769,7 +769,7 @@
   void x_dialog_exit_announcement_close_callback(GtkWidget *buttonok, 
   				    gpointer return_code)
   {
  -  gattrib_quit( (gint) return_code);
  +  gattrib_quit( GPOINTER_TO_INT(return_code) );
   }
   
   
  
  
  


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