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:

committed by
Sven Neumann

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>
|
2003-02-04 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* plug-ins/gimpressionist/gimpressionist.h
|
* plug-ins/gimpressionist/gimpressionist.h
|
||||||
|
@ -949,13 +949,14 @@ gimp_item_factory_item_key_press (GtkWidget *widget,
|
|||||||
help_page = NULL;
|
help_page = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* For any key except F1, continue with the standard
|
/* For any valid accelerator key except F1, continue with the
|
||||||
* GtkItemFactory callback and assign a new shortcut, but don't
|
* standard GtkItemFactory callback and assign a new shortcut, but
|
||||||
* assign a shortcut to the help menu entries...
|
* don't assign a shortcut to the help menu entries ...
|
||||||
*/
|
*/
|
||||||
if (kevent->keyval != GDK_F1)
|
if (kevent->keyval != GDK_F1)
|
||||||
{
|
{
|
||||||
if (help_page &&
|
if (help_page &&
|
||||||
|
gtk_accelerator_valid (kevent->keyval, 0) &&
|
||||||
(item_factory ==
|
(item_factory ==
|
||||||
(GtkItemFactory *) gimp_item_factory_from_path ("<Toolbox>")) &&
|
(GtkItemFactory *) gimp_item_factory_from_path ("<Toolbox>")) &&
|
||||||
(strcmp (help_page, "help/dialogs/help.html") == 0 ||
|
(strcmp (help_page, "help/dialogs/help.html") == 0 ||
|
||||||
|
Reference in New Issue
Block a user