[nautilus] x-content-bar: pack the media label in the content area



commit 32def10c7b17b0c6c34d423546ec2055ac4f70f8
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon May 7 18:07:37 2012 -0400

    x-content-bar: pack the media label in the content area
    
    Instead of just packing it into the GtkInfoBar's box, since that will
    put it after the buttons of the action area.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=670129

 src/nautilus-x-content-bar.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-x-content-bar.c b/src/nautilus-x-content-bar.c
index 498beaa..bc31ed0 100644
--- a/src/nautilus-x-content-bar.c
+++ b/src/nautilus-x-content-bar.c
@@ -256,14 +256,16 @@ nautilus_x_content_bar_class_init (NautilusXContentBarClass *klass)
 static void
 nautilus_x_content_bar_init (NautilusXContentBar *bar)
 {
+	GtkWidget *content_area;
+
 	bar->priv = NAUTILUS_X_CONTENT_BAR_GET_PRIVATE (bar);
+	content_area = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar));
 
 	bar->priv->label = gtk_label_new (NULL);
 	gtk_style_context_add_class (gtk_widget_get_style_context (bar->priv->label),
 				     "nautilus-cluebar-label");
 	gtk_label_set_ellipsize (GTK_LABEL (bar->priv->label), PANGO_ELLIPSIZE_END);
-	gtk_misc_set_alignment (GTK_MISC (bar->priv->label), 0.0, 0.5);
-	gtk_container_add (GTK_CONTAINER (bar), bar->priv->label);
+	gtk_container_add (GTK_CONTAINER (content_area), bar->priv->label);
 
 	bar->priv->button = gtk_info_bar_add_button (GTK_INFO_BAR (bar),
 						     "",



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