Message: 2
Date: Wed, 07 Feb 2018 13:45:47 +0100
From: Christian Schoenebeck <schoenebeck linuxsampler org>
To: gtk-devel-list gnome org
Subject: gtk_menu_item_set_accel_path()
Message-ID: <1582692.dYf0dnMCMj@silver>
Content-Type: text/plain; charset="us-ascii"
Hi!
I am currently debugging gtk_menu_item_set_accel_path(): when using that
function then keyboard accelerator key(s) are not displayed in the menu item
at all. Has anybody looked into this bug before?
What I found out so far is that the the menu item's
GtkAccelLabel->priv->accel_string
and
GtkAccelLabel->priv->accel_string_width
are correctly updated with the expected textual representation of the keyboard
accelerator key(s) (i.e. "Ctrl c", "F1", etc.), however the menu item's
GtkAccelLabel would never be displayed on screen.
Also the menu item's size is not updated either. By default, when displaying a
menu item without any action/accelerator, the size (more specific: its width)
of the menu item is limited to the menu item's main text label. And when an
action with keyboard accelerator is assigned to the menu item, the size of the
menu item is enlarged to display the acceleration label as well. The latter
never happens when using gtk_menu_item_set_accel_path().