@@ -655,6 +655,24 @@ profile_list_delete_confirm_response_cb (GtkWidget *dialog,
655655 gtk_widget_destroy (dialog );
656656}
657657
658+ static void
659+ mate_dialog_add_button (GtkDialog * dialog ,
660+ const gchar * button_text ,
661+ const gchar * icon_name ,
662+ gint response_id )
663+ {
664+ GtkWidget * button ;
665+
666+ button = gtk_button_new_with_mnemonic (button_text );
667+ gtk_button_set_image (GTK_BUTTON (button ), gtk_image_new_from_icon_name (icon_name , GTK_ICON_SIZE_BUTTON ));
668+
669+ gtk_button_set_use_underline (GTK_BUTTON (button ), TRUE);
670+ gtk_style_context_add_class (gtk_widget_get_style_context (button ), "text-button" );
671+ gtk_widget_set_can_default (button , TRUE);
672+ gtk_widget_show (button );
673+ gtk_dialog_add_action_widget (GTK_DIALOG (dialog ), button , response_id );
674+ }
675+
658676static void
659677profile_list_delete_button_clicked_cb (GtkWidget * button ,
660678 GtkWidget * widget )
@@ -684,12 +702,15 @@ profile_list_delete_button_clicked_cb (GtkWidget *button,
684702 _ ("Delete profile “%s”?" ),
685703 terminal_profile_get_property_string (selected_profile , TERMINAL_PROFILE_VISIBLE_NAME ));
686704
687- gtk_dialog_add_buttons (GTK_DIALOG (dialog ),
688- "gtk-cancel" ,
689- GTK_RESPONSE_REJECT ,
690- "gtk-delete" ,
691- GTK_RESPONSE_ACCEPT ,
692- NULL );
705+ mate_dialog_add_button (GTK_DIALOG (dialog ),
706+ _ ("_Cancel" ),
707+ "process-stop" ,
708+ GTK_RESPONSE_REJECT );
709+
710+ mate_dialog_add_button (GTK_DIALOG (dialog ),
711+ _ ("_Delete" ),
712+ "edit-delete" ,
713+ GTK_RESPONSE_ACCEPT );
693714
694715 gtk_dialog_set_default_response (GTK_DIALOG (dialog ),
695716 GTK_RESPONSE_ACCEPT );
0 commit comments