[evolution/wip/webkit-composer: 664/966] EMailSignatureEditor: Defer alert handling to EEditorWindow.
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 664/966] EMailSignatureEditor: Defer alert handling to EEditorWindow.
- Date: Wed, 23 Apr 2014 10:49:15 +0000 (UTC)
commit 043daa4882f246dae96f7ed2756fb11005fa997b
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Feb 7 16:01:16 2013 -0500
EMailSignatureEditor: Defer alert handling to EEditorWindow.
It's nice having all the base classes in Evolution finally.
e-util/e-mail-signature-editor.c | 41 +-------------------------------------
1 files changed, 1 insertions(+), 40 deletions(-)
---
diff --git a/e-util/e-mail-signature-editor.c b/e-util/e-mail-signature-editor.c
index bb958e8..22c52e5 100644
--- a/e-util/e-mail-signature-editor.c
+++ b/e-util/e-mail-signature-editor.c
@@ -79,10 +79,7 @@ static const gchar *ui =
G_DEFINE_TYPE (
EMailSignatureEditor,
e_mail_signature_editor,
- E_TYPE_EDITOR_WINDOW,
- G_IMPLEMENT_INTERFACE (
- E_TYPE_ALERT_SINK,
- e_mail_signature_editor_alert_sink_init))
+ E_TYPE_EDITOR_WINDOW)
static void
async_context_free (AsyncContext *async_context)
@@ -542,14 +539,6 @@ mail_signature_editor_constructed (GObject *object)
e_editor_window_pack_above (E_EDITOR_WINDOW (window), container);
gtk_widget_show (container);
- /* Construct the alert bar for errors. */
- widget = e_alert_bar_new ();
- gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
- /* Position 5 should be between the style toolbar and editing area. */
- gtk_box_reorder_child (GTK_BOX (container), widget, 5);
- window->priv->alert_bar = widget; /* not referenced */
- /* EAlertBar controls its own visibility. */
-
widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (widget), 6);
e_editor_window_pack_above (E_EDITOR_WINDOW (window), widget);
@@ -631,34 +620,6 @@ mail_signature_editor_constructed (GObject *object)
}
static void
-mail_signature_editor_submit_alert (EAlertSink *alert_sink,
- EAlert *alert)
-{
- EMailSignatureEditorPrivate *priv;
- EAlertBar *alert_bar;
- GtkWidget *dialog;
- GtkWindow *parent;
-
- priv = E_MAIL_SIGNATURE_EDITOR_GET_PRIVATE (alert_sink);
-
- switch (e_alert_get_message_type (alert)) {
- case GTK_MESSAGE_INFO:
- case GTK_MESSAGE_WARNING:
- case GTK_MESSAGE_ERROR:
- alert_bar = E_ALERT_BAR (priv->alert_bar);
- e_alert_bar_add_alert (alert_bar, alert);
- break;
-
- default:
- parent = GTK_WINDOW (alert_sink);
- dialog = e_alert_dialog_new (parent, alert);
- gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
- break;
- }
-}
-
-static void
e_mail_signature_editor_class_init (EMailSignatureEditorClass *class)
{
GObjectClass *object_class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]