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

gEDA-cvs: CVS update: x_attribedit.c



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

  Modified:    .        x_attribedit.c
  Log:
  use GINT_TO_POINTER() and GPOINTER_TO_INT() when passing ints to callback functions
  
  
  Revision  Changes    Path
  1.4       +3 -3      eda/geda/gaf/gschem/src/x_attribedit.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_attribedit.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_attribedit.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- x_attribedit.c	6 Aug 2006 16:45:29 -0000	1.3
  +++ x_attribedit.c	19 Oct 2006 22:37:36 -0000	1.4
  @@ -238,8 +238,8 @@
         new = o_attrib_add_attrib(w_current, newtext, vis, show, object);
   
         invocation_flag =
  -	(int) gtk_object_get_data(GTK_OBJECT(w_current->aewindow),
  -				  "invocation_flag");
  +	GPOINTER_TO_INT( gtk_object_get_data(GTK_OBJECT(w_current->aewindow),
  +				  "invocation_flag") );
         
   #if DEBUG
         printf("invocation flag: %d\n", invocation_flag);
  @@ -609,7 +609,7 @@
       gtk_entry_select_region(GTK_ENTRY(value_entry), 0, len);
     }
     gtk_object_set_data(GTK_OBJECT(aewindow), "invocation_flag",
  -                      (gpointer) flag);
  +                      GINT_TO_POINTER(flag));
     
     /* gschem specific */
     i = 0;
  
  
  


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