aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-alert-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-alert-dialog.c')
-rw-r--r--e-util/e-alert-dialog.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/e-util/e-alert-dialog.c b/e-util/e-alert-dialog.c
index 888c9121f9..2639196ca7 100644
--- a/e-util/e-alert-dialog.c
+++ b/e-util/e-alert-dialog.c
@@ -24,7 +24,6 @@
#include "e-alert-dialog.h"
#include "e-util.h"
-#include "e-alert-action.h"
#define E_ALERT_DIALOG_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE \
@@ -325,36 +324,6 @@ e_alert_run_dialog_for_args (GtkWindow *parent,
}
/**
- * e_alert_dialog_count_buttons:
- * @dialog: a #EAlertDialog
- *
- * Counts the number of buttons in @dialog's action area.
- *
- * Returns: number of action area buttons
- **/
-guint
-e_alert_dialog_count_buttons (EAlertDialog *dialog)
-{
- GtkWidget *container;
- GList *children, *iter;
- guint n_buttons = 0;
-
- g_return_val_if_fail (E_IS_ALERT_DIALOG (dialog), 0);
-
- container = gtk_dialog_get_action_area (GTK_DIALOG (dialog));
- children = gtk_container_get_children (GTK_CONTAINER (container));
-
- /* Iterate over the children looking for buttons. */
- for (iter = children; iter != NULL; iter = iter->next)
- if (GTK_IS_BUTTON (iter->data))
- n_buttons++;
-
- g_list_free (children);
-
- return n_buttons;
-}
-
-/**
* e_alert_dialog_get_alert:
* @dialog: a #EAlertDialog
*