Merge pull request #275 from quozl/2015-12-08-warnings

demote warning to debug for sugar_accel_group
This commit is contained in:
Martin Abente Lahaye 2015-12-14 09:37:37 -03:00
commit afd0737c10
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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