From ed46e154e2e2a4083baa2f13009e204f07f15a0c Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Fri, 2 Mar 2018 10:20:50 +0100 Subject: rename mate_dialog_add_button to eel_dialog_add_button --- eel/eel-stock-dialogs.c | 24 ++++++++++++------------ eel/eel-stock-dialogs.h | 4 ++++ 2 files changed, 16 insertions(+), 12 deletions(-) (limited to 'eel') diff --git a/eel/eel-stock-dialogs.c b/eel/eel-stock-dialogs.c index 97597e09..5cc9487e 100644 --- a/eel/eel-stock-dialogs.c +++ b/eel/eel-stock-dialogs.c @@ -191,11 +191,11 @@ trash_dialog_response_callback (GtkDialog *dialog, gtk_widget_destroy (GTK_WIDGET (dialog)); } -static void -mate_dialog_add_button (GtkDialog *dialog, - const gchar *button_text, - const gchar *icon_name, - gint response_id) +void +eel_dialog_add_button (GtkDialog *dialog, + const gchar *button_text, + const gchar *icon_name, + gint response_id) { GtkWidget *button; @@ -232,9 +232,9 @@ timed_wait_callback (gpointer callback_data) NULL); if (g_strcmp0 (button, "process-stop") == 0) - mate_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), button, GTK_RESPONSE_OK); + eel_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), button, GTK_RESPONSE_OK); else - mate_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), button, GTK_RESPONSE_OK); + eel_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), button, GTK_RESPONSE_OK); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); @@ -387,9 +387,9 @@ eel_run_simple_dialog (GtkWidget *parent, gboolean ignore_close_box, } if (g_strcmp0 (button_title, "process-stop") == 0) - mate_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), button_title, response_id); + eel_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), button_title, response_id); else - mate_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), button_title, response_id); + eel_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), button_title, response_id); gtk_dialog_set_default_response (GTK_DIALOG (dialog), response_id); response_id++; @@ -588,14 +588,14 @@ eel_create_question_dialog (const char *primary_text, parent); if (g_strcmp0 (answer_1, "process-stop") == 0) - mate_dialog_add_button (dialog, _("_Cancel"), answer_1, response_1); + eel_dialog_add_button (dialog, _("_Cancel"), answer_1, response_1); else gtk_dialog_add_button (dialog, answer_1, response_1); if (g_strcmp0 (answer_2, "gtk-ok") == 0) - mate_dialog_add_button (dialog, _("_OK"), answer_2, response_2); + eel_dialog_add_button (dialog, _("_OK"), answer_2, response_2); else if (g_strcmp0 (answer_2, "edit-clear") == 0) - mate_dialog_add_button (dialog, _("_Clear"), answer_2, response_2); + eel_dialog_add_button (dialog, _("_Clear"), answer_2, response_2); else gtk_dialog_add_button (dialog, answer_2, response_2); diff --git a/eel/eel-stock-dialogs.h b/eel/eel-stock-dialogs.h index 8c138a14..d61c1bb1 100644 --- a/eel/eel-stock-dialogs.h +++ b/eel/eel-stock-dialogs.h @@ -49,6 +49,10 @@ int eel_run_simple_dialog (GtkWidget *parent, const char *primary_text, const char *secondary_text, ...); +void eel_dialog_add_button (GtkDialog *dialog, + const gchar *button_text, + const gchar *icon_name, + gint response_id); /* Variations on mate stock dialogs; these do line wrapping, we don't * bother with non-parented versions, we allow setting the title, -- cgit v1.2.1