Re: How to use glade with a GtkHeaderBar with different layouts

2017-03-07 Thread Tristan Van Berkom
On Tue, 2017-03-07 at 11:05 +0100, Iñigo Martínez wrote: > Thank you very much for your kind support Tristan, those hints are > very much appreciated. > > While I understand that the template actually is a definition of the > class hierarchy, I was thinking about it as a description of the UI, > a

Re: How to use glade with a GtkHeaderBar with different layouts

2017-03-07 Thread Iñigo Martínez
Thank you very much for your kind support Tristan, those hints are very much appreciated. While I understand that the template actually is a definition of the class hierarchy, I was thinking about it as a description of the UI, and in that sense it would have been nice to have some way to define d

Re: How to use glade with a GtkHeaderBar with different layouts

2017-03-06 Thread Tristan Van Berkom
On Mon, 2017-03-06 at 22:26 +0100, Iñigo Martínez wrote: > Recently, I started moving UI code from bare C to Glade XML files, so > the UI definition gets split from the UI logic. > > One of the widgets I have been moving is a GtkHeaderBar. The > application uses a GtkStack to move between diferent

How to use glade with a GtkHeaderBar with different layouts

2017-03-06 Thread Iñigo Martínez
Recently, I started moving UI code from bare C to Glade XML files, so the UI definition gets split from the UI logic. One of the widgets I have been moving is a GtkHeaderBar. The application uses a GtkStack to move between diferent windows, and the code creates, adds and destroys the buttons on th