[empathy] use different message types in infobar



commit aca1d575ff5caf0eb8ae1fc401eca1c7f7d620d9
Author: Felix Kaser <f kaser gmx net>
Date:   Wed Dec 2 23:59:22 2009 +0100

    use different message types in infobar

 src/empathy-accounts-dialog.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 5b68226..bdb7bd1 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]