File system-config-printer-no-openprinting.patch of Package system-config-printer

Index: system-config-printer-1.4.0/cupshelpers/openprinting.py
===================================================================
--- system-config-printer-1.4.0.orig/cupshelpers/openprinting.py
+++ system-config-printer-1.4.0/cupshelpers/openprinting.py
@@ -48,6 +48,11 @@ class _QueryThread (threading.Thread):
 
     def run (self):
 
+        ## Disabled on openSUSE, see discussion in https://bugzilla.novell.com/show_bug.cgi?id=733542
+        if self.callback != None:
+            self.callback (403, self.user_data, None)
+        return
+
         # Callback function for pycURL collecting the data coming from
         # the web server
         def collect_data(result):
@@ -82,6 +87,7 @@ class _QueryThread (threading.Thread):
             self.result = sys.exc_info ()
             if status == None: status = 0
 
+        ## openSUSE: just a guard to know if first part in patch should be updated
         if self.callback != None:
             self.callback (status, self.user_data, self.result)
 
Index: system-config-printer-1.4.0/newprinter.py
===================================================================
--- system-config-printer-1.4.0.orig/newprinter.py
+++ system-config-printer-1.4.0/newprinter.py
@@ -424,6 +424,8 @@ class NewPrinterGUI(GtkGUI):
         # Set up OpenPrinting widgets.
         self.openprinting = cupshelpers.openprinting.OpenPrinting ()
         self.openprinting_query_handle = None
+        ## Disabled on openSUSE, see discussion in https://bugzilla.novell.com/show_bug.cgi?id=733542
+        self.rbtnNPDownloadableDriverSearch.hide()
         combobox = self.cmbNPDownloadableDriverFoundPrinters
         cell = Gtk.CellRendererText()
         combobox.pack_start (cell, True)
@@ -1537,6 +1539,7 @@ class NewPrinterGUI(GtkGUI):
                 self.btnNPBack.hide()
                 self.btnNPForward.show()
                 downloadable_selected = False
+                ## openSUSE: just a guard to know when the name of the widget to hide changes
                 if self.rbtnNPDownloadableDriverSearch.get_active ():
                     combobox = self.cmbNPDownloadableDriverFoundPrinters
                     iter = combobox.get_active_iter ()
@@ -3717,6 +3720,8 @@ class NewPrinterGUI(GtkGUI):
             elif self.rbtnNPPPD.get_active():
                 ppd = cups.PPD(self.filechooserPPD.get_filename())
             else:
+                ## Disabled on openSUSE, see discussion in https://bugzilla.novell.com/show_bug.cgi?id=733542
+                return
                 # PPD of the driver downloaded from OpenPrinting XXX
                 treeview = self.tvNPDownloadableDrivers
                 model, iter = treeview.get_selection ().get_selected ()