Re: Expand the child of GtkHeaderBar

I attached the wrong patch.

The patch:

‏Yosef Or Boczko

On א', יונ 30, 2013 בשעה 2:09 PM, Yosef Or Boczko <yoseforb gmail com> wrote:
Good afternoon!

I am port the GtkToolbar to GtkHeaderBar in Nautilus (attached patch).

I could not to expand the patch-bar (child of header_bar).

The relevant code from patch (src/nautilus-header-bar.c):
GtkWidget *box, *hbox, *header_bar;
header_bar = gtk_header_bar_new ();
self->priv->header_bar = header_bar;
/* regular path bar */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show (hbox);

self->priv->path_bar = g_object_new (NAUTILUS_TYPE_PATH_BAR, NULL);
gtk_widget_set_hexpand (self->priv->path_bar, TRUE);
gtk_box_pack_start (GTK_BOX (hbox), self->priv->path_bar, TRUE, TRUE, 0);

/* entry-like location bar */
self->priv->location_entry = nautilus_location_entry_new ();
gtk_widget_set_hexpand (self->priv->location_entry, TRUE);
gtk_box_pack_start (GTK_BOX (hbox), self->priv->location_entry, TRUE, TRUE, 0);

gtk_widget_set_hexpand (hbox, TRUE);
gtk_header_bar_pack_start (GTK_HEADER_BAR (self->priv->header_bar), hbox);
gtk_widget_show (GTK_WIDGET (hbox));

The gtk_widget_set_hexpand function it does not affect.


‏Yosef Or Boczko

Attachment: 0002-Port-GtkToolbar-to-GtkHeaderBar.patch
Description: Text Data

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