summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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),
"",