[balsa/gtk3] Hide the HTML widget's info-bar at "realize" time



commit c3ade5eb901460427935865a04cde03c8a403461
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Jan 17 16:57:20 2011 -0500

    Hide the HTML widget's info-bar at "realize" time
    
    	* libbalsa/html.c (lbh_info_bar_widget), (libbalsa_html_new):
    	hide the info-bar at "realize" time.

 libbalsa/html.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libbalsa/html.c b/libbalsa/html.c
index dacdfd2..6602462 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -333,6 +333,8 @@ lbh_info_bar_widget(GtkWidget * widget, LibBalsaWebKitInfo * info)
     gtk_info_bar_set_message_type(info_bar, GTK_MESSAGE_QUESTION);
     g_signal_connect(info_bar, "response",
                      G_CALLBACK(lbh_info_bar_response_cb), info);
+    g_signal_connect(info_bar, "realize",
+                     G_CALLBACK(gtk_widget_hide), NULL);
 
     label = gtk_label_new(text);
     gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
@@ -415,8 +417,6 @@ libbalsa_html_new(LibBalsaMessageBody * body,
                                 libbalsa_message_body_charset(body), NULL);
     g_free(text);
 
-    gtk_widget_show(widget);
-
     return vbox;
 }
 



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