@@ -554,6 +554,24 @@ diff_button_clicked_cb (GtkButton *w,
554554 }
555555}
556556
557+ static void
558+ mate_dialog_add_button (GtkDialog * dialog ,
559+ const gchar * button_text ,
560+ const gchar * icon_name ,
561+ gint response_id )
562+ {
563+ GtkWidget * button ;
564+
565+ button = gtk_button_new_with_mnemonic (button_text );
566+ gtk_button_set_image (GTK_BUTTON (button ), gtk_image_new_from_icon_name (icon_name , GTK_ICON_SIZE_BUTTON ));
567+
568+ gtk_button_set_use_underline (GTK_BUTTON (button ), TRUE);
569+ gtk_style_context_add_class (gtk_widget_get_style_context (button ), "text-button" );
570+ gtk_widget_set_can_default (button , TRUE);
571+ gtk_widget_show (button );
572+ gtk_dialog_add_action_widget (GTK_DIALOG (dialog ), button , response_id );
573+ }
574+
557575static void
558576caja_file_conflict_dialog_init (CajaFileConflictDialog * fcd )
559577{
@@ -650,12 +668,15 @@ caja_file_conflict_dialog_init (CajaFileConflictDialog *fcd)
650668 G_CALLBACK (checkbox_toggled_cb ), dialog );
651669
652670 /* Add buttons */
653- gtk_dialog_add_buttons (dialog ,
654- "gtk-cancel" ,
655- GTK_RESPONSE_CANCEL ,
656- _ ("_Skip" ),
657- CONFLICT_RESPONSE_SKIP ,
658- NULL );
671+ mate_dialog_add_button (dialog ,
672+ _ ("_Cancel" ),
673+ "process-stop" ,
674+ GTK_RESPONSE_CANCEL );
675+
676+ gtk_dialog_add_button (dialog ,
677+ _ ("_Skip" ),
678+ CONFLICT_RESPONSE_SKIP );
679+
659680 details -> rename_button =
660681 gtk_dialog_add_button (dialog ,
661682 _ ("Re_name" ),
0 commit comments