From aca1d575ff5caf0eb8ae1fc401eca1c7f7d620d9 Mon Sep 17 00:00:00 2001 From: Felix Kaser Date: Wed, 2 Dec 2009 23:59:22 +0100 Subject: use different message types in infobar --- src/empathy-accounts-dialog.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c index 5b68226a8..bdb7bd109 100644 --- a/src/empathy-accounts-dialog.c +++ b/src/empathy-accounts-dialog.c @@ -187,14 +187,20 @@ accounts_dialog_update_status_infobar (EmpathyAccountsDialog *dialog, case TP_CONNECTION_STATUS_CONNECTING: gtk_label_set_text (GTK_LABEL (priv->label_status), _("Connecting...")); + gtk_info_bar_set_message_type (GTK_INFO_BAR (priv->infobar), + GTK_MESSAGE_INFO); break; case TP_CONNECTION_STATUS_DISCONNECTED: gtk_label_set_text (GTK_LABEL (priv->label_status), _("Disconnected - REASON")); + gtk_info_bar_set_message_type (GTK_INFO_BAR (priv->infobar), + GTK_MESSAGE_WARNING); break; default: gtk_label_set_text (GTK_LABEL (priv->label_status), _("Unknown Status")); + gtk_info_bar_set_message_type (GTK_INFO_BAR (priv->infobar), + GTK_MESSAGE_WARNING); } gtk_widget_show (priv->label_status); -- cgit v1.2.3