summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorMatthew Jakeman <mjakeman26@outlook.co.nz>2021-12-27 19:44:01 +1300
committerAntónio Fernandes <antoniof@gnome.org>2021-12-28 23:08:39 +0000
commitb85def1615cc76a8f9179bd7c7a7263f4d721079 (patch)
tree0451c54baf695aeb95b74d186b3a22c68eff9650 /eel
parent01d2507113cf9ba19b0a8d90341a25c7588f5359 (diff)
downloadnautilus-b85def1615cc76a8f9179bd7c7a7263f4d721079.tar.gz
eel-stock-dialogs: Remove eel_run_simple_dialog
This method is no longer used anywhere and can be safely removed. Part of #1992
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-stock-dialogs.c58
-rw-r--r--eel/eel-stock-dialogs.h6
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,