[nautilus] eel-stock-dialogs: Remove eel_run_simple_dialog
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel-stock-dialogs: Remove eel_run_simple_dialog
- Date: Tue, 28 Dec 2021 23:48:37 +0000 (UTC)
commit b85def1615cc76a8f9179bd7c7a7263f4d721079
Author: Matthew Jakeman <mjakeman26 outlook co nz>
Date: Mon Dec 27 19:44:01 2021 +1300
eel-stock-dialogs: Remove eel_run_simple_dialog
This method is no longer used anywhere and can be
safely removed.
Part of #1992
eel/eel-stock-dialogs.c | 58 ++++++-------------------------------------------
eel/eel-stock-dialogs.h | 6 -----
2 files changed, 7 insertions(+), 57 deletions(-)
---
diff --git a/eel/eel-stock-dialogs.c b/eel/eel-stock-dialogs.c
index 9929e4064..e8568eb5d 100644
--- a/eel/eel-stock-dialogs.c
+++ b/eel/eel-stock-dialogs.c
@@ -318,13 +318,14 @@ eel_timed_wait_stop (EelCancelCallback cancel_callback,
timed_wait_free (wait);
}
-static GtkDialog *
-eel_show_simple_dialogv (GtkWidget *parent,
- GtkMessageType message_type,
- const char *primary_text,
- const char *secondary_text,
- va_list button_title_args)
+GtkDialog *
+eel_show_simple_dialog (GtkWidget *parent,
+ GtkMessageType message_type,
+ const char *primary_text,
+ const char *secondary_text,
+ ...)
{
+ va_list button_title_args;
const char *button_title;
GtkWidget *dialog;
GtkWidget *top_widget, *chosen_parent;
@@ -372,51 +373,6 @@ eel_show_simple_dialogv (GtkWidget *parent,
return GTK_DIALOG (dialog);
}
-GtkDialog *
-eel_show_simple_dialog (GtkWidget *parent,
- GtkMessageType message_type,
- const char *primary_text,
- const char *secondary_text,
- ...)
-{
- va_list button_title_args;
- GtkDialog *dialog;
-
- va_start (button_title_args, secondary_text);
- dialog = eel_show_simple_dialogv (parent, message_type, primary_text, secondary_text, button_title_args);
- va_end (button_title_args);
-
- return dialog;
-}
-
-int
-eel_run_simple_dialog (GtkWidget *parent,
- gboolean ignore_close_box,
- GtkMessageType message_type,
- const char *primary_text,
- const char *secondary_text,
- ...)
-{
- va_list button_title_args;
- GtkDialog *dialog;
- int result;
-
- va_start (button_title_args, secondary_text);
- dialog = eel_show_simple_dialogv (parent, message_type, primary_text, secondary_text, button_title_args);
- va_end (button_title_args);
-
- /* Run it. */
- result = gtk_dialog_run (GTK_DIALOG (dialog));
- while ((result == GTK_RESPONSE_NONE || result == GTK_RESPONSE_DELETE_EVENT) && ignore_close_box)
- {
- gtk_widget_show (GTK_WIDGET (dialog));
- result = gtk_dialog_run (GTK_DIALOG (dialog));
- }
- gtk_widget_destroy (GTK_WIDGET (dialog));
-
- return result;
-}
-
static GtkDialog *
create_message_dialog (const char *primary_text,
const char *secondary_text,
diff --git a/eel/eel-stock-dialogs.h b/eel/eel-stock-dialogs.h
index cea8e1fed..cb1bb09c2 100644
--- a/eel/eel-stock-dialogs.h
+++ b/eel/eel-stock-dialogs.h
@@ -45,12 +45,6 @@ GtkDialog *eel_show_simple_dialog (GtkWidget *parent,
const char *primary_text,
const char *secondary_text,
...);
-int eel_run_simple_dialog (GtkWidget *parent,
- gboolean ignore_close_box,
- GtkMessageType message_type,
- const char *primary_text,
- const char *secondary_text,
- ...);
/* Variations on gnome stock dialogs; these do line wrapping, we don't
* bother with non-parented versions, we allow setting the title,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]