Re: Expand the child in the GtkHeaderBar
Yosef Or Boczko <[email protected]>
| Newsgroups | gmane.comp.gnome.gtk+.devel.general,gmane.comp.gnome.nautilus |
|---|---|
| Message-ID | <[email protected]> |
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: https://bitbucket.org/yoseforb/expand-header-bar/src/ebd9bda7714c0c8ef151a91a913a01ae1b03a17c/main.c?at=master [2] attached: entry-as-custom-title.png or: https://bitbucket.org/yoseforb/expand-header-bar/src/ebd9bda7714c0c8ef151a91a913a01ae1b03a17c/entry-as-custom-title.png?at=master [3] 0002-Port-GtkToolbar-to-GtkHeaderBar.patch: https://bitbucket.org/yoseforb/expand-header-bar/src/ebd9bda7714c0c8ef151a91a913a01ae1b03a17c/0002-Port-GtkToolbar-to-GtkHeaderBar.patch?at=master [4] location-bar.png: https://bitbucket.org/yoseforb/expand-header-bar/src/ebd9bda7714c0c8ef151a91a913a01ae1b03a17c/location-bar.png?at=master [5] patch-bar.png: https://bitbucket.org/yoseforb/expand-header-bar/src/ebd9bda7714c0c8ef151a91a913a01ae1b03a17c/patch-bar.png?at=master Regards, Yosef Or Boczko On ב', יול 8, 2013 בשעה 3:56 PM, Matthias Clasen <[email protected]> wrote: > On Sat, Jul 6, 2013 at 1:28 AM, Tristan Van Berkom <[email protected]> > 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 ? > _______________________________________________ gtk-devel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtk-devel-list
entry-as-custom-title.png
(image/png, 9.5 KB) - not displayed
main.c
(text/x-csrc, 217 B)
/* -*- Mode: C; indent-tabs-mode: nill; c-basic-offset: 8; tab-width: 8 -*- */ /* $ gcc -Wall -o "main" "main.c" `pkg-config --libs --cflags gtk+-3.0` * or: * $ valac --pkg gtk+-3.0 main.c */ #include <gtk/gtk.h>