mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
d9da9219ee
commit
62304b0fb5
|
@ -1,3 +1,9 @@
|
|||
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 ||
|
||||
|
|
Loading…
Reference in New Issue