Commit 62304b0f authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

made the ugly hack that prevents users from reassigning the F1 shortcut

2003-02-04  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpitemfactory.c (gimp_item_factory_item_key_press):
	made the ugly hack that prevents users from reassigning the F1
	shortcut even more ugly but fixed bug #105068.
parent d9da9219
2003-02-04 Sven Neumann <sven@gimp.org>
* app/widgets/gimpitemfactory.c (gimp_item_factory_item_key_press):
made the ugly hack that prevents users from reassigning the F1
shortcut even more ugly but fixed bug #105068.
2003-02-04 Sven Neumann <sven@gimp.org>
 
* plug-ins/gimpressionist/gimpressionist.h
......
......@@ -949,13 +949,14 @@ gimp_item_factory_item_key_press (GtkWidget *widget,
help_page = NULL;
}
/* For any key except F1, continue with the standard
* GtkItemFactory callback and assign a new shortcut, but don't
* assign a shortcut to the help menu entries...
/* For any valid accelerator key except F1, continue with the
* standard GtkItemFactory callback and assign a new shortcut, but
* don't assign a shortcut to the help menu entries ...
*/
if (kevent->keyval != GDK_F1)
{
if (help_page &&
gtk_accelerator_valid (kevent->keyval, 0) &&
(item_factory ==
(GtkItemFactory *) gimp_item_factory_from_path ("<Toolbox>")) &&
(strcmp (help_page, "help/dialogs/help.html") == 0 ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment