[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 11:32:03

  Modified:    .        x_fileselect.c
  Log:
  Set the alternative button order for gtk dialogs.
  
  Fix for bug #1553483
  
  
  
  Gattrib:
  
  	* src/x_fileselect.c:
  
  
  
  	  Set the alternative button order for gtk dialogs.
  
  	  This would allow to display the correct button order whatever
  
  	  system is running this app.
  
  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.
  
  	 This would allow to display the correct button order whatever
  
  	 system is running this app.
  
  
  
  
  Revision  Changes    Path
  1.14      +21 -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.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- x_fileselect.c	23 Sep 2006 09:04:27 -0000	1.13
  +++ x_fileselect.c	21 Apr 2007 15:32:03 -0000	1.14
  @@ -307,6 +307,16 @@
                                           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_OK,
  +					  GTK_RESPONSE_NO,
  +					  GTK_RESPONSE_CANCEL,
  +					  GTK_RESPONSE_HELP,
  +					  -1);
  +#endif
  +
     g_object_set (dialog,
                   /* GtkFileChooser */
                   "select-multiple", TRUE,
  @@ -353,6 +363,17 @@
                                           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_OK,
  +					  GTK_RESPONSE_NO,
  +					  GTK_RESPONSE_CANCEL,
  +					  GTK_RESPONSE_HELP,
  +					  -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