]> git.0d.be Git - empathy.git/commitdiff
empathy-call-window: display_error: simplify showing of the widgets
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 12 Nov 2009 15:27:34 +0000 (15:27 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 12 Nov 2009 15:37:25 +0000 (15:37 +0000)
src/empathy-call-window.c

index 5d9a2efa5ddf9726082ce962b3ff20d1c390d94f..71aa31113ba8457c0d9d01e795d88793e2f5bd6f 100644 (file)
@@ -1482,7 +1482,6 @@ display_error (EmpathyCallWindow *self,
   info_bar = gtk_info_bar_new_with_buttons (GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
       NULL);
 
   info_bar = gtk_info_bar_new_with_buttons (GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
       NULL);
 
-  gtk_widget_set_no_show_all (info_bar, TRUE);
   gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), GTK_MESSAGE_WARNING);
 
   content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar));
   gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), GTK_MESSAGE_WARNING);
 
   content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (info_bar));
@@ -1493,7 +1492,6 @@ display_error (EmpathyCallWindow *self,
 
   /* Add image */
   image = gtk_image_new_from_icon_name (img, GTK_ICON_SIZE_DIALOG);
 
   /* Add image */
   image = gtk_image_new_from_icon_name (img, GTK_ICON_SIZE_DIALOG);
-  gtk_widget_show (image);
   gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
 
   /* vbox containing the main message and the details expander */
   gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
 
   /* vbox containing the main message and the details expander */
@@ -1535,8 +1533,7 @@ display_error (EmpathyCallWindow *self,
 
   gtk_box_pack_start (GTK_BOX (priv->errors_vbox), info_bar,
       FALSE, FALSE, CONTENT_HBOX_CHILDREN_PACKING_PADDING);
 
   gtk_box_pack_start (GTK_BOX (priv->errors_vbox), info_bar,
       FALSE, FALSE, CONTENT_HBOX_CHILDREN_PACKING_PADDING);
-  gtk_widget_show_all (hbox);
-  gtk_widget_show (info_bar);
+  gtk_widget_show_all (info_bar);
 }
 
 static gchar *
 }
 
 static gchar *