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

gEDA-cvs: CVS update: x_compselect.c



  User: cnieves 
  Date: 07/06/09 08:17:29

  Modified:    .        x_compselect.c
  Log:
  Set alternative button order after buttons are created.
  
  
  
  Apply patch from Cesar Strauss, moving the 
  
  gtk_dialog_set_alternative_button_order call after buttons are 
  
  created, in the component selector window. Thanks.
  
  
  
  
  Revision  Changes    Path
  1.23                 eda/geda/gaf/gschem/src/x_compselect.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_compselect.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_compselect.c,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -b -r1.22 -r1.23
  --- x_compselect.c	29 May 2007 23:06:05 -0000	1.22
  +++ x_compselect.c	9 Jun 2007 12:17:29 -0000	1.23
  @@ -711,14 +711,6 @@
                   "homogeneous", FALSE,
                   NULL);
   
  -#if GTK_CHECK_VERSION (2,6,0)
  -  /* Set the alternative button order (ok, cancel, help) for other systems */
  -  gtk_dialog_set_alternative_button_order(GTK_DIALOG(compselect),
  -					  GTK_RESPONSE_OK,
  -					  GTK_RESPONSE_APPLY,
  -					  GTK_RESPONSE_CLOSE,
  -					  -1);
  -#endif
     /* connect dialog to key press event */
     g_signal_connect (compselect,
                       "key_press_event",
  @@ -928,6 +920,14 @@
   			  GTK_STOCK_OK, GTK_RESPONSE_OK,
                             NULL);
   
  +#if GTK_CHECK_VERSION (2,6,0)
  +  /* Set the alternative button order (ok, cancel, help) for other systems */
  +  gtk_dialog_set_alternative_button_order(GTK_DIALOG(compselect),
  +					  GTK_RESPONSE_OK,
  +					  GTK_RESPONSE_APPLY,
  +					  GTK_RESPONSE_CLOSE,
  +					  -1);
  +#endif
     /* Initialize the hidden property */
     compselect->hidden = FALSE;
   }
  
  
  


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