system-config-printer/system-config-printer-1.4.1-newprinter-smb_select_function-argsfix.patch

13 lines
732 B
Diff

diff -Nru system-config-printer-1.4.1.orig/newprinter.py system-config-printer-1.4.1/newprinter.py
--- system-config-printer-1.4.1.orig/newprinter.py 2013-05-09 13:10:43.000000000 +0200
+++ system-config-printer-1.4.1/newprinter.py 2013-08-07 11:37:25.399433951 +0200
@@ -2201,7 +2201,7 @@
"configuration."),
parent=self.NewPrinterWindow)
- def smb_select_function (self, model, path, path_selected, data):
+ def smb_select_function (self, widget, model, path, path_selected, data):
"""Don't allow this path to be selected unless it is a leaf."""
iter = self.smb_store.get_iter (path)
return not self.smb_store.iter_has_child (iter)