Sign up

Losing underscores in Notebook tabs

I am trying to figure out why Notebook tabs lose underscores.

Say I want to have a Notebook with 3 tabs:

 ______  ______  _________________
/ Tab1 \/ Tab2 \/ with_underscore \

(I use all the default settings, these are all Labels behind the scenes if I recall)

What I get with GtkD is the following:

 ______  ______  ________________
/ Tab1 \/ Tab2 \/ withunderscore \

What am I doing wrong?

Re: Losing underscores in Notebook tabs

On 17-08-2022 13:48, Dejan Lekic wrote:

I am trying to figure out why Notebook tabs lose underscores.

Say I want to have a Notebook with 3 tabs:

  ______  ______  _________________
/ Tab1 \/ Tab2 \/ with_underscore \

(I use all the default settings, these are all Labels behind the

scenes if I recall)

What I get with GtkD is the following:

  ______  ______  ________________
/ Tab1 \/ Tab2 \/ withunderscore \

What am I doing wrong?

By default the underscore is treated as a mark for the mnemonic. You can
use a double underscore to get an literal underscore in the label.

Re: Losing underscores in Notebook tabs

On Wed, 17 Aug 2022 20:55:22 -0400, Mike Wey wrote:

By default the underscore is treated as a mark for the mnemonic. You can
use a double underscore to get an literal underscore in the label.

I thought that was only for Menu items... Obviously I was wrong.

Many thanks, Mike!