From 481f51a970d9a29b76bd4c28815a4b5804824c3b Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Fri, 24 May 2013 19:11:39 +0000 Subject: Fix callback from big "No media files" button - SL #4510 Signed-off-by: Gonzalo Odiard --- diff --git a/controls.py b/controls.py index 011406d..cde298c 100644 --- a/controls.py +++ b/controls.py @@ -157,7 +157,9 @@ class Controls(GObject.GObject): self.activity.playlist_widget.delete_selected_items() self.check_if_next_prev() - def show_picker_cb(self): + def show_picker_cb(self, button=None): + # optional parameter button is used when called from activity.py + # emptypanel big button jobject = None chooser = ObjectChooser(self.activity, what_filter=mime.GENERIC_TYPE_AUDIO) -- cgit v0.9.1