From 5815f585f8a6ae967aad703f39cc0dfbae669ff3 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 24 Aug 2016 00:56:13 +0300 Subject: examples: add dummy function to background-image extension seems like the only way to fix Caja warning: caja_menu_provider_get_background_items: assertion 'CAJA_IS_MENU_PROVIDER (provider)' failed --- examples/background-image.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/background-image.py b/examples/background-image.py index b6d6fe2..3ea0e3c 100644 --- a/examples/background-image.py +++ b/examples/background-image.py @@ -34,3 +34,6 @@ class BackgroundImageExtension(GObject.GObject, Caja.MenuProvider): tip='Set the current image as a background image') item.connect('activate', self.menu_activate_cb, file) return item, + + def get_background_items(self, window, file): + return [] -- cgit v1.2.1