From a11639eb86550bffdd887325f6fa72be0972b776 Mon Sep 17 00:00:00 2001 From: James Cameron Date: Tue, 8 Dec 2015 15:11:17 +1100 Subject: [PATCH] demote warning to debug for sugar_accel_group --- src/sugar3/graphics/colorbutton.py | 2 +- src/sugar3/graphics/menuitem.py | 2 +- src/sugar3/graphics/toggletoolbutton.py | 2 +- src/sugar3/graphics/toolbutton.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sugar3/graphics/colorbutton.py b/src/sugar3/graphics/colorbutton.py index 5092d2a2..7d7c30ce 100644 --- a/src/sugar3/graphics/colorbutton.py +++ b/src/sugar3/graphics/colorbutton.py @@ -402,7 +402,7 @@ def _add_accelerator(tool_button): # TODO: should we remove the accelerator from the prev top level? if not hasattr(tool_button.get_toplevel(), 'sugar_accel_group'): - logging.warning('No Gtk.AccelGroup in the top level window.') + logging.debug('No Gtk.AccelGroup in the top level window.') return accel_group = tool_button.get_toplevel().sugar_accel_group diff --git a/src/sugar3/graphics/menuitem.py b/src/sugar3/graphics/menuitem.py index a6b516e0..0d6d9372 100644 --- a/src/sugar3/graphics/menuitem.py +++ b/src/sugar3/graphics/menuitem.py @@ -77,7 +77,7 @@ class MenuItem(Gtk.ImageMenuItem): # TODO: should we remove the accelerator from the prev top level? if not hasattr(self.get_toplevel(), 'sugar_accel_group'): - logging.warning('No Gtk.AccelGroup in the top level window.') + logging.debug('No Gtk.AccelGroup in the top level window.') return accel_group = self.get_toplevel().sugar_accel_group diff --git a/src/sugar3/graphics/toggletoolbutton.py b/src/sugar3/graphics/toggletoolbutton.py index 6d3c7bd4..76f0f949 100644 --- a/src/sugar3/graphics/toggletoolbutton.py +++ b/src/sugar3/graphics/toggletoolbutton.py @@ -36,7 +36,7 @@ def _add_accelerator(tool_button): # TODO: should we remove the accelerator from the prev top level? if not hasattr(tool_button.get_toplevel(), 'sugar_accel_group'): - logging.warning('No Gtk.AccelGroup in the top level window.') + logging.debug('No Gtk.AccelGroup in the top level window.') return accel_group = tool_button.get_toplevel().sugar_accel_group diff --git a/src/sugar3/graphics/toolbutton.py b/src/sugar3/graphics/toolbutton.py index 865cdcf8..63a6da3b 100644 --- a/src/sugar3/graphics/toolbutton.py +++ b/src/sugar3/graphics/toolbutton.py @@ -36,7 +36,7 @@ def _add_accelerator(tool_button): # TODO: should we remove the accelerator from the prev top level? if not hasattr(tool_button.get_toplevel(), 'sugar_accel_group'): - logging.warning('No Gtk.AccelGroup in the top level window.') + logging.debug('No Gtk.AccelGroup in the top level window.') return accel_group = tool_button.get_toplevel().sugar_accel_group