[gimp] Bug 794747 - Multiple GIMP-WARNINGs about duplicate accelerators on startup
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 794747 - Multiple GIMP-WARNINGs about duplicate accelerators on startup
- Date: Wed, 28 Mar 2018 12:48:23 +0000 (UTC)
commit c5ebf29065a84ec778f65485512d853d882483e7
Author: Michael Natterer <mitch gimp org>
Date: Wed Mar 28 14:45:11 2018 +0200
Bug 794747 - Multiple GIMP-WARNINGs about duplicate accelerators on startup
Turn the g_warning() into a g_printerr().
Duplicate accelerators should not trigger a WARNING, because they come
from a config file and there is nothing that can be fixed in the code
to prevent that.
app/gui/gui.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/gui/gui.c b/app/gui/gui.c
index b23e4cb..25f34e1 100644
--- a/app/gui/gui.c
+++ b/app/gui/gui.c
@@ -974,9 +974,9 @@ gui_compare_accelerator (gpointer data,
if (accel->key == accel_key && accel->mods == accel_mods &&
g_strcmp0 (accel->path, accel_path))
{
- g_warning ("Actions \"%s\" and \"%s\" use the same accelerator.\n"
- "Disable the accelerator on \"%s\".",
- accel->path, accel_path, accel_path);
+ g_printerr ("Actions \"%s\" and \"%s\" use the same accelerator.\n"
+ " Disabling the accelerator on \"%s\".\n",
+ accel->path, accel_path, accel_path);
gtk_accel_map_change_entry (accel_path, 0, 0, FALSE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]