https://bugzilla.novell.com/show_bug.cgi?id=396033
User sh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=396033#c3
Stefan Hundhammer changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|sh@novell.com |rpmcruz@alunos.dcc.fc.up.pt
--- Comment #3 from Stefan Hundhammer 2008-06-03 03:23:08 MDT ---
Tabs shouldn't have shortcuts in the first place - see bug #117725 comment #6.
If an application tries to set a shortcut for a tab, it even gets stripped off:
void
YDumbTab::addItem( YItem * item )
{
YSelectionWidget::addItem( item );
// Remove any keyboard shortcut marker there might be
// to avoid confusing the YShortcutManager
item->setLabel( YShortcut::cleanShortcutString( item->label() ) );
}
But the YGDumbTab sets the shortcut as the first thing in its reimplemented
addItem() method and ignores the item->setLabel() call later in the base class
method (which is correctly called in the reimplemented method).
From YGDumbTab.cc:
virtual void addItem (YItem *item)
{
GtkWidget *tab_label, *image = 0, *label;
string str = YGUtils::mapKBAccel (item->label());
label = gtk_label_new_with_mnemonic (str.c_str());
gtk_widget_show (label);
...
...
...
YDumbTab::addItem (item);
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.