summaryrefslogtreecommitdiff
path: root/src/nautilus-x-content-bar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-05-07 18:07:37 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-05-07 18:07:37 -0400
commit32def10c7b17b0c6c34d423546ec2055ac4f70f8 (patch)
treea659ba26e02d1379ddeaaa10458c0de26fb2b0a7 /src/nautilus-x-content-bar.c
parent7f762ed76a3a69c66b8e1c0ec3df8bd99744e5f5 (diff)
downloadnautilus-32def10c7b17b0c6c34d423546ec2055ac4f70f8.tar.gz
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
Diffstat (limited to 'src/nautilus-x-content-bar.c')
-rw-r--r--src/nautilus-x-content-bar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nautilus-x-content-bar.c b/src/nautilus-x-content-bar.c
index 498beaa88..bc31ed090 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),
"",