Merge pull request #275 from quozl/2015-12-08-warnings
demote warning to debug for sugar_accel_group
This commit is contained in:
commit
afd0737c10
@ -402,7 +402,7 @@ def _add_accelerator(tool_button):
|
|||||||
# TODO: should we remove the accelerator from the prev top level?
|
# TODO: should we remove the accelerator from the prev top level?
|
||||||
|
|
||||||
if not hasattr(tool_button.get_toplevel(), 'sugar_accel_group'):
|
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
|
return
|
||||||
|
|
||||||
accel_group = tool_button.get_toplevel().sugar_accel_group
|
accel_group = tool_button.get_toplevel().sugar_accel_group
|
||||||
|
@ -77,7 +77,7 @@ class MenuItem(Gtk.ImageMenuItem):
|
|||||||
# TODO: should we remove the accelerator from the prev top level?
|
# TODO: should we remove the accelerator from the prev top level?
|
||||||
|
|
||||||
if not hasattr(self.get_toplevel(), 'sugar_accel_group'):
|
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
|
return
|
||||||
|
|
||||||
accel_group = self.get_toplevel().sugar_accel_group
|
accel_group = self.get_toplevel().sugar_accel_group
|
||||||
|
@ -36,7 +36,7 @@ def _add_accelerator(tool_button):
|
|||||||
|
|
||||||
# TODO: should we remove the accelerator from the prev top level?
|
# TODO: should we remove the accelerator from the prev top level?
|
||||||
if not hasattr(tool_button.get_toplevel(), 'sugar_accel_group'):
|
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
|
return
|
||||||
|
|
||||||
accel_group = tool_button.get_toplevel().sugar_accel_group
|
accel_group = tool_button.get_toplevel().sugar_accel_group
|
||||||
|
@ -36,7 +36,7 @@ def _add_accelerator(tool_button):
|
|||||||
|
|
||||||
# TODO: should we remove the accelerator from the prev top level?
|
# TODO: should we remove the accelerator from the prev top level?
|
||||||
if not hasattr(tool_button.get_toplevel(), 'sugar_accel_group'):
|
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
|
return
|
||||||
|
|
||||||
accel_group = tool_button.get_toplevel().sugar_accel_group
|
accel_group = tool_button.get_toplevel().sugar_accel_group
|
||||||
|
Loading…
Reference in New Issue
Block a user