mirror of https://github.com/GNOME/gimp.git
Revert "app: handle gtk_accel_map_change_entry () failure..."
This reverts commit eab4929a78
.
Oups it would seem gtk_accel_map_change_entry() could return FALSE even
when the expected shortcut is correctly set (my guess is that it was
already the same shortcut, so indeed no "change" happened, though it is
not a failure either; yet I haven't checked if that is the actual
reason).
Let's just revert this. It's not always a good thing to be too thorough!
Sorry for this!
This commit is contained in:
parent
84ee79c71d
commit
4a9a0723f5
|
@ -431,13 +431,9 @@ windows_actions_update_display_accels (GimpActionGroup *group)
|
|||
else
|
||||
accel_key = GDK_KEY_0;
|
||||
|
||||
if (! gtk_accel_map_change_entry (accel_path,
|
||||
accel_key, GDK_MOD1_MASK,
|
||||
TRUE))
|
||||
{
|
||||
g_warning ("%s: failed to set accelerator for %s",
|
||||
G_STRFUNC, accel_path);
|
||||
}
|
||||
gtk_accel_map_change_entry (accel_path,
|
||||
accel_key, GDK_MOD1_MASK,
|
||||
TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue