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

gEDA-cvs: CVS update: i_callbacks.c



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

  Modified:    .        i_callbacks.c o_picture.c x_attribedit.c
                        x_autonumber.c x_compselect.c x_dialog.c
                        x_fileselect.c x_image.c x_multiattrib.c
                        x_pagesel.c x_print.c x_script.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.82      +9 -0      eda/geda/gaf/gschem/src/i_callbacks.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: i_callbacks.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/i_callbacks.c,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -b -r1.81 -r1.82
  --- i_callbacks.c	21 Apr 2007 18:33:41 -0000	1.81
  +++ i_callbacks.c	21 Apr 2007 18:59:06 -0000	1.82
  @@ -1762,6 +1762,15 @@
                                      GTK_MESSAGE_QUESTION,
                                      GTK_BUTTONS_YES_NO,
                                      _("Really revert page?"));
  +
  +#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_YES,
  +					  GTK_RESPONSE_NO,
  +					  -1);
  +#endif
  +
     response = gtk_dialog_run (GTK_DIALOG (dialog));
     gtk_widget_destroy (dialog);
   
  
  
  
  1.15      +17 -0     eda/geda/gaf/gschem/src/o_picture.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_picture.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/o_picture.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- o_picture.c	21 Apr 2007 18:33:41 -0000	1.14
  +++ o_picture.c	21 Apr 2007 18:59:07 -0000	1.15
  @@ -175,6 +175,14 @@
   						      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(w_current->pfswindow),
  +					  GTK_RESPONSE_ACCEPT,
  +					  GTK_RESPONSE_CANCEL,
  +					  -1);
  +#endif
  +
     if (w_current->pixbuf_filename)
       gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(w_current->pfswindow), 
   				  w_current->pixbuf_filename);
  @@ -707,6 +715,15 @@
   						      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(w_current->pfswindow),
  +					  GTK_RESPONSE_ACCEPT,
  +					  GTK_RESPONSE_CANCEL,
  +					  -1);
  +#endif
  +
     if (w_current->pixbuf_filename)
       gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(w_current->pfswindow), 
   				  w_current->pixbuf_filename);
  
  
  
  1.12      +7 -0      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.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- x_attribedit.c	21 Apr 2007 18:33:42 -0000	1.11
  +++ x_attribedit.c	21 Apr 2007 18:59:07 -0000	1.12
  @@ -330,6 +330,13 @@
   					 GTK_STOCK_OK,
   					 GTK_RESPONSE_APPLY,
   					 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(aewindow),
  +					  GTK_RESPONSE_APPLY,
  +					  GTK_RESPONSE_REJECT,
  +					  -1);
  +#endif
   					 
     gtk_signal_connect(GTK_OBJECT(aewindow), "response",
   		     GTK_SIGNAL_FUNC(attribute_edit_dialog_response), w_current);
  
  
  
  1.14      +7 -0      eda/geda/gaf/gschem/src/x_autonumber.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_autonumber.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_autonumber.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- x_autonumber.c	21 Apr 2007 18:33:43 -0000	1.13
  +++ x_autonumber.c	21 Apr 2007 18:59:07 -0000	1.14
  @@ -1224,6 +1224,13 @@
   						GTK_STOCK_APPLY,
   						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(autonumber_text),
  +					  GTK_RESPONSE_ACCEPT,
  +					  GTK_RESPONSE_REJECT,
  +					  -1);
  +#endif
   
     gtk_window_position (GTK_WINDOW (autonumber_text),
   		       GTK_WIN_POS_MOUSE);
  
  
  
  1.20      +9 -0      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.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- x_compselect.c	21 Apr 2007 18:33:43 -0000	1.19
  +++ x_compselect.c	21 Apr 2007 18:59:07 -0000	1.20
  @@ -715,6 +715,15 @@
     g_object_set (GTK_DIALOG (compselect)->vbox,
                   "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",
  
  
  
  1.86      +123 -0    eda/geda/gaf/gschem/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/gschem/src/x_dialog.c,v
  retrieving revision 1.85
  retrieving revision 1.86
  diff -u -b -r1.85 -r1.86
  --- x_dialog.c	21 Apr 2007 18:33:44 -0000	1.85
  +++ x_dialog.c	21 Apr 2007 18:59:07 -0000	1.86
  @@ -188,6 +188,14 @@
   						      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(w_current->tiwindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW (w_current->tiwindow),
                           GTK_WIN_POS_NONE);
   
  @@ -504,6 +512,14 @@
   						      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(w_current->tewindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_dialog_set_default_response(GTK_DIALOG(w_current->tewindow),
   				    GTK_RESPONSE_ACCEPT);
   
  @@ -860,6 +876,14 @@
   				       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_REJECT,
  +					  -1);
  +#endif
  +
     gtk_window_position(GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
     
     gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
  @@ -1238,6 +1262,14 @@
   				       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_REJECT,
  +					  -1);
  +#endif
  +
     gtk_window_position(GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
     
     gtk_dialog_set_default_response(GTK_DIALOG(dialog),
  @@ -1451,6 +1483,14 @@
   						      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(w_current->aawindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW(w_current->aawindow),
                           GTK_WIN_POS_MOUSE);
   
  @@ -1562,6 +1602,15 @@
   						      GTK_STOCK_OK,
   						      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(w_current->trwindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW (w_current->trwindow),
                           GTK_WIN_POS_MOUSE);
   
  @@ -1653,6 +1702,14 @@
                                                         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(w_current->tswindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW(w_current->tswindow),
                           GTK_WIN_POS_MOUSE);
   
  @@ -1751,6 +1808,14 @@
                                                         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(w_current->tswindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW(w_current->tswindow),
                           GTK_WIN_POS_MOUSE);
   
  @@ -1847,6 +1912,14 @@
   						      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(w_current->sewindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW(w_current->sewindow),
                           GTK_WIN_POS_MOUSE);
   
  @@ -2341,6 +2414,14 @@
   						      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(w_current->clwindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position (GTK_WINDOW (w_current->clwindow),
                            GTK_WIN_POS_MOUSE);
   
  @@ -2708,6 +2789,14 @@
   					  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_CANCEL,
  +					  -1);
  +#endif
  +
     gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
   
     /* Pick the current default folder to look for files in */
  @@ -2842,6 +2931,14 @@
   							 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(w_current->tfindwindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW(w_current->tfindwindow),
   			GTK_WIN_POS_MOUSE);
   
  @@ -2940,6 +3037,14 @@
   						      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(w_current->thidewindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW(w_current->thidewindow),
   			GTK_WIN_POS_MOUSE);
   
  @@ -3032,6 +3137,14 @@
   						      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(w_current->tshowwindow),
  +					    GTK_RESPONSE_ACCEPT,
  +					    GTK_RESPONSE_REJECT,
  +					    -1);
  +#endif
  +
       gtk_window_position(GTK_WINDOW(w_current->tshowwindow),
   			GTK_WIN_POS_MOUSE);
   
  @@ -3668,6 +3781,15 @@
                             GTK_STOCK_SAVE,             GTK_RESPONSE_YES,
                             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_YES,
  +					  GTK_RESPONSE_NO,
  +					  GTK_RESPONSE_CANCEL,
  +					  -1);
  +#endif
  +
     /* all done, let's show the contents of the dialog */
   	gtk_widget_show_all (hbox);
   
  @@ -3908,6 +4030,7 @@
     dialog = GTK_WIDGET (g_object_new (TYPE_CLOSE_CONFIRMATION_DIALOG,
                                        "unsaved-pages", unsaved_pages,
                                        NULL));
  +
     g_list_free (unsaved_pages);
     switch (gtk_dialog_run (GTK_DIALOG (dialog))) {
         case GTK_RESPONSE_NO:
  
  
  
  1.35      +26 -0     eda/geda/gaf/gschem/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/gschem/src/x_fileselect.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -b -r1.34 -r1.35
  --- x_fileselect.c	21 Apr 2007 18:33:46 -0000	1.34
  +++ x_fileselect.c	21 Apr 2007 18:59:07 -0000	1.35
  @@ -174,6 +174,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
  +
     x_fileselect_add_preview (GTK_FILE_CHOOSER (dialog));  
     g_object_set (dialog,
                   /* GtkFileChooser */
  @@ -224,6 +233,14 @@
                                           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
  +
     /* set default response signal. This is usually triggered by the 
        "Return" key */
     gtk_dialog_set_default_response(GTK_DIALOG(dialog),
  @@ -279,6 +296,15 @@
   			  GTK_MESSAGE_QUESTION,
   			  GTK_BUTTONS_YES_NO,
   			  message->str);
  +
  +#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_YES,
  +					  GTK_RESPONSE_NO,
  +					  -1);
  +#endif
  +
     gtk_widget_show (dialog);
     if (gtk_dialog_run ((GtkDialog*)dialog) == GTK_RESPONSE_YES) {
       gtk_widget_destroy(dialog);  
  
  
  
  1.36      +9 -1      eda/geda/gaf/gschem/src/x_image.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_image.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_image.c,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -b -r1.35 -r1.36
  --- x_image.c	21 Apr 2007 18:33:48 -0000	1.35
  +++ x_image.c	21 Apr 2007 18:59:07 -0000	1.36
  @@ -499,6 +499,14 @@
   					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
  +  
     /* Add the extra widgets to the dialog*/
     gtk_box_pack_start(GTK_BOX(hbox), vbox1, FALSE, FALSE, 10);
     gtk_box_pack_start(GTK_BOX(hbox), vbox2, FALSE, FALSE, 10);
  
  
  
  1.9       +1 -0      eda/geda/gaf/gschem/src/x_multiattrib.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_multiattrib.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_multiattrib.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- x_multiattrib.c	21 Apr 2007 18:33:52 -0000	1.8
  +++ x_multiattrib.c	21 Apr 2007 18:59:07 -0000	1.9
  @@ -650,6 +650,7 @@
         GTK_MESSAGE_ERROR,
         GTK_BUTTONS_OK,
         _("Attributes with empty name are not allowed. Please set a name."));
  +
       gtk_dialog_run (GTK_DIALOG (dialog));
       gtk_widget_destroy (dialog);
       return;
  
  
  
  1.18      +9 -0      eda/geda/gaf/gschem/src/x_pagesel.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_pagesel.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_pagesel.c,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -b -r1.17 -r1.18
  --- x_pagesel.c	21 Apr 2007 18:33:56 -0000	1.17
  +++ x_pagesel.c	21 Apr 2007 18:59:07 -0000	1.18
  @@ -479,6 +479,15 @@
                             GTK_STOCK_CLOSE,   PAGESEL_RESPONSE_CLOSE,
                             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(pagesel),
  +					  PAGESEL_RESPONSE_UPDATE,
  +					  PAGESEL_RESPONSE_CLOSE,
  +					  -1);
  +#endif
  +
  +  
   }
   
   /*! \todo Finish function documentation!!!
  
  
  
  1.34      +16 -0     eda/geda/gaf/gschem/src/x_print.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_print.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_print.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -b -r1.33 -r1.34
  --- x_print.c	21 Apr 2007 18:34:06 -0000	1.33
  +++ x_print.c	21 Apr 2007 18:59:07 -0000	1.34
  @@ -95,6 +95,14 @@
   					     GTK_STOCK_OK,
   					     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(filechooser),
  +					  GTK_RESPONSE_ACCEPT,
  +					  GTK_RESPONSE_CANCEL,
  +					  -1);
  +#endif
  +
     filename = gtk_entry_get_text (GTK_ENTRY (dialog->fnfield));
     gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (filechooser), filename);
   
  @@ -423,6 +431,14 @@
   			  GTK_STOCK_PRINT, 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_REJECT,
  +					  -1);
  +#endif
  +
     /* Set initial radiobutton selection */
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->cmdradio), TRUE);
   }
  
  
  
  1.15      +8 -0      eda/geda/gaf/gschem/src/x_script.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_script.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_script.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- x_script.c	21 Apr 2007 18:34:14 -0000	1.14
  +++ x_script.c	21 Apr 2007 18:59:07 -0000	1.15
  @@ -55,6 +55,14 @@
   				 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(w_current->sowindow),
  +					  GTK_RESPONSE_ACCEPT,
  +					  GTK_RESPONSE_CANCEL,
  +					  -1);
  +#endif
  +
     if (gtk_dialog_run (GTK_DIALOG (w_current->sowindow)) == GTK_RESPONSE_ACCEPT) {
       filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (w_current->sowindow));
   
  
  
  


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