Re: Expand the child in the GtkHeaderBar

I tries this a few days ago.
The problem still exits[1][2].

It intended to nautilus, to add a close button,
and to port from GtkToolbar to GtkHeaderBar[3][4][5].

[1] attached: main.c or:

[2] attached: entry-as-custom-title.png or:

[3] 0002-Port-GtkToolbar-to-GtkHeaderBar.patch:

[4] location-bar.png:

[5] patch-bar.png:

‏Yosef Or Boczko

On ב', יול 8, 2013 בשעה 3:56 PM, Matthias Clasen <matthias clasen gmail com> wrote:
On Sat, Jul 6, 2013 at 1:28 AM, Tristan Van Berkom <tvb gnome org> wrote:

 Why are you using GtkHeaderBar ?

From what I understand, the main feature of GtkHeaderBar is to center the title text in the allocation regardless of the size of any sibling
 widgets which are to the left or right.

 But you are not displaying a title anyway... so why not just use a
 horizontal GtkBox ?

Alternatively, try putting the entry in the centered position, using
gtk_header_bar_set_custom_title. Looks to me like the entry should be
centered, anyway ?

Attachment: entry-as-custom-title.png
Description: PNG image

Attachment: main.c
Description: Text Data

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