summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-05-23 13:43:43 -0700
committerCosimo Cecchi <cosimoc@gnome.org>2015-05-23 13:45:39 -0700
commitc590053c1855f97325881657ea1f862d394a40b4 (patch)
treed48cceaaad8a8a95a0cee5f9c947dc1439ffc92f /eel
parent17d2a024495c4cb56ac0479b44e6aa462e12207e (diff)
downloadnautilus-c590053c1855f97325881657ea1f862d394a40b4.tar.gz
eel: remove some unused API
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-stock-dialogs.c67
-rw-r--r--eel/eel-stock-dialogs.h11
2 files changed, 1 insertions, 77 deletions
diff --git a/eel/eel-stock-dialogs.c b/eel/eel-stock-dialogs.c
index a6e8c2673..12da1b5f8 100644
--- a/eel/eel-stock-dialogs.c
+++ b/eel/eel-stock-dialogs.c
@@ -395,17 +395,12 @@ show_message_dialog (const char *primary_text,
const char *secondary_text,
GtkMessageType type,
GtkButtonsType buttons_type,
- const char *details_text,
GtkWindow *parent)
{
GtkDialog *dialog;
dialog = create_message_dialog (primary_text, secondary_text, type,
buttons_type, parent);
- if (details_text != NULL) {
- eel_gtk_message_dialog_set_details_label (GTK_MESSAGE_DIALOG (dialog),
- details_text);
- }
gtk_widget_show (GTK_WIDGET (dialog));
g_signal_connect (dialog, "response",
@@ -423,24 +418,13 @@ show_ok_dialog (const char *primary_text,
GtkDialog *dialog;
dialog = show_message_dialog (primary_text, secondary_text, type,
- GTK_BUTTONS_OK, NULL, parent);
+ GTK_BUTTONS_OK, parent);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
return dialog;
}
GtkDialog *
-eel_create_info_dialog (const char *primary_text,
- const char *secondary_text,
- GtkWindow *parent)
-{
- return create_message_dialog (primary_text, secondary_text,
- GTK_MESSAGE_INFO,
- GTK_BUTTONS_OK,
- parent);
-}
-
-GtkDialog *
eel_show_info_dialog (const char *primary_text,
const char *secondary_text,
GtkWindow *parent)
@@ -451,31 +435,6 @@ eel_show_info_dialog (const char *primary_text,
}
GtkDialog *
-eel_show_info_dialog_with_details (const char *primary_text,
- const char *secondary_text,
- const char *detailed_info,
- GtkWindow *parent)
-{
- GtkDialog *dialog;
-
- if (detailed_info == NULL
- || strcmp (primary_text, detailed_info) == 0) {
- return eel_show_info_dialog (primary_text, secondary_text, parent);
- }
-
- dialog = show_message_dialog (primary_text,
- secondary_text,
- GTK_MESSAGE_INFO,
- GTK_BUTTONS_OK,
- detailed_info,
- parent);
-
- return dialog;
-
-}
-
-
-GtkDialog *
eel_show_warning_dialog (const char *primary_text,
const char *secondary_text,
GtkWindow *parent)
@@ -496,30 +455,6 @@ eel_show_error_dialog (const char *primary_text,
GTK_MESSAGE_ERROR, parent);
}
-GtkDialog *
-eel_show_error_dialog_with_details (const char *primary_text,
- const char *secondary_text,
- const char *detailed_error_message,
- GtkWindow *parent)
-{
- GtkDialog *dialog;
-
- g_return_val_if_fail (primary_text != NULL, NULL);
- g_return_val_if_fail (parent == NULL || GTK_IS_WINDOW (parent), NULL);
-
- if (detailed_error_message == NULL
- || strcmp (primary_text, detailed_error_message) == 0) {
- return eel_show_error_dialog (primary_text, secondary_text, parent);
- }
-
- dialog = show_message_dialog (primary_text,
- secondary_text,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_OK, detailed_error_message,
- parent);
- return dialog;
-}
-
/**
* eel_show_yes_no_dialog:
*
diff --git a/eel/eel-stock-dialogs.h b/eel/eel-stock-dialogs.h
index ea1ffeebf..016128dd8 100644
--- a/eel/eel-stock-dialogs.h
+++ b/eel/eel-stock-dialogs.h
@@ -57,20 +57,12 @@ int eel_run_simple_dialog (GtkWidget *parent,
GtkDialog *eel_show_info_dialog (const char *primary_text,
const char *secondary_text,
GtkWindow *parent);
-GtkDialog *eel_show_info_dialog_with_details (const char *primary_text,
- const char *secondary_text,
- const char *detailed_informative_message,
- GtkWindow *parent);
GtkDialog *eel_show_warning_dialog (const char *primary_text,
const char *secondary_text,
GtkWindow *parent);
GtkDialog *eel_show_error_dialog (const char *primary_text,
const char *secondary_text,
GtkWindow *parent);
-GtkDialog *eel_show_error_dialog_with_details (const char *primary_text,
- const char *secondary_text,
- const char *detailed_error_message,
- GtkWindow *parent);
GtkDialog *eel_show_yes_no_dialog (const char *primary_text,
const char *secondary_text,
const char *yes_label,
@@ -83,8 +75,5 @@ GtkDialog *eel_create_question_dialog (const char *primary_text,
const char *answer_two,
int response_two,
GtkWindow *parent);
-GtkDialog *eel_create_info_dialog (const char *primary_text,
- const char *secondary_text,
- GtkWindow *parent);
#endif /* EEL_STOCK_DIALOGS_H */