On Fri, Jul 26, 2013 at 7:27 AM, Dylan McCall <dylanmcc...@gmail.com> wrote: > For my GSoC project, I'm writing an application that uses > GtkHeaderBar. Using Gtk 3.8, with libgd as a handy drop-in replacement > for the new features in 3.9+, it looks like this: > http://ubuntuone.com/0cr9GKuwrbULXMmL3eExmq
>From what I understand, using a GtkHeaderBar does not mean that it will show up as a header bar for your application. You could potentially use dozens of GtkHeaderBars, in list items for example... but if you call gtk_window_set_titlebar() with a given widget... that widget itself will show up in the title bar area of the GtkWidget. Coincidentally, a GtkHeaderBar widget happens to be a suitable choice of widget type to use for gtk_window_set_titlebar(). Now what would make sense, is that GtkWindow probably does not guarantee that gtk_window_set_titlebar() actually does anything, nor does it guarantee that gtk_window_set_title() does anything... but uses the user supplied titlebar if provided and if there is support for client side windows in the given platform. Cheers, -Tristan > > As you can see, my application ends up with the title in two places, > and I'm not sure how best to deal with that. I imagine I can detect > whether I'm running in an environment that does client-side > decorations and react accordingly, but then I'm still uncertain how > the application is supposed to handle this. Is it better if the header > just doesn't have a title in this case, or should I do something like > System Settings 3.8 where the window titlebar has the primary title > and the header bar has what would be the secondary title? Is there an > API that can deal with this for me so I don't have to keep track of > these special cases myself? > > By the way, I'm happy depending on just Gtk 3.9+, but as I understand > it we still have to deal with the possibility that the window may or > may not have a titlebar provided by the window manager. > > Thanks for any help! > > -- > Dylan > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list