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. Screenshost: patch-bar: https://bitbucket.org/yoseforb/expand-header-bar/raw/e95d5c963051d781c7c029751c8e1fbebbabd49b/patch-bar.png location-bar: https://bitbucket.org/yoseforb/expand-header-bar/raw/e95d5c963051d781c7c029751c8e1fbebbabd49b/location-bar.png Regards, ā€¸Yosef Or Boczko
Attachment:
0002-Port-GtkToolbar-to-GtkHeaderBar.patch
Description: Text Data