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

gEDA-cvs: CVS update: x_fileselect.c



  User: cnieves 
  Date: 07/04/21 14:59:06

  Modified:    .        x_fileselect.c
  Log:
  Set the alt. button order for dialogs (and correct responses).
  
  
  
  gschem:
  
         * src/o_picture.c, src/x_attribedit.c, src/x_autonumber.c,
  
  	 src/x_compselect.c, src/x_dialog.c, src/x_fileselect.c,
  
  	 src/x_image.c, src/x_log.c, src/x_multiattrib.c,
  
  	 src/x_pagesel.c, src/x_print.c, src/x_script.c,
  
  	 src/i_callbacks.c:
  
  
  
  	 - Set the alternative button order for gtk dialogs 
  
  	   (now with correct responses).
  
  
  
  gattrib:
  
  	* src/x_fileselect.c:
  
  	 - Set the alternative button order for gtk dialogs 
  
  	   (now with correct responses).
  
  
  
  
  Revision  Changes    Path
  1.16      +18 -0     eda/geda/gaf/gattrib/src/x_fileselect.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_fileselect.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/x_fileselect.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- x_fileselect.c	21 Apr 2007 18:37:10 -0000	1.15
  +++ x_fileselect.c	21 Apr 2007 18:59:06 -0000	1.16
  @@ -307,6 +307,15 @@
                                           GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                           GTK_STOCK_OPEN,   GTK_RESPONSE_ACCEPT,
                                           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(dialog),
  +					  GTK_RESPONSE_ACCEPT,
  +					  GTK_RESPONSE_CANCEL,
  +					  -1);
  +#endif
  +  
     g_object_set (dialog,
                   /* GtkFileChooser */
                   "select-multiple", TRUE,
  @@ -353,6 +362,15 @@
                                           GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                           GTK_STOCK_SAVE,   GTK_RESPONSE_ACCEPT,
                                           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(dialog),
  +					  GTK_RESPONSE_ACCEPT,
  +					  GTK_RESPONSE_CANCEL,
  +					  -1);
  +#endif
  +  
     g_object_set (dialog,
                   /* GtkFileChooser */
                   "select-multiple", FALSE,
  
  
  


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