diff options
author | Pablo Barciela <[email protected]> | 2018-03-02 10:20:50 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2018-03-03 12:04:31 +0100 |
commit | ed46e154e2e2a4083baa2f13009e204f07f15a0c (patch) | |
tree | a74f521652d9397b4a398b815048e324dfb5ef26 /libcaja-private/caja-file-conflict-dialog.c | |
parent | 4901253a0e740395aa7df52b225cda7f82bfe8d9 (diff) | |
download | caja-ed46e154e2e2a4083baa2f13009e204f07f15a0c.tar.bz2 caja-ed46e154e2e2a4083baa2f13009e204f07f15a0c.tar.xz |
rename mate_dialog_add_button to eel_dialog_add_button
Diffstat (limited to 'libcaja-private/caja-file-conflict-dialog.c')
-rw-r--r-- | libcaja-private/caja-file-conflict-dialog.c | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/libcaja-private/caja-file-conflict-dialog.c b/libcaja-private/caja-file-conflict-dialog.c index db9369be..2b9a7955 100644 --- a/libcaja-private/caja-file-conflict-dialog.c +++ b/libcaja-private/caja-file-conflict-dialog.c @@ -32,6 +32,7 @@ #include <glib/gi18n.h> #include <pango/pango.h> #include <eel/eel-vfs-extensions.h> +#include <eel/eel-stock-dialogs.h> #include "caja-file.h" #include "caja-icon-info.h" @@ -555,24 +556,6 @@ diff_button_clicked_cb (GtkButton *w, } static void -mate_dialog_add_button (GtkDialog *dialog, - const gchar *button_text, - const gchar *icon_name, - gint response_id) -{ - GtkWidget *button; - - button = gtk_button_new_with_mnemonic (button_text); - gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON)); - - gtk_button_set_use_underline (GTK_BUTTON (button), TRUE); - gtk_style_context_add_class (gtk_widget_get_style_context (button), "text-button"); - gtk_widget_set_can_default (button, TRUE); - gtk_widget_show (button); - gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, response_id); -} - -static void caja_file_conflict_dialog_init (CajaFileConflictDialog *fcd) { GtkWidget *hbox, *vbox, *vbox2; @@ -668,10 +651,10 @@ caja_file_conflict_dialog_init (CajaFileConflictDialog *fcd) G_CALLBACK (checkbox_toggled_cb), dialog); /* Add buttons */ - mate_dialog_add_button (dialog, - _("_Cancel"), - "process-stop", - GTK_RESPONSE_CANCEL); + eel_dialog_add_button (dialog, + _("_Cancel"), + "process-stop", + GTK_RESPONSE_CANCEL); gtk_dialog_add_button (dialog, _("_Skip"), |