[gtranslator] Make use of the new GtkInfobar API to set the type.



commit 770be14441ab480be28e400f0f6332426ff1a4e4
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Jan 19 23:44:03 2010 +0100

    Make use of the new GtkInfobar API to set the type.

 src/io-error-info-bar.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/io-error-info-bar.c b/src/io-error-info-bar.c
index df35429..8c3257d 100644
--- a/src/io-error-info-bar.c
+++ b/src/io-error-info-bar.c
@@ -120,6 +120,9 @@ create_error_info_bar (const gchar *primary_text,
   infobar = gtk_info_bar_new_with_buttons (GTK_STOCK_CLOSE,
 					   GTK_RESPONSE_CLOSE, NULL);
 
+  gtk_info_bar_set_message_type (GTK_INFO_BAR (infobar),
+				 GTK_MESSAGE_WARNING);
+
   set_info_bar_text_and_icon (GTK_INFO_BAR (infobar),
 			      GTK_STOCK_DIALOG_ERROR,
 			      primary_text, secondary_text);



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