2008-05-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnSMBVerify_clicked): Set cursor busy during verify. * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Don't remove row expansion arrow unless authentication was successful. (NewPrinterGUI.browse_smb_hosts_thread): Likewise. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. * system-config-printer.py: Set gettext function for monitor module. * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Create a new context here. * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Set the auth function directly to the AuthContext callback. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. (NewPrinterGUI.on_btnSMBVerify_clicked): Likewise. (NewPrinterGUI.browse_smb_hosts_thread_auth_callback): Removed. * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Made more robust in the face of SMB errors. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. 2008-05-20 Tim Waugh * authconn.py (Connection._perform_authentication): Reconnect after prompting. * cupshelpers.py (Printer.getAttributes): Avoid losing SMB authentication details. * system-config-printer.py (NewPrinterGUI.on_entSMBURI_changed): Don't reset authentication radio button if not necessary. 2008-05-20 Tim Waugh * configure.in: Version 0.9.92. 2008-05-20 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_tvSMBBrowser_row_activated): Double-clicking on a share selects it. * system-config-printer.py (GUI.dests_iconview_button_release_event): Fix right-click behaviour. * system-config-printer.glade: Removed user entry box in the connection dialog. * system-config-printer.py (GUI.on_connect_activate): Removed references to user entry box. * system-config-printer.py (NewPrinterGUI.on_btnSMBVerify_clicked): Don't use pysmb.printer_share_accessible for access checks unless we are using the old browsing code. * pysmb.py (AuthContext.__init__): Allow initial credentials to be set. * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Fixed 'scanning...' message for new SMB browse code. 2008-05-19 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Don't set no-anon-login flag as it seems to break browsing. * pysmb.py (AuthContext.failed): Raise exception if authentication details were not asked for. * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): Better exception handling. (NewPrinterGUI.on_tvSMBBrowser_row_expanded): Likewise. 2008-05-18 Tim Waugh * pysmb.py (AuthContext.perform_authentication): More debugging. * system-config-printer.py (NewPrinterGUI.on_tvNPDevices_cursor_changed): Better parsing of socket: URIs (Ubuntu bug #222616). (iconpath): Fixed icon search path. (GUI.populateList): Fail if an icon is not available. (NewPrinterGUI.browse_smb_hosts_thread): Enable smbc debugging if debugging is enabled. 2008-05-16 Tim Waugh * configure.in: Version 0.9.91. 2008-05-16 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_rbtnChangePPDasIs_toggled): Removed. (NewPrinterGUI.nextNPTab): Fetch the PPD before the copy-settings page and avoid showing an empty installable options page. (NewPrinterGUI.setNPButtons): Set buttons appropriately on the copy-settings page. * system-config-printer.py (NewPrinterGUI.setNPButtons): Initial value for radio button should be set in init... (NewPrinterGUI.init): ...here. * system-config-printer.py (NewPrinterGUI.__init__, NewPrinterGUI.browse_smb_hosts_thread, NewPrinterGUI.on_tvSMBBrowser_row_activated, NewPrinterGUI.on_btnSMBBrowseOk_clicked): Start of new SMB code. * system-config-printer.glade: Adjusted SMB authentication screen. * system-config-printer.py (NewPrinterGUI.on_entSMBURI_changed, NewPrinterGUI.on_btnSMBVerify_clicked, NewPrinterGUI.getDeviceURI): User interface adjustment. * system-config-printer.py (NewPrinterGUI.smbbrowser_cell_share): New method. (NewPrinterGUI.smbbrowser_cell_comment): New method. (NewPrinterGUI.browse_smb_hosts_thread_auth_callback): New method. * pysmb.py: Try to import smbc module. (AuthContext): New class. * system-config-printer.py (NewPrinterGUI.on_tvNPDevices_cursor_changed): Removed debugging. * system-config-printer.glade: Removed default printer parts from the printer properties dialog, as this is now done in the main window. * system-config-printer.py (GUI.fillPrinterTab): Removed references to printer properties default printer widgets. (GUI.on_btnPMakeDefault_clicked): Likewise. * system-config-printer.py (GUI.fillPrinterTab): Moved some code... (GUI.updatePrinterProperties): ...here. (GUI.printer_event): Update state etc. * cupshelpers.py (Printer.__init__): Moved some code... (Printer.update): ...here. (Printer.getAttributes): Update state etc. * system-config-printer.py (GUI.setTestButton): Removed. (GUI.fillPrinterTab): Don't call setTestButton. (GUI.on_btnPrintTestPage_clicked): Likewise, and don't ever cancel. (GUI.setDataButtonState): Removed cancellation handling. 2008-05-15 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): Only set location to current hostname if the added printer is directly connected. (NewPrinterGUI.on_tvNPDevices_cursor_changed): Don't set location of remote printers to the local hostname. * troubleshoot/base.py (show_error_dialog): New method. * troubleshoot/PrintTestPage.py (PrintTestPage.print_clicked): Use it. (PrintTestPage.print_clicked): Try printing a text/plain file if application/postscript is not accepted. * authconn.py (AuthDialog.__init__): Set alignment for icon. 2008-05-14 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Better translatable string. (NewPrinterGUI.getNPPPD): Likewise. * system-config-printer.py (NewPrinterGUI.getNPPPD): Finish writing the file before trying to parse it. Patch from George Liu. * system-config-printer.desktop.in, manage-print-jobs.desktop.in, print-applet.desktop.in, my-default-printer.desktop.in: Just exec binary name, not path name. * system-config-printer-applet: Generate this with autoconf so that configured paths can be used. * my-default-printer: Likewise. * system-config-printer: Likewise. * configure.in: Generate above scripts. * config.py.in: Get DATADIR from autoconf. * config.py.in (Paths): New class to handle pathname expansion. * system-config-printer.py: Use config.Paths to get pkgdatadir. 2008-05-13 Tim Waugh * system-config-printer.py (GUI.dests_iconview_selection_changed): Better logic for sensitivity. (GUI.on_enable_activate): New method. (GUI.on_disable_activate): New method. * system-config-printer.py (GUI.on_set_as_default_activate): New method. * system-config-printer.py (GUI.printer_name_edit_cancel): Moved from... * contextmenu.py (PrinterContextMenu.printer_name_edit_cancel): ...here. * system-config-printer.py (GUI.printer_name_edited): Moved from... * contextmenu.py (PrinterContextMenu.printer_name_edited): ...here. * system-config-printer.py (GUI.on_rename_activate): New method, from... * contextmenu.py (PrinterContextMenu.on_printer_context_rename_activate): ...here. Call main class's handler. * system-config-printer.glade: Add 'Copy' entry to printer context menu. * contextmenu.py (PrinterContextMenu.on_printer_context_copy_activate): New method. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.display): Clear 'done' label on page display. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.display): Likewise. 2008-05-12 Tim Waugh * applet.py (NewPrinterNotification.collect_exit_code): New method. Collect exit code of child (bug #446055). * jobviewer.py (JobViewer.notify_new_printer): Fixed new printer notifications. * applet.py: Set locale. * system-config-printer.py (GUI.makeNameUnique): Use dash instead of underscore when replacing disallowed characters (bug #445790). * system-config-printer.py (GUI.save_printer): Display any IPP error caught while refreshing printer information (Ubuntu #224021). * monitor.py (collect_printer_state_reasons): Ignore IPP errors here (Ubuntu #225241). * troubleshoot/PrintTestPage.py (PrintTestPage.print_clicked): Handle failure to connect to CUPS and failure to submit the test page (Ubuntu #222494). (PrintTestPage.cancel_clicked): Record failure reason instead of raising exception. 2008-05-09 Tim Waugh * system-config-printer.py (GUI.printer_added): Fixed typo calling base function. (GUI.printer_removed): Likewise. (GUI.printer_event): New method. Handle printer state updates so that enabled/disabled printers are shown correctly. 2008-05-08 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Don't flip to the next page if there is an error obtaining the PPD. 2008-05-07 Tim Waugh * openprinting.py (OpenPrinting.__init__): Default to only Free downloads. * system-config-printer.py (NewPrinterGUI.getNPPPD): Implemented PPD download. Use urlopen to download PPD file from openprinting.org. Patch from George Liu. * system-config-printer.glade: Re-worked some of the downloadable PPD interface. Patch from George Liu. * openprinting.py (OpenPrinting.searchPrinters): Replaced web query filter printer=(searchterm) with make=(make). All models by the printer manufacturer will be returned. Patch from George Liu. (OpenPrinting.listDrivers): Changed search term onlydownloads to onlyppdfiles. Patch from George Liu. * system-config-printer.py (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): Fixed typo (patch from George Liu). 2008-05-06 Till Kamppeter * system-config-printer.glade: More fixes to make the properties dialog smaller. * applet.py (NewPrinterNotification.wake_up, check_for_jobs): Fixed crash on waitloop.quit(). 2008-05-02 Tim Waugh * system-config-printer.py (GUI.on_btnPrintTestPage_clicked): Connect as the current user to print the test page (bug #444306). * Makefile.am: Install main script in bindir, not sbindir. 2008-05-01 Tim Waugh * my-default-printer.py: Guard against locale errors (bug #417951). * openprinting.py (OpenPrinting.__init__): Likewise. * system-config-printer.py (show_help): Likewise. 2008-04-30 Tim Waugh * applet.py (NewPrinterNotification.NewPrinter): Only include Install button if we are able to install packages. 2008-04-29 Tim Waugh * troubleshoot/CheckPPDSanity.py (CheckPPDSanity.display): Provide null stdin. * troubleshoot/CheckNetworkServerSanity.py (CheckNetworkServerSanity.display): Likewise. Catch exceptions. * troubleshoot/CheckPrinterSanity.py (CheckPrinterSanity.display): Try hp-info for hp-scheme device URIs. 2008-04-21 Tim Waugh * configure.in (ALL_LINGUAS): Added sr@latin. Removed sr@Latn. * po/sr@Latn.po: Removed. * Makefile.am: Check for missing languages in update-po. 2008-04-21 Tim Waugh * system-config-printer.py (NewPrinterGUI.init): Don't empty the JetDirect hostname text entry widget here, as it might have been pre-filled for a selected device (Ubuntu #220041). 2008-04-18 Tim Waugh * system-config-prnter.py (NewPrinterGUI.init): Fix model pre-selection when changing PPD. * system-config-printer.py (NewPrinterGUI.on_btnNPApply_clicked): Reset 'media' default job option if it becomes invalid (bug #441836). 2008-04-17 Tim Waugh * ppds.py (ppdMakeModelSplit): Fix display of Generic PostScript model, which was getting set to the empty string. * system-config-printer.py (NewPrinterGUI.on_btnNPApply_clicked): Update printer properties when dialog is finished. 2008-04-16 Tim Waugh * applet.py (WaitForJobs): Cancel the deferral timer. 2008-04-16 Till Kamppeter * applet.py (main): Fixed Ubuntu crash bug #195508. 2008-04-16 Tim Waugh * system-config-printer.py (GUI.copy_printer): New method. (GUI.on_copy_activate): Use it. (GUI.rename_printer): New method. * cupshelpers.py (Printer.jobsQueued): New method. (Printer.testsQueued): Use it. * contextmenu.py (PrinterContextMenu.on_printer_context_rename_activate): New method. (PrinterContextMenu.printer_name_edited): New method. (PrinterContextMenu.printer_name_edit_cancel): New method. * system-config-printer.py (CUPS_server_hostname): New function. (GUI.setConnected): Use it. (GUI.dests_iconview_item_activated): Set printer properties dialog title to show printer and hostname. * system-config-printer.glade (PrinterPropertiesDialog): Use a TreeView to display option groupings instead of Notebook tabs. * system-config-printer.py (GUI.__init__): Set tree view column, selection mode and signals. (GUI.dests_iconview_item_activated): Select first page of the properties notebook. (GUI.on_tvPrinterProperties_selection_changed): Prevent selection from being de-selected. (GUI.on_tvPrinterProperties_cursor_changed): Flip notebook to correct page. (GUI.fillPrinterTab): Fill in tree view rows according to notebook tabs. (GUI.setDataButtonState): Display conflicts using bold markup in the tree view. 2008-04-15 Tim Waugh * system-config-printer.py (GUI.save_printer): Avoid copied queue having extra job options set. (GUI.on_copy_activate): Set transient for main window. Fixed typo in comment. * probe_printer.py (LpdServer._probe_queue): Better error handling so as to prevent tracebacks as in Ubuntu #213624. * system-config-printer.py (NewPrinterGUI.setNPButtons): Set sensitivity of Forward button when in ppd dialog mode (Ubuntu #211867). * po/pt.po: Mark bad translation fuzzy. * jobviewer.py: Don't import pynotify twice. 2008-04-13 Tim Waugh * statereason.py (StateReason.get_description): Don't crash on incorrect translations (Ubuntu #214732). 2008-04-11 Tim Waugh * system-config-printer.py (GUI.on_server_settings_activate): Set transient for main window. (GUI.on_troubleshoot_activate): Set transient for main window. * troubleshoot/__init__.py (Troubleshooter.__init__): Allow parent window to be specified. * system-config-printer.py (GUI.populateList): Use gtk.icon_size_lookup. * monitor.py (Monitor.handle_dbus_signal): Fixed typo. * applet.py (show_version): Correct comment. (WaitForJobs.handle_dbus_signal): New method. (WaitForJobs): Better deferral. 2008-04-10 Tim Waugh * system-config-printer.py (GUI.on_quit_activate): Clean up monitor instance so we don't leak CUPS subscriptions. * monitor.py (Monitor.get_notifications): Update after notify-get-interval period if we haven't ever had a D-Bus signal from CUPS. (Monitor.__init__): Initialise flag. (Monitor.handle_dbus_signal): Set flag. 2008-04-09 Tim Waugh * my-default-printer.py (Dialog.selection_changed): New method. Prevent selected item being de-selected. (Dialog.__init__): Connect TreeSelection changed signal to selection_changed method. This fixes Ubuntu #214579. 2008-04-08 Tim Waugh * system-config-printer.glade: No separator for the properties dialog. * jobviewer.py (JobViewer.__init__): Set transient for parent, if appropriate. * contextmenu.py (PrinterContextMenu.on_printer_context_view_print_queue_activate): Indicate parent window. * system-config-printer.py (GUI.on_about_activate): Make the About dialog appear in the right place. 2008-04-03 Tim Waugh * configure.in: Version 0.9.90, on the way to 1.0.0. 2008-04-03 Tim Waugh * Makefile.am: Ship monitor.py. * jobviewer.py (JobViewer.update_job): Don't dispay an authentication dialog if pycups doesn't provide authenticateJob(). * system-config-printer.py (GUI.printer_added_or_removed): New method. (GUI.printer_added): New method. (GUI.printer_removed): New method. (GUI.__init__): Start a monitor to watch for added and removed printers. (GUI.dests_iconview_item_activated): If the printer is discovered, don't allow the OK button to be clicked in the properties dialog. * monitor.py (Watcher.cups_connection_error): New API method. (Watcher.cups_ipp_error): New API method. (Monitor.get_notifications): Add cups_connection_error and cups_ipp_error hooks. (Monitor.refresh): Likewise. * jobviewer.py (JobViewer.current_printers_and_jobs): Fetch full job attributes for each job initially. (JobViewer.update_job): If proxy authentication is necessary, prompt for authentication information. (JobViewer.auth_info_dialog_response): Collect authentication information and perform proxy authentication. (JobViewer.job_added): Prevent traceback when there are no printer state reasons. (JobViewer.job_event): Display a print error dialog when a job stops for any reason other than authentication required (rescued from applet.py revision 2145). * authconn.py (AuthDialog): New class. (Connection._perform_authentication): Use it. 2008-04-01 Tim Waugh * cupshelpers.py (Printer.setAsDefault): Try specifying the file descriptor for getFile (requires pycups >= 1.9.38). (PrintersConf.fetch): Likewise. * monitor.py (Monitor.__init__): Allow caller to opt out of monitoring jobs. (Monitor.refresh): If not monitoring jobs, don't subscribe to job events. (Monitor.refresh): Only fetch jobs if we are monitoring them. * troubleshoot/CheckPrinterSanity.py (CheckPrinterSanity.display): Determine remote server name for smb URIs by parsing nmblookup output. * troubleshoot/CheckNetworkServerSanity.py (CheckNetworkServerSanity.display): Only try IPP connection for ipp URI schemes. * smburi.py (SMBURI.__init__): Accept full URIs. * troubleshoot/CheckPrinterSanity.py (CheckPrinterSanity.display): Treat http scheme the same as ipp. * system-config-printer.py (GUI.busy): Make more robust. (GUI.ready): Likewise. * my-default-printer.py (Dialog.__init__): Sort printers by name (bug #439804). 2008-03-31 Tim Waugh * system-config-printer.py (GUI.fillPrinterTab): If supported values are not known but the value is a Boolean, we can work out the supported values (Ubuntu #207338). (GUI.fillPrinterOptions): Initialise inputslot/manualfeed variables regardless of whether there are option groups. * system-config-printer.glade (PrinterPropertiesDialog): Fixed expand/fill flags in the job options tab (Ubuntu #208304). 2008-03-26 Tim Waugh * system-config-printer.py (fatalException): Moved... * debug.py (fatalException): ...here. * system-config-printer.py (nonfatalException): Moved... * debug.py (nonfatalException): ...here. * jobviewer.py (JobViewer.get_icon_pixbuf): Use it. * jobviewer.py (JobViewer.__init__): Removed dead code. (JobViewer.update_status): Renamed. Update statusbar. (JobViewer.add_state_reason_emblem): Moved worst reason search... (JobViewer.update_status): ...here. (JobViewer.current_printers_and_jobs): Set 'job-printer-name'. * jobviewer.py (JobViewer.set_statusicon_tooltip): New method. (JobViewer.update_statusicon): New method. (JobViewer.current_printers_and_jobs): Use it. (JobViewer.job_added): Likewise. (JobViewer.job_removed): Likewise. (JobViewer.state_reason_added): Likewise. (JobViewer.state_reason_removed): Likewise. * jobviewer.py (JobViewer.job_added): Set 'job-printer-name'. (JobViewer.job_event): Likewise. (JobViewer.add_state_reason_emblem): Use it. (JobViewer.update_job): Likewise. (JobViewer.state_reason_added): Likewise. * jobviewer.py (JobViewer.get_icon_pixbuf): New method. (JobViewer.current_printers_and_jobs): Use it. (JobViewer.job_added): Likewise. (JobViewer.job_removed): Likewise. (JobViewer.job_is_active): New method. (JobViewer.job_added): Use it. (JobViewer.state_reason_added): Likewise. (JobViewer.current_printers_and_jobs): Build active jobs list. (JobViewer.job_added): Maintain it. (JobViewer.job_event): Likewise. (JobViewer.job_removed): Likewise. (JobViewer.state_reason_added): Update status icon. (JobViewer.state_reason_removed): Likewise. (JobViewer.state_reason_removed): Don't return early if a notification for the removed state reason was closed. 2008-03-25 Tim Waugh * system-config-printer.py: Removed dead code (passwd_retry). 2008-03-24 Till Kamppeter * ppds.py (PPDs.orderPPDNamesByPreference): For HP LaserJet 12xx/13xx prefer HPIJS over PostScript, as they do not have enough memory to render complex graphics with their on-board PostScript interpreter. This is a workaround for the time being until HP fixes this in the HPLIP-generated PPDs. 2008-03-22 Till Kamppeter * ppds.py (ppdMakeModelSplit): Improved filtering of driver information from the printer model name, added missing product names "PSC" and "Edgeline" to manufacturer guessing for HP. 2008-03-21 Till Kamppeter * system-config-printer.py (NewPrinterGUI.nextNPTab): Support that HP has now two fax PPDs ("HP Fax" and "HP Fax 2"). (NewPrinterGUI.fillDeviceTab): Likewise. (NewPrinterGUI.get_hpfax_device_id): New method. Get device ID for an HPLIP fax URI, so that correct PPD ("HP Fax" or "HP Fax 2") can get selected. (NewPrinterGUI.get_hplip_uri_for_network_printer): Strip newline from device URI. 2008-03-20 Tim Waugh * system-config-printer.py (GUI.on_copy_activate): Adapted to iconview. * monitor.py (Monitor.get_notifications): Small fix for job_removed calls. (Monitor.get_notifications): Call state_reason_removed for each reason associated with a removed printer. (Watcher.current_printers_and_jobs): Provide printers as well. (Monitor.refresh): Fetch list of printers. (Monitor.get_notifications): Track added and removed printers. (Watcher.printer_added): New method. (Watcher.printer_removed): New method. * jobviewer.py (JobViewer.current_printers_and_jobs): Adjusted. * monitor.py (Watcher.current_jobs): New Watcher interface method. (Monitor.refresh): Call it. * jobviewer.py (JobViewer.current_jobs): Implement it. (JobViewer.refresh): Removed. (JobViewer.__init__): Start with icon hidden; removed dead code. * applet.py (show_version.any_jobs): Just check for jobs, not errors. * jobviewer.py (worst_printer_state_reason): Removed. * monitor.py (Monitor.sort_jobs_by_printer): Better error checking. (Monitor.check_state_reasons): Don't only process connecting-to-device when it is a newly added state reason. * jobviewer.py (JobViewer.state_reason_added): Mark state reason as not notified. (JobViewer.notify_printer_state_reason): Mark state reason as notified. (JobViewer.state_reason_added): Only send a notification if the user has a job on this printer. (JobViewer.job_added): Notify user of current state reasons on this printer. 2008-03-19 Till Kamppeter * system-config-printer.py (NewPrinterGUI.nextNPTab): If a network printer is chosen from the auto-detected printers in the "New Printer" dialog and the printer is an HP MF device with both printer and fax, the user can choose by a pop-up dialog whether he wants to set up a queue for the printer or for the fax. 2008-03-19 Tim Waugh * jobviewer.py (JobViewer.add_job): New method. (JobViewer.update_job): New method. (JobViewer.refresh): Use add_job (JobViewer.update_job_creation_times): Better timer handling. (JobViewer.job_added): New method, part of Watcher interface. (JobViewer.job_event): Likewise. (JobViewer.job_removed): Likewise. (JobViewer.still_connecting): Likewise. (JobViewer.now_connected): Likewise. (JobViewer.state_reason_added): Likewise. * cupshelpers.py (Printer.setAsDefault): New method. * system-config-printer.py (GUI.set_default_printer): Use it. 2008-03-18 Tim Waugh * statereason.py (StateReason.__repr__): New method. * system-config-printer.py (GUI.reconnect): Use authconn.Connection._connect() to reconnect. * jobviewer.py (JobViewer.__init__): Removed password dialog bits. (JobViewer.cupsPasswdCallback): Removed. * contextmenu.py (PrinterContextMenu.popup): Show or hide context menu items. * system-config-printer.glade: Removed password dialog. * system-config-printer.py (GUI.__init__): Don't set CUPS password callback, as this is set in authconn.Connection. (GUI.connect): Likewise. (NewPrinterGUI.getPPDs_thread): Set password callback to empty function. (NewPrinterGUI.getDevices_thread): Likewise. (GUI.cupsPasswdCallback): Removed. (GUI.on_btnPasswdOk_clicked): Removed. (GUI.on_btnPasswdCancel_clicked): Removed. * system-config-printer.py (GUI.on_quit_activate): Clean up context menu and any jobviewers it has launched. * jobviewer.py (JobViewer.__init__): Optional exit_handler function. (JobViewer.cleanup): Call it. * contextmenu.py (PrinterContextMenu.__init__): Track jobviewers. (PrinterContextMenu.cleanup): New method. (PrinterContextMenu.on_jobviewer_exit): New method. * smburi.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * contextmenu.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * system-config-printer.py (GUI.populateList): Add default emblem. (PrinterContextMenu.popup): Don't include Set As Default in the context menu if the printer is already the default. (GUI.set_default_printer): New method. (GUI.on_btnPMakeDefault_clicked): Use it. (PrinterContextMenu.on_printer_context_set_as_default_activate): Likewise. (PrinterContextMenu.popup): Don't include Enable or Disable if not possible. (PrinterContextMenu.on_printer_context_enable_activate): New method. (PrinterContextMenu.on_printer_context_disable_activate): New method. (GUI.on_btnApply_clicked): Removed. (GUI.apply): Removed. (GUI.on_delete_activate): Handle the Icon View. (PrinterContextMenu.on_printer_context_delete_activate): New method. (PrinterContextMenu.popup): Disallow actions on discovered printers that require a remote connection. 2008-03-17 Tim Waugh * system-config-printer.py (GUI.__init__): Set initial window size appropriately. (GUI.fillServerTab): Removed old code. (GUI.on_tvMainList_row_activated): Removed. (GUI.on_btnRevert_clicked): Removed. (GUI.fillServerTab): Propagate the exception. (GUI.on_server_settings_activate): Catch the exception and return. (GUI.__init__): Simpler method for setting initial window size. * system-config-printer.glade: Removed unnecessary button box buttons. * system-config-printer.py (GUI.dests_iconview_selection_changed): Only allow copying of a single destination. * system-config-printer.py (main): New option --debug. * man/system-config-printer.xml: Document it. * Makefile.am (run): Run with debugging enabled. * system-config-printer.py (GUI.__init__): Use authconn.Connection. (GUI.on_connect_activate): Pass in the parent window widget. (GUI.connect): Use authconn.Connection. (GUI.reconnect): Likewise. (GUI.on_btnRefresh_clicked): Likewise. * jobviewer.py (JobViewer.on_job_cancel_activate): Use authconn.Connection. (JobViewer.on_job_hold_activate): Likewise. (JobViewer.on_job_release_activate): Likewise. (JobViewer.on_job_reprint_activate): Likewise. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.enable_clicked): No need to work around adminGetServerSettings weirdness. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.button_clicked): Likewise. * troubleshoot/base.py: Use debug module. * troubleshoot/__init__.py (run): Likewise. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.display): Reconnect in case cupsd has restarted. * authconn.py (Connection._authloop): Raise IPPError if adminGetServerSettings returns no settings. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.button_clicked): Changed to use authconn.Connection. * authconn.py (Connection.__init__): Initialise _use_user correctly. (Connection._set_prompt_allowed): Allow caller to disallow prompting. (Connection._authloop): Handle cups.HTTPError. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.enable_clicked): Changed to use authconn.Connection. * troubleshoot/Welcome.py (AuthenticationDialog): Removed. Use authconn.Connection instead. * authconn.py: New file. * po/POTFILES.in: Translate it. * Makefile.am (nobase_pkgdata_DATA): Ship it. 2008-03-16 Tim Waugh * jobviewer.py (JobViewer.__init__): Default trayicon to False. (JobViewer.on_delete_event): Cancel subscriptions when run from main applications. * system-config-printer.py (PrinterContextMenu.on_printer_context_view_print_queue_activate): No need to specify trayicon=False. * jobviewer.py: Moved JobManager here and renamed as JobViewer. * po/POTFILES.in: Translate jobviewer. * Makefile.am (nobase_pkgdata_DATA): Ship it. * system-config-printer.py (PrinterContextMenu.on_printer_context_view_print_queue_activate): Updated. * debug.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * applet.py: Use it. * system-config-printer.py: Likewise. * cupshelpers.py: Likewise. 2008-03-15 Tim Waugh * system-config-printer.py (GUI.populateList): Set tooltips. 2008-03-14 Tim Waugh * system-config-printer.py: Import applet. (PrinterContextMenu.on_printer_context_view_print_queue_activate): Use JobManager to display jobs for selected printers. * applet.py (JobManager.__init__): Add my_jobs and specific_dests arguments. (JobManager.refresh): Use my_jobs argument. (JobManager.get_notifications): Likewise. (JobManager.refresh): Ignore jobs not matching specific_dests. (JobManager.get_notifications): Likewise. * icons/i-network-printer.png: New file. * Makefile.am (nobase_pkgdata_DATA): Ship icon. * system-config-printer.py (GUI.populateList): Use different icon for remote printers. (GUI.dests_iconview_button_release_event): Allow multiple destinations to be selected. * system-config-printer.py (GUI.on_btnApplyApply_clicked): Removed. (GUI.on_btnApplyCancel_clicked): Likewise. (GUI.on_btnApplyDiscard_clicked): Likewise. (GUI): No need to check for unapplied changes. (GUI.on_quit_activate): Likewise. (GUI.on_copy_activate): Likewise. (GUI.setDataButtonState): Only set Installable Options tab weight. (GUI.dests_iconview_button_release_event): Display printer context menu. (PrinterContextMenu): New class. * cupshelpers.py (getPrinters): Avoid fetching printers.conf when not needed. * system-config-printer.py (GUI.dests_iconview_item_activated): Apply changes. (GUI.on_server_settings_activate): New method. 2008-03-13 Tim Waugh * system-config-printer.py: Some changes to cope with the new UI. * system-config-printer.glade: Switch to icon view. * applet.py (JobManager.get_notifications): Ignore jobs that are not owned by the current user. 2008-03-10 Tim Waugh * applet.py (JobManager.get_notifications): Distinguish between failed jobs and jobs that require authentication. 2008-03-07 Tim Waugh * system-config-printer.glade: 'Goto' isn't a word. * system-config-printer.py (GUI.populateList): Fix default printer detection. * troubleshoot/__init__.py (QUESTIONS): Run it. * troubleshoot/CheckPPDSanity.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * po/POTFILES.in: Translate it. * troubleshoot/CheckLocalServerPublishing.py: New module. * Makefile.am (nobase_pkgdata_DATA): Ship it. * po/POTFILES.in: Translate it. * troubleshoot/__init__.py (QUESTIONS): Run it. * troubleshoot/SchedulerNotRunning.py (SchedulerNotRunning.display): Deal with being run before a printer is chosen. * troubleshoot/__init__.py (QUESTIONS): Check that the scheduler is running very first thing. 2008-03-06 Tim Waugh * troubleshoot/DeviceListed.py: New module. * po/POTFILES.in: Translate it. * Makefile.am: Ship it. * troubleshoot/__init__.py (QUESTIONS): Run it. 2008-03-05 Tim Waugh * cupshelpers.py (Printer.getAttributes): Store all other attributes. * system-config-printer.py (GUI.fillPrinterTab): Use server-is-sharing-printers attribute if present. * applet.py (collect_printer_state_reasons): Fix work-around. (JobManager.get_notifications): Likewise. * system-config-printer.py (NewPrinterGUI.on_btnIPPVerify_clicked): Prevent traceback when failing to fetch printer attributes. 2008-03-03 Tim Waugh * applet.py (JobManager.get_notifications): The notify-printer-uri attribute may not be set. (JobManager.get_notifications): If the printer has been disabled as a result of a failed job, say so. 2008-02-29 Tim Waugh * applet.py (JobManager.update): Make a list of active jobs indexed by printer name. (JobManager.check_state_reasons): Only display a connecting-to-device warning if we have a job processing on that device. (JobManager.toggle_window_display): New force_show parameter. (JobManager.get_notifications): Handle job-stopped event by displaying a dialog when running as a tray icon. (JobManager.print_error_dialog_response): New method. Invoke the troubleshooter if user selects 'Diagnose'. (JobManager.on_troubleshoot_quit): New method. 2008-02-28 Tim Waugh * applet.py (debugprint): New function. (JobManager.__init__): No longer need will_refresh or last_refreshed attributes. (JobManager.__init__): Initialise subscription ID. (JobManager.refresh): Cancel existing subscription and create new subscription. No longer need throttling. (JobManager.cleanup): New method. Cancel subscription. (JobManager.get_notifications): New method. (JobManager.handle_dbus_signal): Use get_notifications instead of refresh. (JobManager.check_still_connecting): Use get_notifications, not refresh. (JobManager.check_state_reasons): Don't take a CUPS connection as argument. For now, open a new connection, although this should not be needed really. (JobManager.update): New method, split out from old refresh method. Don't fetch job list again; we already have enough information. (JobManager.on_job_reprint_activate): Don't need to call refresh now. (JobManager.handle_dbus_signal): Schedule a call to get_notifications. (top level): New --debug option. (state_reason_is_harmless): New function, split out from collect_printer_state_reasons. (collect_printer_state_reasons): Collate reasons by printer name. (worst_printer_state_reason): Handle reasons collation. (JobManager.update_connecting_devices): Likewise. (JobManager.check_state_reasons): Likewise. (JobManager.check_still_connecting): No longer need to connect to CUPS here. (JobManager.check_state_reasons): Likewise. (JobManager.get_notifications): Remove state reasons for deleted printers, and update state reasons for printers whose state has changed. (JobManager.get_notifications): Don't update when the notify-get-interval tells us to; instead, rely on D-Bus for this. (JobManager.refresh): Add printer-deleted and printer-state-changed to the list of interesting events. (JobManager.refresh): Fetch printer state reasons. * troubleshoot/PrintTestPage.py (PrintTestPage.connect_signals): Connect to the system D-Bus. (PrintTestPage.disconnect_signals): Disconnect from D-Bus. (PrintTestPage.handle_dbus_signal): Schedule a refresh. (PrintTestPage.update_jobs_list): Schedule the next refresh according to notify-get-interval. * troubleshoot/ErrorLogParse.py (ErrorLogParse.display): Use log severity indicator. 2008-02-26 Tim Waugh * statereason.py (StateReason.get_description): Handle 'offline' state reason. (StateReason.get_description): Handle 'other' state reason. 2008-02-25 Tim Waugh * applet.py (show_version.monitor_session): Correct comment. 2008-02-20 Tim Waugh * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.display): Remember CUPS server settings for diagnostic output. (ErrorLogCheckpoint.enable_clicked): Likewise. * troubleshoot/Welcome.py (AuthenticationDialog.callback): Don't remember a password if the dialog was cancelled. * troubleshoot/__init__.py (Troubleshooter.answers_as_text): Don't display answers whose tags begin with an underscore. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.enable_clicked): Don't create a new AuthenticationDialog instance. * troubleshoot/Welcome.py (Welcome.collect_answer): Instantiate AuthenticationDialog. * troubleshoot/base.py (AuthenticationDialog): Moved... * troubleshoow/Welcome.py (AuthenticationDialog): ...here. 2008-02-19 Tim Waugh * configure.in: Version 0.7.82. 2008-02-19 Tim Waugh * troubleshoot/PrintTestPage.py (PrintTestPage.collect_answer.collect_jobs.each): Try to use getJobAttributes if available. * applet.py (JobManager.on_notification_closed): Reset connecting timer when notification is closed. (JobManager.check_state_reasons): Use printer icon in notification bubble. (NewPrinterNotification.NewPrinter): Likewise. * troubleshoot/Shrug.py (Shrug.on_save_clicked): Save as troubleshoot.txt by default. * troubleshoot/ErrorLogParse.py (ErrorLogParse.display): Don't trigger on error_log fetch. * troubleshoot/ErrorLogFetch.py (ErrorLogFetch.__init__): Disable debug logging if we enabled it. (ErrorLogFetch.display): Fetch error_log here instead of in collect_answer. (ErrorLogFetch.connect_signals): New method. (ErrorLogFetch.disconnect_signals): New method. (ErrorLogFetch.button_clicked): New method. Disable debug logging. * troubleshoot/ErrorLogCheckpoint.py (ErrorLogCheckpoint.__init__): Enable debug logging if not set. (ErrorLogCheckpoint.display): Fetch server settings. (ErrorLogCheckpoint.connect_signals): New method. (ErrorLogCheckpoint.disconnect_signals): New method. (ErrorLogCheckpoint.enable_clicked): New method. Enable debug logging. * troubleshoot/base.py (AuthenticationDialog): Added some fixes. * troubleshoot/PrintTestPage.py (PrintTestPage.update_jobs_list): Work around old pycups bug. (PrintTestPage.__init__): Allow other documents to be printed and tracked using a check-box in each job row. (PrintTestPage.update_job): Update columns IDs. (PrintTestPage.display): Update store column types, and initialise check-boxes. (PrintTestPage.test_toggled): New method. (PrintTestPage.connect_signals): Connect toggle signal. (PrintTestPage.disconnect_signals): Disconnect it. (PrintTestPage.collect_answer.collect_jobs.each): Include job attributes for selected jobs. (PrintTestPage.update_jobs_list): Initialise check-box. 2008-02-18 Tim Waugh * troubleshoot/ErrorLogFetch.py: New module. * troubleshoot/ErrorLogCheckpoint.py: New module. * troubleshoot/ErrorLogParse.py: New module. * troubleshoot/__init__.py (QUESTIONS): Run them. * Makefile.am: Ship them. * po/POTFILES.in: Translate them. * troubleshoot/PrinterStateReasons.py (PrinterStateReasons.collect_answer): Fixed traceback. (PrinterStateReasons.display): Use saved state message and reasons. * troubleshoot.py: Moved... * troubleshoot/__init__.py: ...here. * troubleshoot/base.py: Split out from troubleshoot.py. * troubleshoot/CheckNetworkServerSanity.py: Likewise. * troubleshoot/CheckPrinterSanity.py: Likewise. * troubleshoot/ChooseNetworkPrinter.py: Likewise. * troubleshoot/ChoosePrinter.py: Likewise. * troubleshoot/LocalOrRemote.py: Likewise. * troubleshoot/NetworkCUPSPrinterShared.py: Likewise. * troubleshoot/PrinterStateReasons.py: Likewise. * troubleshoot/PrintTestPage.py: Likewise. * troubleshoot/QueueNotEnabled.py: Likewise. * troubleshoot/QueueRejectingJobs.py: Likewise. * troubleshoot/RemoteAddress.py: Likewise. * troubleshoot/SchedulerNotRunning.py: Likewise. * troubleshoot/ServerFirewalled.py: Likewise. * troubleshoot/Shrug.py: Likewise. * troubleshoot/Welcome.py: Likewise. * Makefile.am: Ship new files. * po/POTFILES.in: Translate them. * po/de.po: Updated (bug #433230). 2008-02-17 Tim Waugh * po/fr.po: Updated (bug #433193). 2008-02-14 Tim Waugh * troubleshoot.py (CheckPrinterSanity.display): Don't display unless queue is listed. (ServerFirewalled.display): Likewise. (QueueNotEnabled.display): Likewise. (QueueRejectingJobs.display): Likewise. (PrinterStateReasons.display): Likewise. (PrinterNotListed.display): Don't display if queue is listed. (LocalOrRemote.display): Likewise. (RemoteAddress.display): Likewise. (ChooseNetworkPrinter.display): Likewise. (NetworkCUPSPrinterShared.display): Better restrictions. (NetworkCUPSPrinterEnabled.display): Tighter exception handling. (NetworkCUPSPrinterAccepting.display): Likewise. * applet.py (StateReason): Moved... * statereason.py (StateReason): ...here. New file. * Makefile.am (nobase_pkgdata_DATA): Ship it. 2008-02-13 Tim Waugh * troubleshoot.py (CheckNetworkPrinterSanity.display): Fetch printer attributes if we know the queue name. (ChoosePrinter.cursor_changed): Don't the CheckNetworkPrinterSanity test twice. 2008-02-13 Tim Waugh * configure.in: Version 0.7.81. 2008-02-13 Tim Waugh * troubleshoot.py: Detect CUPS servers that have their TCP port firewalled. * troubleshoot.py (QueueNotEnabled.display): More explanation. (ChooseNetworkPrinter.display): Skip over default entry. (ChoosePrinter.display): Likewise. * my-default-printer.py (Server.getUserDefault): Fixed breakage caused by pycups change. (Server.getSystemDefault): Use getDefault if available. 2008-02-12 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Moved remote CUPS test to the right place (Ubuntu #178727). 2008-02-07 Tim Waugh * troubleshoot.py (PrintTestPage.__init__): Add a 'Cancel All Jobs' button. (PrintTestPage.cancel_clicked): New method. (PrintTestPage.update_jobs_list): Display all jobs on that printer, not just our test pages. (PrintTestPage.update_job): New method. (PrintTestPage.display): Use it. (PrintTestPage.update_jobs_list): Likewise. (AuthenticationDialog): New class. (PrintTestPage.update_jobs_list): Record test page completion notify-text messages for diagnostic output. 2008-02-06 Tim Waugh * troubleshoot.py (ChoosePrinter.display): Handle CUPS connection failure. (PrinterNotListed.can_click_forward): No more questions to ask. (PrinterStateReasons.display): Fetch the printer-state-message and printer-state-reasons fresh from the server. (PrinterStateReasons.display): Work around a pycups bug. (PrinterStateReasons.collect_answer): Record state message and reasons for diagnostic output. * system-config-printer.glade: Align widgets on the Policies tab. 2008-02-05 Tim Waugh * troubleshoot.py (PrintTestPage): Improvements to the job display. 2008-02-04 Tim Waugh * configure.in: Version 0.7.80. 2008-02-04 Tim Waugh * troubleshoot.py (Troubleshooter.answers_as_text): Don't translate this. * po/POTFILES.in: Added troubleshoot.py. * system-config-printer.py (GUI.on_troubleshoot_activate): Run the trouble-shooter. * troubleshoot.py: New file. * Makefile.am: Ship it. 2008-02-01 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_ipp_queues_thread): Fix enumeration of classes. 2008-01-31 Tim Waugh * config.py.in: Set DOWNLOADABLE_DRIVER_SUPPORT. * system-config-printer.py: Remove downloadable driver support if not enabled in config module. * ppds.py (PPDs._findBestMatchPPDs): Fixed thinko. * system-config-printer.py (NewPrinterGUI.on_tvNPDownloadableDrivers_cursor_changed): Fixed typo. * system-config-printer.glade: Line wrap long label. 2008-01-30 Tim Waugh * openprinting.py (OpenPrinting.listDrivers.parse_result): Don't normalize space in licensetext. * system-config-printer.py (NewPrinterGUI.fillDeviceTab): Disabled slow HPLIP URI look-ups until they are moved to the right place. * system-config-printer.py (NewPrinterGUI.openprinting_drivers_found): Display traceback for debugging. (NewPrinterGUI.on_tvNPDownloadableDrivers_cursor_changed): Fill in driver properties. * openprinting.py (OpenPrinting.listDrivers.parse_result): File's url attribute was missing. (QueryThread.run): Print query URL for debugging. (OpenPrinting.listDrivers.parse_result): Re-work data type for XML format change. (OpenPrinting.listDrivers.parse_result): Include functionality elements. (normalize_space): New function. (OpenPrinting.listDrivers.parse_result): Normalize space. 2008-01-29 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_rbtnNPFoomatic_toggled): Better logic for search widget sensitivity. (NewPrinterGUI.openprinting_printers_found): Use threads_enter/threads_leave. (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): Start a query for drivers. (NewPrinterGUI.openprinting_drivers_found): New method. (NewPrinterGUI.nextNPTab): Display wait window if driver query is still in progress. (NewPrinterGUI.on_rbtnNPFoomatic_toggled): Properly cancel out the search operation. (NewPrinterGUI.openprinting_drivers_found): Populate downloadable drivers list and hide wait window. (NewPrinterGUI.on_tvNPDownloadableDrivers_cursor_changed): New method. (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): Cancel any driver query in progress. (NewPrinterGUI.fillDownloadableDrivers): Avoid traceback when there are no drivers returned. (NewPrinterGUI.on_btnNPDownloadableDriverSearch_clicked): Cancel out the driver search operation if a new printer search is performed. * openprinting.py (QueryThread.__init__): Set query thread as daemon to prevent open queries from keeping the application running. * system-config-printer.py (NewPrinterGUI.openprinting_printers_found): Simplified code. 2008-01-28 Tim Waugh * system-config-printer.py: Import the openprinting module. (NewPrinterGUI.__init__): Additional set-up for OpenPrinting widgets. (NewPrinterGUI.setNPButtons): If downloading a driver, check that a model is selected before proceeding. (NewPrinterGUI.on_btnNPDownloadableDriverSearch_clicked): New method. (NewPrinterGUI.openprinting_printers_found): New method. (NewPrinterGUI.on_cmbNPDownloadableDriverFoundPrinters_changed): New method. (NewPrinterGUI.__init__): Initialise search handle. (NewPrinterGUI.on_NPCancel): Cancel search. (NewPrinterGUI.openprinting_printers_found): Clear search handle. (NewPrinterGUI.init): Initialise search widgets. (NewPrinterGUI.openprinting_printers_found): When only one printer is found from the search, select it automatically. (NewPrinterGUI.init): Set search button label. (NewPrinterGUI.on_btnNPDownloadableDriverSearch_clicked): Update search button label. (NewPrinterGUI.openprinting_printers_found): Reset search button label. * openprinting.py (OpenPrinting.searchPrinters.parse_result): Don't call the callback twice on error; instead display a useful traceback. 2008-01-25 Tim Waugh * openprinting.py (OpenPrinting): Fixed test app threading. 2008-01-25 Tim Waugh * configure.in: Version 0.7.79. 2008-01-25 Tim Waugh * openprinting.py: New module. * Makefile.am: Ship it and install it. * system-config-printer.py (NewPrinterGUI.__init__): No need to fetch labels we aren't going to do anything with. (NewPrinterGUI.on_rbtnNPFoomatic_changed): Set sensitivity of downloadable driver widgets as a group. (NewPrinterGUI.__init__): Disable downloadable driver support until it's working. 2008-01-18 Tim Waugh * system-config-printer.py (GUI.reconnect): Better reconnection method. (GUI.save_serversettings): Really refresh server settings after applying changes. (NewPrinterGUI.get_hplip_uri_for_network_printer): Add debugging output. (NewPrinterGUI.getNetworkPrinterMakeModel): Likewise. 2008-01-17 Till Kamppeter * system-config-printer.glade: Added search button and printer list combo box to the search term input field for finding drivers. So the user can select his printer first and then see the downloadable drivers. 2008-01-16 Tim Waugh * applet.py (JobManager.on_treeview_button_press_event): Use job-preserved to control whether reprint is allowed, as with the CUPS web interface (bug #423441). * system-config-printer.py (GUI.save_serversettings): Refresh server settings after applying changes (bug #421431). * applet.py (NewPrinterNotification.install_driver): New method. (NewPrinterNotification.NewPrinter): Prompt for driver installation if needed (bug #379321). 2008-01-11 Till Kamppeter * system-config-printer.py (pollDownloadableDrivers): Added code for querying the OpenPrinting database for downloadable drivers. 2008-01-11 Tim Waugh * system-config-printer.py (GUI.on_btnRefresh_clicked): Try to reconnect if not connected. 2008-01-10 Till Kamppeter * system-config-printer.py: Started on the code to make the new GUI elements for the automatic driver download working. * system-config-printer.glade: Added GUI for automatic driver download from the OpenPrinting web site. Updated list of authors in the "About" dialog. 2008-01-08 Tim Waugh * applet.py (JobManager.update_job_creation_times): Fill in number of hours. 2008-01-07 Till Kamppeter * cupshelpers.py: If the device discovery output of a CUPS backend has "Unknown" for make and model but something useful in the info field, copy the info field into the make-and-model field. * ppds.py: Derive manufacturer name from model name if the manufacturer name is missing in the Nickname or make-and-model string. Remove "(Bluetooth)" from model name for more reliable matching. Handle the manufacturer name "KONICA MINOLTA" correctly (Ubuntu #64046). Use case-insensitive when cleaning model names. For "recommended" Foomatic PPDs give higher priority than a vendor PPD in case of the recommended driver being not "Postscript" and lower priority otherwise. So if using the printer in PostScript mode is recommended, the vendor PPD will be preferred, if another mode of the printer is recommended (like PCL on HP LaserJet 12xx/13xx) the appropriate non-PostScript PPD will be used (Ubuntu #172550). * system-config-printer.py: Allow listing of all files in file chooser dialog for selecting a custom PPD file. This way also PPDs without the ".ppd" extension can be selected (Ubuntu #153585). 2008-01-04 Till Kamppeter * system-config-printer.py, ppds.py: Make automatic recognition of make and model of Bluetooth-connected printers working. 2007-12-20 Tim Waugh * system-config-printer.glade: Make the Wait window a top-level window not a pop-up (Ubuntu #175766). * system-config-printer.py (GUI.populateList): Only try to fetch the default printer if we have a CUPS connection (Ubuntu #159212). (GUI.on_tvMainList_cursor_changed): Set data button state when no CUPS connection. * system-config-printer.py (NewPrinterGUI.on_entSMBURI_changed): SMB browser is no longer in the same window as the editable URI (Ubuntu #173115). * system-config-printer.py (debugprint): New function. (nonfatalException): Use it. (GUI.on_btnPMakeDefault_clicked): Likewise. (GUI.on_btnPrintTestPage_clicked): Likewise. (NewPrinterGUI.queryPPDs): Likewise. (NewPrinterGUI.getPPDs_thread): Likewise. (NewPrinterGUI.fetchPPDs): Likewise. (NewPrinterGUI.queryDevices): Likewise. (NewPrinterGUI.getDevices_thread): Likewise. (NewPrinterGUI.fetchDevices): Likewise. (NewPrinterGUI.on_btnIPPVerify_clicked): Likewise. (NewPrinterGUI.getNPPPD): Likewise. * cupshelpers.py (debugprint): New function for printing without propagating print exceptions (Ubuntu #175500). (copyPPDOptions): Use it. (setPPDPageSize): Likewise. (missingPackagesAndExecutables.pathcheck): Likewise. (missingPackagesAndExecutables): Likewise. 2007-12-14 Tim Waugh * cupshelpers.py (missingPackagesAndExecutables): Moved this function here... * system-config-printer.py (NewPrinterGUI.checkDriverExists): ...from here. 2007-12-14 Tim Waugh * applet.py (StateReason.__cmp__): Fixed use of __cmp__ (Ubuntu #149393). 2007-12-12 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnIPPVerify_clicked): Fixed typo. 2007-12-03 Till Kamppeter * cupshelpers.py (getPrinters): Determine via printers.conf whether an IPP queue was locally defined or whether it appears induced by a broadcasted remote queue. * system-config-printer.py (nextNPTab): If an IPP queue from a remote CUPS server gets auto-detected create a local raw queue, so that the driver from the server gets used. Such CUPS queues are queues which are advertised by the server only via DNS-SD/mDNS/Bonjour/ZeroConf as for example from Mac OS X servers. They can be detected via the dnssd backend from http://www.linuxprinting.org/download/printing/dnssd (on_tvMainList_cursor_changed, fillPrinterTab): Allow deleting/editing of local raw IPP queues which point to a remote CUPS queue. (checkNPName): Do not allow silent overwriting of locally defined raw IPP queues pointing to a remote CUPS queue. (on_tvNPDevices_cursor_changed): Fixed bug of IPP printer setup GUI not showing the printer parameters when selecting an auto-detected IPP printer (getNPPPD): Fixed traceback when creating a raw queue. (nextNPTab): When stepping back with the "Previous" button in the "New printer" wizard the empty "Installed Options" screen was not skipped. 2007-11-30 Tim Waugh * applet.py: Fixed New Printer notifications after they got broken by the icon hiding changes. 2007-11-29 Tim Waugh * ppds.py (PPDs.__init__): For C/POSIX locale, filter PPDs by American English. * system-config-printer.py (NewPrinterGUI.fillDriverList): Include PPD language in driver description (Ubuntu #161037). * applet.py (JobManager.refresh): If there are no jobs but there is a printer warning/error indicated by the icon, set the icon tooltip to the reason description. (JobManager.__init__): Fix printer status window columns so that the full printer name can be seen. 2007-11-27 Tim Waugh * system-config-printer.glade: Set printer icon in Connect dialog. * system-config-printer.py (GUI.__init__): Set AboutDialog logo by icon name, set URL and email hooks, set icon (Ubuntu #165101). * applet.glade: Set Ctrl+R accelerator for Refresh menu entry (Ubuntu #137984). * system-config-printer.py (GUI.fillPrinterTab): Fetch attributes on demand. * cupshelpers.py (Printer.getAttributes): Make this method public. (Printer.__init__): Don't fetch attributes automatically. * system-config-printer.py (NewPrinterGUI.browse_ipp_queues_thread): Handle exceptions other than RuntimeError and cups.IPPError (bug #252304). (NewPrinterGUI.on_btnIPPVerify_clicked): Get printer attributes by printer URI not name, to prevent pycups constructing a CUPS URI (bug #252304). 2007-11-22 Till Kamppeter * print-applet.desktop.in: Removed the last printer.png (Ubuntu package did not build with Icon=printer.png in the .desktop file). 2007-11-22 Tim Waugh * configure.in: Version 0.7.78. 2007-11-22 Tim Waugh * applet.py (JobManager.check_state_reasons): Emblems and notifications make the icon useful. For notifications, make the icon visible if it was not previously visible. For emblems, do not hide the icon if currently visible (Ubuntu #151360). (JobManager.on_icon_hide_activate): When hiding the icon, allow it to become visible next time a job is submitted. (JobManager.__init__): Attach signal receiver after everything is correctly initialised. 2007-11-21 Tim Waugh * cupshelpers.py (activateNewPrinter): Use getDefault (or, failing that, getDests) to find whether a default printer is set. * system-config-printer.py (GUI.populateList): Likewise. * system-config-printer.py (GUI.on_btnPrintTestPage_clicked): Better check for whether the CUPS server is local. 2007-11-19 Tim Waugh * applet.py (NewPrinterNotification.any_jobs_or_errors): Fixed typo (bug #390431). * system-config-printer.py (NewPrinterGUI.on_btnNPApply_clicked): Handle unexpected exceptions a little bit better. (fatalException): New function. 2007-11-15 Tim Waugh * system-config-printer.py (GUI.getSelectedItem): Decode GtkStore value from UTF-8. 2007-11-14 Tim Waugh * system-config-printer.glade: Add a blank page to the main window's right-pane notebook for occasions when there is a problem fetching information about the printer. * system-config-printer.py (GUI.on_tvMainList_cursor_changed): When cupsGetPPD2() fails this is not fatal (bug #382031). 2007-11-13 Tim Waugh * applet.py (WaitForJobs): New class to throttle the rate of checking for jobs or error messages when in start-up mode. This prevents the applet being a nuisance when a large number of CUPS administration operations are performed in a batch. 2007-11-11 Tim Waugh * manage-print-jobs.desktop.in, my-default-printer.desktop.in, system-config-printer.desktop.in: Don't require PNG format icon (Ubuntu #152634). 2007-11-06 Tim Waugh * system-config-printer.glade: Better widget layouts for JetDirect and IPP device types in the New Printer dialog. * system-config-printer.py (NewPrinterGUI.update_IPP_URI_label): Show the IPP queue name widget and update the forward/backward buttons. (NewPrinterGUI.on_tvNPDevices_cursor_changed): Set the queue to a sensible CUPS template. 2007-10-31 Tim Waugh * ppds.py (main): Allow stand-alone Device ID testing. 2007-10-30 Tim Waugh * configure.in: Version 0.7.77. 2007-10-30 Tim Waugh * system-config-printer.glade: Removed reference to applet.png. * system-config-printer.glade: Tooltips for the button bar buttons (bug #335601). 2007-10-23 Tim Waugh * applet.py (StateReason): Better state reason icon names. 2007-10-18 Tim Waugh * applet.py (JobManager.check_state_reasons): Reverted testing change. 2007-10-17 Tim Waugh * print-applet.desktop.in: Removed reference to applet.png. * applet.png: Removed. * inspecting-printer.png: Removed. * Makefile.am: Removed references to shipped icons. * applet.py (ICON, JobManager.__init__): Use 'printer' named icon from theme (Ubuntu #152634). * applet.py (StateReason): Use named icons for state reason severities (part of Ubuntu #152634). (JobManager.check_state_reasons): Load them from the theme. (JobManager.set_printer_status_icon): Likewise. * manage-print-jobs.desktop.in (Icon): Likewise. * applet.py (JobManager.set_special_status_icon, NewPrinterNotification.GetReady): Use 'document-print-preview' named icon from theme (Ubuntu #152634). 2007-10-16 Tim Waugh * applet.py: Reverted mistaken commit (Ubuntu #149572). 2007-10-15 Tim Waugh * po/no.po: Removed (bug #332381). * configure.in (ALL_LINGUAS): Removed 'no'. * Makefile.am (fix-glade): Remove toolbar_style property so as not to over-ride the session preferences (Ubuntu #135844). 2007-10-15 Tim Waugh * configure.in: Version 0.7.76. 2007-10-15 Tim Waugh * applet.py (JobManager.__init__): Set text domain for Glade (Ubuntu #149572). 2007-10-05 Tim Waugh * ppds.py (PPDs._findBestMatchPPDs): Efficiency improvement (don't run lower() on the loop-constant string). (PPDs._findBestMatchPPDs): The model search should be performed in model order. 2007-10-05 Till Kamppeter * ppds.py (_findBestMatchPPDs): Do case-insensitive match when matching "most important" word. Especially important for matching Canon printers (Ubuntu #149264). 2007-10-05 Tim Waugh * system-config-printer.glade: SMB device screen padding changes. * system-config-printer.py (NewPrinterGUI.update_IPP_URI_label): New method. (NewPrinterGUI.on_entNPTIPPHostname_changed): Use it. (NewPrinterGUI.on_entNPTIPPQueuename_changed): New method. (NewPrinterGUI.on_btnIPPVerify_clicked): New method. (NewPrinterGUI.browse_ipp_queues_thread): Display a different message when the IPP request failed. * system-config-printer.glade: Another IPP browse change. * pysmb.py: More consistency and care in building command lines. 2007-10-03 Till Kamppeter * my-default-printer.py: Corrected gettext domain (Ubuntu #147788). 2007-10-02 Tim Waugh * system-config-printer.py (GUI.on_server_changed): Fixed change tracking. (GUI.fillServerTab): Set sensitivity of 'Allow printing from the Internet' (Ubuntu #146471). (GUI.save_printer): Fetch server settings if printer was saved. This allows us to update the 'not published' label earlier. * applet.py (StateReason.__cmp__): Fixed typo (Ubuntu #148022). * system-config-printer.glade: Wrap explanation text for other job options (Ubuntu #148010). 2007-10-01 Tim Waugh * system-config-printer.py (GUI.on_server_changed): Fixed traceback (Ubuntu #139192). * my-default-printer.py (Dialog.run): Disable the Set Default button when there are no printers available (Ubuntu #146925). * system-config-printer.glade: Give a proper name to the Connect button. * system-config-printer.py (GUI.on_connect_servername_changed): Disable the Connect button when the server name is empty (Ubuntu #147450). 2007-09-28 Tim Waugh * cupshelpers.py: Removed shebang. (Printer.setOption): Convert floating point values to strings in a locale-safe manner (Ubuntu #145693). (Printer._getAttributes): Avoid mis-interpreting '1,2'-type values. * system-config-printer.py (GUI.fillPrinterTab): Handle strange options a little bit more gracefully. * system-config-printer.py: Don't import cupsd module. * cupsd.py: Removed. * Makefile.am: Don't ship cupsd.py. * system-config-printer.glade: Alignment fixes for SMB device page. 2007-09-27 Tim Waugh * ppds.py (PPDs.__init__): CUPS sets the 'raw' model's ppd-make-and-model to 'Raw Queue' which unfortunately then appears as manufacturer Raw and model Queue. Use 'Generic' for this model. 2007-09-26 Tim Waugh * system-config-printer.py (NewPrinterGUI.browse_smb_hosts_thread): This is a translatable string. * system-config-printer.py (GUI.on_entNPTDevice_changed): Set button sensitivity. * system-config-printer.glade: Added 'changed' handler for URI text entry. * system-config-printer.py (NewPrinterGUI.__init__): New widgets. (NewPrinterGUI.on_entNPTIPPHostname_changed): New method. (NewPrinterGUI.__init__): Set up IPP browser. (NewPrinterGUI.on_btnIPPFindQueue_clicked): Display IPP browser. (NewPrinterGUI.browse_ipp_queues): Start IPP browse thread. (NewPrinterGUI.browse_ipp_queues_thread): Browse for IPP queues. (NewPrinterGUI.on_btnIPPBrowseRefresh_clicked): Fixed typo. * system-config-printer.glade: IPP browse dialog and re-worked IPP device page. * system-config-printer.py (GUI.on_tvMainList_row_activated): Just selecting printer type headings should not expand or collapse the list, but activating them (double-clicking) should. Part of Ubuntu #144106. * system-config-printer.py (GUI.setDataButtonState): Don't allow test pages for raw queues (Ubuntu #145098). * ppds.py (PPDs._findBestMatchPPDs): Rather than just looking for the longest initial match in model order, sort our model name into the available models and look at the immediate neighbours. Pick the longest initial match from them (bug #244546). (main): New ID matching test case. 2007-09-25 Tim Waugh * ppds.py (getDriverType): Fix foomatic recommended driver discovery (requires CUPS patch to prevent '(recommended)' string getting stripped). (PPDs.getDriverTypeWithBias): Let getDriverType have access to the PPDs object. 2007-09-23 Till Kamppeter * system-config-printer.py: Added missing argument to call of the set_transient_for() method of ErrorDialog. 2007-09-21 Tim Waugh * po/ko.po: Updated (from 0.7.32.x POT; needs further updating). 2007-09-20 Tim Waugh * options.py (OptionAlwaysShownSpecial): New class to handle orientation-requsted. * system-config-printer.py (GUI.__init__): Use it. 2007-09-19 Tim Waugh * options.py (OptionAlwaysShown.__init__): Handle IPP_TAG_NOVALUE by treating the option as not set (i.e. Reset button is not sensitive). * system-config-printer.py: Require pycups-1.9.27 so that IPP_TAG_NOVALUE attributes have Python value None instead of a string. * options.py (OptionAlwaysShown.__init__): Handle IPP_TAG_NOVALUE by translating it to a valid default value. 2007-09-18 Tim Waugh * configure.in: Version 0.7.75. 2007-09-18 Till Kamppeter * system-config-printer.py, system-config-printer.glade: When changing the PPD lets the user's settings stay conserved. This is the behaviour expected more by the user and it is also the default behavior of CUPS. 2007-09-18 Tim Waugh * system-config-printer.py (NewPrinterGUI.nextNPTab): Show the 'No installable options' label when we can't fetch the PPD. 2007-09-18 Florian Festi * system-config-printer.py: Show Installable Options when changing PPD without accepting old settings * system-config-printer.glade: rename Installable Options to Installed Options 2007-09-18 Till Kamppeter * system-config-printer.py: Remove duplicate URIs from the list of auto-discovered printers. This way one can use more than one network printer auto-discovery CUPS backend using different methods. 2007-09-18 Tim Waugh * ppds.py (PPDs.getPPDNameFromDeviceID): Fixed typo. 2007-09-17 Till Kamppeter * system-config-printer.py: Avoid duplicate "(recommended)" marks in the list of available drivers/PPDs for a given printer * ppds.py: Fixed typo. 2007-09-17 Tim Waugh * system-config-printer.glade: A little more descriptive text in the Installed Options page. * system-config-printer.py (NewPrinterGUI.__init__): Share error display functions with the main class. (NewPrinterGUI.on_btnNPApply_clicked): Hide wait window before displaying error. 2007-09-17 Florian Festi * system-config-printer.py (NewPrinterGUI.on_btnNPApply_clicked): Add changes to Installable Options to the PPD (fillNPInstallableOptions): fix invisible Installable Options 2007-09-17 Tim Waugh * ppds.py (PPDs.getMakes): Use strcoll to sort manufacturer's names. * system-config-printer.py (show_help): Better help message. 2007-09-15 Tim Waugh * po/fi.po: Updated. 2007-09-14 Tim Waugh * system-config-printer.py (SMBURI): New class for manipulating SMB URIs. (GUI.fillPrinterTab): Use it. (NewPrinterGUI.on_entSMBURI_changed): Likewise. (NewPrinterGUI.on_btnSMBBrowseOk_clicked): Likewise. (NewPrinterGUI.on_btnSMBVerify_clicked): Likewise. (NewPrinterGUI.getDeviceURI): Likewise. (NewPrinterGUI.__init__): Fetch chkSMBAuth widget. (NewPrinterGUI.nextNPTab): Sanitize SMB URIs (remove passwords) before giving them to the PPD matcher; otherwise debug messages might show passwords. (NewPrinterGUI.fillDeviceTab): Don't print current URI. (NewPrinterGUI.on_entSMBURI_changed): Set authentication check-box inactive when not needed. (NewPrinterGUI.getDeviceURI): No user and password when the authentication check-box is not checked. (NewPrinterGUI.on_btnSMBVerify_clicked): Use get_active on the check-box rather than looking at the table's sensitivity. (GUI.fillPrinterTab): Set device URI sensitive when there is no needed for an ellipsis. (NewPrinterGUI.on_entSMBURI_changed): Always set username and password fields, even when empty. (NewPrinterGUI.on_btnSMBBrowseOk_clicked): Clear SMB username and password fields. (NewPrinterGUI.on_tvNPDevices_cursor_changed): Likewise. (NewPrinterGUI.on_entSMBURI_changed): Removed redundant code. (GUI.populateList): Select newly added printer instead of previously selected printer. 2007-09-13 Tim Waugh * system-config-printer.py (NewPrinterGUI.__init__): Fetch the InfoDialog and lblInfo widgets from the Glade XML. (GUI.__init__): Fetch the widgets for the 'copy printer' dialog. (GUI.on_copy_activate): Select newly-copied printer. (GUI.populateList): When deleting a printer, select the default printer again. (NewPrinterGUI.getNPPPD): It is non-fatal for getServerPPD to fail here. (NewPrinterGUI.nextNPTab): Don't try to show installable options when the PPD cannot be fetched due to (a) lack of pycups support, (b) lack of libcups support, or (c) lack of support in the CUPS server. (NewPrinterGUI.nextNPTab): Only try to fill in Installable Options page if it's the next page (Change PPD currently doesn't have such a page). 2007-09-12 Tim Waugh * system-config-printer.py (NewPrinterGUI.on_btnSMBBrowseOk_clicked): Don't ignore 'changed' signal from Entry widget; otherwise the Verify button never gets set sensitive. (NewPrinterGUI.__init__): Fetch the ErrorDialog and lblError widgets from the Glade XML. * system-config-printer.glade: Prevent GTK+ warning about non-scrollable widgets. * system-config-printer.py (GUI.save_printer): When a class is removed on the server, remove it from the user interface. 2007-09-12 Florian Festi * system-config-printer.py: Split out NewPrinterWindow into an own class and move all kind of code arround. * system-config-printer.glade: Add a Installable Options tab to the New Printer Dialog. * still missing: - Installable Options are not set yet. - Installable Options are not shown when changing the PPD 2007-09-11 Till Kamppeter * Makefile.am: Let "make install" also install the new file gtk_treeviewtooltips.py 2007-09-07 Tim Waugh * system-config-printer.py (GUI.maintenance_command): Set MIME type for command file. (GUI.setDataButtonState): Set maintenance buttons insensitive when not possible to submit maintenance jobs. (GUI.populateList): Don't select the default printer after changes to another printer have been made. (GUI.get_PPD_but_handle_errors): Always construct URI from input fields (bug #281551). (GUI.fillDeviceTab): No need to browse for SMB servers when changing device now; a separate Browse button handles that. 2007-09-05 Tim Waugh * system-config-printer.py: Moved state widget code to a sane place. (GUI.maintenance_command): New method implementing maintenance commands. * system-config-printer.glade: Button text changes. 2007-09-05 Florian Festi * system-config-printer.glade: Adjusted spacing for small dialogs * system-config-printer.py(on_server_changed, fillServerTab): Set unsupported Server Settings insensitve instead of hidden Make SMBBrowseDialog transient to the New Printer Dialog Disable Verify SMB URI button if URI is empty Make sure new default Class names are unique Start counting from 2 when creating unique names Remove Apply New Printer/Class tab Added buttons for "Print Self Test" and "Clean Print Head" 2007-09-04 Florian Festi * system-config-printer.glade, system-config-printer.py: Remove inactive PPD comments in the New Printer Dialog Show human readable name in the driver list Added tooltips to driver list * system-config-printer.py: Fix locking problems in PPD and Devices fetching code 2007-09-04 Tim Waugh * system-config-printer.py (GUI.setConnected): Set sensitivity for new check-box. (GUI.fillServerTab): Show setting for new check-box. (GUI.on_server_changed): Set sensitivity for new check-box. (GUI.save_serversettings): Set server setting from check-box. * system-config-printer.glade: New check-box for 'Allow printing from the Internet'. 2007-09-03 Tim Waugh * po/pl.po: Updated (bug #263001). * system-config-printer.py (GUI.on_tvSMBBrowser_cursor_changed): Prevent traceback when iter is None. 2007-09-03 Florian Festi * system-config-printer.glade, system-config-printer.py: Move SMB browser into an own dialog that is filled in a separate thread. * pysmb.py: Remove signal.signal to allow usage in sub thread 2007-08-31 Tim Waugh * my-default-printer.py (handle_sigchld): Ignore OSError (Ubuntu #136403). 2007-08-30 Florian Festi * system-config-printer.glade: - Use gtk.AboutDialog - Make sub dialogs center on parent 2007-08-30 Tim Waugh * configure.in: Version 0.7.74. 2007-08-30 Tim Waugh * Makefile.am: Added 'help' target. 2007-08-30 Florian Festi * system-config-printer.py (on_new_printer_activate): call on_rbtnNPFoomatic_toggled after initNewPrinterWindow to avoid trace back 2007-08-30 Tim Waugh * system-config-printer.glade: Applied patch from Florian Festi to fix widget padding in the dialogs. 2007-08-29 Tim Waugh * po/fr.po: Updated (bug #264281). * system-config-printer.py (__init__): Developer can use environment variable SYSTEM_CONFIG_PRINTER_GLADE to override the location of the XML file to read. (GUI.connect): When connecting to a new server, try to select the printer we already had selected. This is useful when selecting a remote printer and then clicking 'Go to...'. (GUI.initNewPrinterWindow): Fixed New Class dialog. (GUI.populateList): Expand list in order to select specified printer. * Makefile.am: New target 'run'. * system-config-printer.py: Expand/collapse printer lists. Patch from Florian Festi. * system-config-printer.glade: Applied patch from Florian Festi to fix widget padding in the main window. * po/pl.po: Updated (bug #263001). 2007-08-24 Tim Waugh * configure.in: Version 0.7.73. 2007-08-24 Tim Waugh * system-config-printer.py (main): Use CUPS_USER if set in the environment. * Makefile.am: New 'fix-glade' target for fixing glade XML produced by the glade-2 program; for instance, removing 'invisible_char' attributes. 2007-08-24 Till Kamppeter * system-config-printer.glade: Removed superfluous scrolledwindow+viewport set around the printer list. Thanks to Ryan Lovett for this patch. Fixes Ubuntu bug 134427. 2007-08-23 Till Kamppeter * system-config-printer.py: Fixed display of warning message that a shared printer is not really published due to the CUPS server settings. The message was not removed when turning on printer sharing in the CUPS server setting. This fixes Ubuntu bug 132735. Set decent default selection in the main window when system-config-printer is started without options. If there is a default printer, select it, if not select the first printer in the list, and if there are no printers, select the server settings. Fixes Ubuntu bug 132652. 2007-08-22 Till Kamppeter * pysmb.py: Added new function get_host_list_from_domain() which lists all hosts belonging to a given domain using the command "nmblookup -R ''" and getting the SMB names of the hosts via "nmblookup -A ". This is more reliable than the old function get_host_list() which uses "smbclient -N -L //". See Ubuntu bug 127152. Modified the test procedure to use the new function. * system-config-printer.py: Look up the hosts in a domain with the new get_host_list_from_domain() function. Make also sure that all items in the tree list of SMB domains/servers/shares have the little triangle to show the sub-tem list, even before the sub-items were scanned. These two fixes should fix Ubuntu bug 127152. Quote/Unquote all elements of the SMB device URIs, as spaces are also allowed in SMB host and share names. Should fix Ubuntu bug 128261. Scan SMB host list when in the main window the "Change" button for the URI is clicked and the URI is an SMB URI. This way the list of SMB domains/servers/shares in the dialog for setting the URI does not stay empty. Handle exceptions raised by the browse_smb_hosts() function if it is called before the add-printer wizard window is open. Should fix Ubuntu bug 133573. 2007-08-21 Till Kamppeter * pysmb.py: "nmblookup -M -- -" not always gives a result. If not, fall back to "nmblookup '*'". This should fix Ubuntu bug 127152. If a printer share name has spaces, it got truncated at its first space this is fixed now and should fix Ubuntu bug 128261. * system-config-printer.py: Extract make and model name from the PPD file for positioning the cursor in the make/model selection whenever a PPD file was found, also with STATUS_NO_DRIVER. If there is no device ID information at all call PPD search with a non-existing device ID to get a fallback PPD (like textonly.ppd or postscript.ppd). This way the model selection cursor is never simply set onto the first entry of the "Generic" printers. This two changes fix Ubuntu bug 102389. * ppds.py: Let the PPDs coming with CUPS have higher priority than the "Generic" PPDs of Foomatic, but lower priority than model-specific Foomatic PPDs. (PPDs._findBestMatchPPDs): This function raised an exception on model names without digits. 2007-08-16 Till Kamppeter * ppds.py: Allow textonly.ppd and postscript.ppd (for fallback on unknown printer models) to be at any arbitrary place in the PPD file directories 2007-08-16 Tim Waugh * ppds.py (PPDs.getPPDNameFromDeviceID): Better fall-back if no textonly.ppd is available. (PPDs._findBestMatchPPDs): If no match is found at all, try searching for the model ID word, with decreasing significant figures. 2007-08-15 Till Kamppeter * system-config-printer.py: Added support for custom page-size-specific test pages. When clicking "Test Page" system-config-printer looks at first for a file /usr/share/system-config-printer/testpage-.ps where is the current page size setting of the printer (case-insensitive matching). If such a file is there, it will be printed, otherwise the standard CUPS test page. This allows distributions to place custom test pages (Thanks to Martin Pitt from Ubuntu/Debian). * system-config-printer.py: Made system-config-printer more flexible for special situations: - system-config-printer can be started and used by users in the lpadmin group now - system-config-printer can be started on systems without local CUPS deamon (with client.conf pointing to a remote server) This should not break running system-config-printer as root. 2007-08-15 Tim Waugh * system-config-printer.py (GUI.populateList): New optional argument for selecting an initial printer after connection (Ubuntu #132652). (GUI.populateList): Initially select default/first printer/class. * system-config-printer.py (GUI.save_serversettings): Handle RuntimeError from cups.adminSetServerSettings (Ubuntu #131848). (GUI.makeNameUnique): New method, for creating unique queue names (Ubuntu #132227). (GUI.nextNPTab): Use it. (GUI.on_btnNPApply_clicked): Show the Wait window when adding a new printer. (GUI.cupsPasswdCallback): Hide the Wait window while asking for password. * ppds.py (PPDs._findBestMatchPPDs): Don't try to match 'series' in Device ID MDL fields. * system-config-printer.glade (WaitWindow): New window. * system-config-printer.py: Responsiveness improvements. Call into the main GTK+ loop when waiting for threads to finish, and index PPDs in the PPD thread. * system-config-printer.py (GUI.nextNPTab): Ask for name, location and description after model selection (Ubuntu #132227). (GUI.nextNPTab): Choose printer name based on selected model if no Device ID was available. 2007-08-14 Tim Waugh * system-config-printer.py (GUI.initNewPrinterWindow): Set location as the hostname. (GUI.get_hplip_uri_for_network_printer): Protect hostname against shell expansion. (GUI.fillDeviceTab): Catch non-fatal exceptions when fetching make and model information from network printers. * system-config-printer.py (GUI.nextNPTab): Switch the first two pages of the New Printer wizard around, so that the device is chosen first and then the name. (GUI.initNewPrinterWindow): Likewise. (GUI.__init__): Query devices as soon as the application is started. (GUI.on_new_printer_activate): Fill device tab first when displaying the New Printer wizard. (GUI.nextNPTab): Choose an appropriate name for the new queue if possible. (GUI.setNPButtons): Adjust which pages get forward/back buttons. * ppds.py (PPDs.getPPDNameFromDeviceID): Unbreak HPLIP made-up Device IDs. * system-config-printer.py (GUI.on_tvNPDevices_cursor_changed): Update wizard buttons in device selection screen, to allow for validation. (GUI.setNPButtons): Validate device URI. (validDeviceURI): New function for validating device URIs. (GUI.fillDeviceTab): Fix display of current URI. 2007-08-14 Till Kamppeter * ppds.py: Strip version numbers from model name (ex: "ML-1610, 1.0") 2007-08-10 Tim Waugh * system-config-printer.py (GUI.on_btnNPApply_clicked): Select newly-created printer. * system-config-printer.glade: Connect dialog user name field activates default. * system-config-printer.py (GUI.on_btnNPApply_clicked): Set cursor busy while adding queue. (GUI.cupsPasswdCallback): Wait for main loop to hide dialog before returning from callback. * cupshelpers.py (activateNewPrinter): New function. * system-config-printer.py (GUI.on_btnNPApply_clicked): Use it. * system-config-printer.py (GUI.getPPDs_thread): Store IPP error for collection by main thread. (GUI.fetchPPDs): Propagate exception. (GUI.nextNPTab): Handle IPP error while fetching PPDs. (GUI.fillDeviceTab): More error handling for failure to fetch device list. 2007-08-09 Tim Waugh * optionwidgets.py (OptionWidget): Treat incorrect Boolean options as PickOne (bug #241809). 2007-08-08 Tim Waugh * configure.in: Version 0.7.72. 2007-08-07 Tim Waugh * system-config-printer.py (GUI.getNetworkPrinterMakeModel): Prevent traceback (sys.environ -> os.environ). (GUI.on_tvMainList_cursor_changed): Allow copying of remote queues. (GUI.connect): If connection via the UNIX domain socket fails, fall back to local loopback. 2007-08-06 Tim Waugh * system-config-printer.py (GUI.on_new_printer_activate): Remember that PPDs and devices have not yet been loaded. (GUI.nextNPTab): Only load PPDs and devices if not already loaded. (GUI.getNetworkPrinterMakeModel): Protect hostname from shell expansion. (GUI.on_tvMainList_cursor_changed): Only allow Delete/Copy for locally-defined printers (bug #250384). * probe_printer.py (LpdServer.probe): Try leaving queue name blank when probing. This should work for e.g. HP LaserJet 3390. * system-config-printer.py: Integrated add-printer wizard patch from Till Kamppeter: o If an auto-detected device (USB, network) is supported by HPLIP only the HPLIP URIs are shown, to assure that the user gets it correctly set up to get access to the complete functionality o For auto-detected network MF devices from HP also an entry for setting up the fax queue is shown o Make and model info of auto-detected network printers is used to direct the user to the correct PPD/driver o For manually entered printers make and model are determined via SNMP. It is also checked whether the printer is supported by HPLIP o No "HP Fax" entry any more when no Fax-capable HP printer is connected. o When selecting an auto-detected non-HPLIP network printer the fields of the form on the right are correctly prefilled now. o Improved sorting of the device list entries. Very important changes for that are: o Improved filtering of the detected devices when building the device list for the second page of the wizard o Moved assignment of the PPD to the device from the stage of initializing the forms on the right on the second page of the wizard to the stage of clicking "Forward" for getting from the second to the third page (after the user has manually entered an IP address for a network printer) o Used "/usr/lib/cups/backend/snmp " to obtain make and model for a manually entered network printer o Used "hp-makeuri" to determine whether a network printer is supported by HPLIP. 2007-08-04 Tim Waugh * my-default-printer.py (Dialog.response): The method name is iter_next, not get_iter_next (patch from Till Kamppeter). 2007-08-03 Tim Waugh * configure.in: Version 0.7.71. 2007-08-03 Tim Waugh * system-config-printer.py (GUI.on_tvNPDevices_cursor_changed): Handle socket: URIs (Ubuntu #127074). * system-config-printer.glade: Moved default printer label below make-default button because some translation strings are very long (Ubuntu #128263). * my-default-printer.py (error_out): New function. (Dialog.response): Catch exceptions and error out (Ubuntu #129901). (*top-level*): Likewise. * ppds.py (PPDs.getPPDNameFromDeviceID): Initialise the make/model list when an ID match failed (patch from Till Kamppeter). (PPDs.getPPDNameFromDeviceID): Fixed fallback if no text-only driver is available (patch from Till Kamppeter). (PPDs.getPPDNameFromDeviceID): Don't discard make/model-matched devices when there are ID-matched devices found (patch from Till Kamppeter). 2007-07-09 Tim Waugh * configure.in: Version 0.7.70. 2007-07-09 Tim Waugh * inspecting-printer.png: Added. * print-applet.desktop.in: Fixes for KDE (bug #247299). 2007-07-06 Tim Waugh * system-config-printer.py (GUI.checkDriverExists): Only show install dialog is system-install-packages is available. * ppds.py (PPDs.__init__): Don't list PPDs removed due to language mismatch or else we end up with far too much output. 2007-07-04 Tim Waugh * system-config-printer.py (GUI.checkDriverExists): Run system-install-packages to install missing drivers (bug #246726). * system-config-printer.py (GUI.checkDriverExists): More binary names mapped to package names. * applet.py (NewPrinterNotification.GetReady): Increased GetReady->NewPrinter timeout. 2007-06-28 Tim Waugh * configure.in: Version 0.7.69. 2007-06-28 Tim Waugh * ppds.py (PPDs.__init__): Filter PPDs by natural language (bug #244173). * system-config-printer.py (GUI.loadPPDs): Give PPDs constructor the natural language we expect. * foomatic.py: Removed. * nametree.py: Removed. * system-config-printer.py: Removed commented-out code that used nametree. * gtk_html2pango.py: Removed. 2007-06-25 Tim Waugh * Makefile.am: Use HardwareSettings category for the my-default-printer app (bug #244935). 2007-06-15 Tim Waugh * configure.in: Version 0.7.68. 2007-06-15 Tim Waugh * my-default-printer.py: New file. * my-default-printer.desktop.in: New file. * my-default-printer: New file. * po/POTFILES.in: Translate it. * Makefile.am: Ship it and install it. 2007-06-15 Tim Waugh * applet.py (NewPrinterNotification.NewPrinter): Keep the notification object around so it knows which action callback to call (bug #241531). 2007-06-08 Tim Waugh * Makefile.am: Don't use the TrayIcon category in the applet desktop file since that is reserved now. Use HardwareSettings and Printing categories for the admin tool's desktop file. 2007-06-08 Tim Waugh * configure.in: Version 0.7.67. 2007-06-08 Tim Waugh * ppds.py (PPDs.orderPPDNamesByPreference): Prefer HPIJS for HP devices. (getDriverType): New function. * system-config-printer.py (GUI.on_tvNPDevices_cursor_changed): Use PPDs class for ID matching. (GUI.fillMakeList): Use PPDs class. (GUI.fillModelList): Likewise. (GUI.on_tvNPModels_cursor_changed): Likewise. (GUI.on_tvNPDrivers_cursor_changed): Likewise. (GUI.getNPPPD): Likewise. (GUI.loadPPDs): New method, replacing loadFoomatic(). (GUI.dropPPDs): New method, replacing unloadFoomatic(). (GUI.on_btnChangePPD_clicked): Load PPDs on demand. (GUI.on_btnChangePPD_clicked): Don't drop PPDs each time. (GUI.on_tvNPModels_cursor_changed): Order PPD names by preference. (GUI.getPPDs_thread): Fetch PPDs from the correct server. (GUI.getDevices_thread): Fetch devices from the correct server. * ppds.py (PPDs.getPPDNameFromDeviceID): Display message to stdout when the ID was not matched. * applet.py (NewPrinterNotification.NewPrinter): Use ppdMakeModelSplit from the new ppds module, not the old foomatic module. * Makefile.am: Ship ppds.py as a script. Running it on its own gives statistics on the installed PPDs, and runs some ID tests. * foomatic.py (Foomatic.getPrinterFromCupsDevice): Don't split the CMD field: it is already split. * cupshelpers.py (parseDeviceID): Always split the CMD field. * manage-print-jobs.desktop.in (_Name): Use capital letters at the start of each word for the Name field (bug #242859). 2007-06-07 Tim Waugh * system-config-printer.py (GUI.save_printer): Don't call populateList() after saving printer, just update the printer we changed. This prevents a GTK+ crash (bug #242961). (GUI.maySelectItem): Only clear the changed set when the cursor is going to change. (GUI.on_tvMainList_cursor_changed): Don't update when unapplied changes remain. 2007-06-06 Tim Waugh * print-applet.desktop.in: Fixed Name field to start each word with a capital letter (bug #242859). 2007-05-30 Tim Waugh * configure.in: Version 0.7.66. 2007-05-30 Tim Waugh * foomatic.py (_ppdMakeModelSplit): Don't require ppdname when stripping foomatic driver information. * applet.py (NewPrinterNotification): Use the system bus not the session bus. * newprinternotification.conf: D-Bus configuration file. * Makefile.am: Ship it. 2007-05-28 Tim Waugh * Makefile.am (nobase_pkgdata_DATA): Ship 'inspecting' icon. * applet.py (NewPrinterNotification): Implemented. 2007-05-25 Tim Waugh * man/system-config-printer.xml: Document new options. * system-config-printer.py (GUI.populateList): Now --configure-printer=x automatically selects that printer on start-up, and --choose-driver=x invokes the "Change PPD" dialog as well. Needed for "new printer" notifications in the applet. 2007-05-23 Tim Waugh * applet.py (JobManager.set_special_statusicon): New method. (JobManager.unset_special_statusicon): New method. (JobManager.set_statusicon_from_pixbuf): New method. (JobManager.refresh): Use it. * system-config-printer.py (GUI.__init__): Added 'Hold until:' control to Job Options screen (bug #239776). * cupshelpers.py (Printer._getAttributes): Allow job-hold-until to be set (bug #239776). 2007-05-22 Tim Waugh * configure.in: Version 0.7.65. 2007-05-21 Tim Waugh * man/system-config-printer.xml: New file. * Makefile.am: Ship it. Create man files and install them. * Makefile.am: Not all of the Python modules are scripts. Mark the ones that are and aren't so that the executable permissions are set correctly on install. 2007-05-16 Tim Waugh * system-config-printer.py (GUI.on_btnSelectDevice_clicked): Start fetching the device list in a separate thread. (GUI.loadFoomatic): Start fetching the PPD list while we parse the XML database. (GUI.on_new_printer_activate): Start fetching PPD and device lists while the user picks a name for the printer. * applet.py (JobManager.refresh): Limit refresh frequency. Sometimes several D-Bus events will occur in quick succession, and we do not want a full refresh every single time. 2007-05-15 Tim Waugh * Makefile.am (DISTCLEANFILES): Don't removed intltool .in files on distclean. 2007-05-09 Tim Waugh * configure.in (ALL_LINGUAS): Added kn. 2007-04-29 Tim Waugh * applet.py (JobManager.__init__): Prevent traceback. 2007-04-26 Tim Waugh * applet.py (JobManager.update_job_creation_times): Split out creation time text into separate function, and update it every minute when there are jobs. 2007-04-25 Tim Waugh * applet.py (JobManager.refresh): Fix relative time description. 2007-04-13 Tim Waugh * applet.py (JobManager.update_connecting_devices): New method. Be a bit smarter about connecting-to-device, to make sure it really has been in that state for as long as we think. 2007-04-11 Tim Waugh * applet.py (StateReason.get_description): Fixed typo. (JobManager.check_still_connecting): New method. (JobManager.check_state_reasons): Add a timed callback to check for connecting-to-device after a minute's time. (StateReason.get_description): Messages for connecting-to-device. 2007-04-10 Tim Waugh * applet.py: Don't connect to the session bus if we don't need to, and exit if connecting to D-Bus fails for any reason (Ubuntu #102992). (JobManager.check_state_reasons): Put warning/error symbol at the bottom right of the icon instead of the top right. * system-config-printer.py (GUI.parse_SMBURI): Use urllib for quoting/unquoting (Val Henson, Ubuntu #105022). (GUI.construct_SMBURI): Likewise. (percentEncode, percentDecode): Removed. 2007-04-06 Tim Waugh * applet.py (JobManager.check_state_reasons): Clear the status bar when there is no warning/error to report. (JobManager.refresh): Check status reasons when running without a tray icon. (JobManager.check_state_reasons): Only check for notifications to close if we are running with a tray icon. 2007-04-05 Tim Waugh * configure.in: Version 0.7.64. 2007-04-05 Tim Waugh * applet.py (StateReason): New class. (JobManager.__init__): Set up printer state treeview. (JobManager.on_printer_status_delete_event): New method. (JobManager.on_show_printer_status_activate): New method. (JobManager.check_state_reasons): Update printer state display window. (JobManager.check_state_reasons): Send notifications for printer errors on our jobs. (JobManager.check_state_reasons): Set statusbar. * applet.glade: Added windows for printer state display. * applet.py (JobManager.__init__): Set rules hint for the treeview. 2007-04-04 Tim Waugh * applet.py (JobManager.check_state_reasons): New method. (worst_printer_state_reason): Helper function. (collect_printer_state_reasons): Helper function. 2007-04-05 Tim Waugh * configure.in: Version 0.7.63. 2007-04-05 Tim Waugh * po: Updated translations pulled in. * manage-print-jobs.desktop.in: This file had not been checked in. 2007-04-02 Tim Waugh * configure.in: Version 0.7.62. 2007-04-02 Tim Waugh * system-config-printer.py (GUI.on_tvSMBBrowser_cursor_changed): Prevent a traceback (bug #225351). Patch from Jani Monoses. * manage-print-jobs.desktop.in: New file. * po/POTFILES.in: Translate it. * Makefile.am: Ship it. * applet.py (monitor_session): Stop running when the session ends. 2007-03-30 Tim Waugh * applet.py, cupsd.py, cupshelpers.py, foomatic.py, system-config-printer.py: Use /usr/bin/env instead of /bin/env. * system-config-printer.desktop.in: Use printer.png as the icon. 2007-03-30 Tim Waugh * configure.in: Version 0.7.61. 2007-03-30 Tim Waugh * cupshelpers.py (PrintersConf): Reinstated (bug #203539). (getPrinters): Fetch and parse printers.conf if needed for SMB authentication details (bug #203539). * applet.py: Added support for --help, --version and --no-tray-icon. (show_help): Implemented. (show_version): Likewise. 2007-03-27 Tim Waugh * configure.in: Version 0.7.60. 2007-03-27 Tim Waugh * applet.py (JobManager.refresh): Use job state constants (requires pycups 1.9.19). (JobManager.on_treeview_button_press_event): Likewise. * applet.py: No need to check for --sm-client-id now that the applet has a different name. * Makefile.am: Better desktop-file categories. * print-applet.desktop.in: Remove 'eggcups' name from the applet. * Makefile.am: Install the autostart file in the correct location, and install the applet. * system-config-printer-applet: New file. * system-config-printer.py (GUI.reconnect): Handle reconnection failure (Ubuntu #95629). 2007-03-26 Tim Waugh * configure.in: Version 0.7.59. 2007-03-26 Tim Waugh * configure.in: Version 0.7.58. 2007-03-26 Tim Waugh * applet.py (JobManager.on_icon_hide_activate): Hide icon when requested (bug #233899). If the service is not running, quit. * applet.glade: Icon pop-up menu. * applet.glade: Removed status bar (bug #233899). * applet.py (JobManager.__init__): Ellipsize the document name (bug #233899). (PrintDriverSelection.PromptPrintDriver): Handle failure to start the service. (JobManager.__init__): Set a window icon (bug #233899). 2007-03-23 Tim Waugh * applet.py (JobManager.refresh): Fixed '1 document queued' string. 2007-03-21 Tim Waugh * configure.in: Version 0.7.57. 2007-03-21 Tim Waugh * Makefile.am: Ship the applet icon. * applet.py: Put the PrintDriverSelection service on the system bus not the session bus. Exit immediately if --sm-client-id is seen (bug #233261). * print-applet.desktop.in: New file. * po/POTFILES.in: Translate it. * Makefile.am: Merge translations and ship it. * applet.py, applet.glade: New files. * po/POTFILES.in: Translate them. 2007-03-17 Tim Waugh * system-config-printer.py (GUI.on_btnPMakeDefault_clicked): Prevent traceback when removing temporary file (Ubuntu #92914). 2007-03-16 Tim Waugh * configure.in: Version 0.7.56. 2007-03-16 Tim Waugh * cupshelpers.py (Printer._getAttributes): Removed always-shown options from the possible_attributes list. * cupshelpers.py (Printer._getAttributes): Handle 'sides'. * system-config-printer.py (GUI.__init__): Likewise. * options.py (OptionAlwaysShown.set_default): New method. (OptionAlwaysShown.__init__): Use it. * system-config-printer.py (GUI.fillPrinterTab): Likewise. * options.py (OptionAlwaysShown.set_widget_value): Handle str-type IPP enums. (OptionAlwaysShown.get_widget_value): Likewise. 2007-03-13 Tim Waugh * cupshelpers.py (Printer._getAttributes): Handle 'media'. * system-config-printer.py (GUI.fillPrinterTab): Pass supported values through to the option widget, if supplied. * options.py (OptionAlwaysShown.reinit): Fit the supported list, if supplied, to the combobox. * cupshelpers.py (Printer._getAttributes): Handle 'job-priority'. * system-config-printer.py (GUI.__init__): Likewise. * cupshelpers.py (Printer._getAttributes): Handle 'finishings'. * system-config-printer.py (GUI.__init__): Likewise. * cupshelpers.py (PrintersConf): Removed (bug #231826). (Printer._getAttributes): Removed set_attributes parameter. (Printer.__init__): Likewise. (Printer._getAttributes): For the time being ignore finishings, job-priority, media, document-format, job-hold-until, sides and notify-lease-duration defaults. 2007-03-12 Tim Waugh * system-config-printer.py (GUI.checkDriverExists): Updated filter-to-driver map. 2007-03-12 Tim Waugh * probe_printer.py (LpdServer._open_socket): Handle hostname look-up failures (Ubuntu #87115). 2007-03-02 Tim Waugh * foomatic.py (Foomatic.getPrinterFromCupsDevice): Make commandsets into a list instead of a string (seen in bug #230665). 2007-02-27 Tim Waugh * options.py (OptionAlwaysShown.bool_type): Parse Boolean strings correctly. 2007-02-27 Tim Waugh * configure.in: Version 0.7.55. 2007-02-27 Tim Waugh * options.py (OptionAlwaysShown.reinit): Use converted value. 2007-02-27 Tim Waugh * configure.in: Version 0.7.54. 2007-02-27 Tim Waugh * system-config-printer.py: Disable debugging code (oops). 2007-02-27 Tim Waugh * configure.in: Version 0.7.53. 2007-02-26 Tim Waugh * system-config-printer.py (GUI.__init__): Added 'scaling' option. (GUI.__init__): Added 'saturation', 'hue' and 'gamma' options. (GUI.__init__): Added 'cpi', 'lpi', 'page-left', 'page-right', 'page-top', 'page-bottom', 'prettyprint', 'wrap' and 'columns' options. (GUI.fillPrinterOptions): 6 pixels row spacings for PPD options. (GUI.draw_other_job_options): No job options are editable for remote queues (although might not be a bad idea for implementing lpoptions edits..). 2007-02-23 Tim Waugh * system-config-printer.py (GUI.__init__): Added 'mirror' option. * system-config-printer.glade: "Other" job options. * system-config-printer.py (GUI.draw_other_job_options): New function to redraw the other job options table. (GUI.add_job_option): Implemented for new UI. (GUI.on_btnJOOtherRemove_clicked): Likewise. (GUI.on_btnNewJobOption_clicked): Likewise. (GUI.on_entNewJobOption_changed): Likewise. (GUI.on_entNewJobOption_activate): Pressing Return in the new option text entry widget adds the option. (GUI.fillPrinterTab): Added support for "Other" job options. * options.py (OptionAlwaysShown.set_widget_value): Make combobox_map optional. (OptionAlwaysShown.get_current_value): Likewise. (OptionAlwaysShown.set_widget_value): Handle CheckButtons. (OptionAlwaysShown.get_widget_value): Likewise. (OptionAlwaysShown.is_changed): Explicitly check original_value against None to protect against false bools. 2007-02-22 Tim Waugh * system-config-printer.py (GUI.on_job_option_reset): New function. (GUI.on_job_option_changed): New function. * options.py (OptionInterface): Interface class for Option. (Option): Inherit OptionInterface. (OptionAlwaysShown): New class for always-shown job options widgets. 2007-02-21 Tim Waugh * system-config-printer.py (GUI.fillPrinterTab): Make the text entry boxes sensitive but not editable for remote printers (bug #229381). * cupshelpers.py (Printer.testsQueued): Handle failure gracefully (bug #229406). * system-config-printer.py (GUI.fillPrinterTab): Display an error dialog if we get a RuntimeError trying to get the PPD, instead of just a traceback (bug #229406). * cupshelpers.py (Printer.getPPD): Only IPP_NOT_FOUND means the queue is raw; anything else needs to be handled as an error (bug #229406). * system-config-printer.py (GUI.maySelectItem): Handle applying changes here rather than... (GUI.on_tvMainList_cursor_changed): ...here, after the new item has been selected (bug #229378). * system-config-printer.glade: Added scrollbars to main printer list (bug #229453). Set maximum width of default printer label (bug #229453). 2007-02-20 Tim Waugh * system-config-printer.py (GUI.fillPrinterOptions): Better layout. 2007-02-14 Tim Waugh * optionwidgets.py: Use gettext instead of rhpl.translate. * system-config-printer.py (domain): Likewise. 2007-02-13 Tim Waugh * configure.in: Version 0.7.52. 2007-02-13 Tim Waugh * foomatic.py (Foomatic.getPrinterFromDeviceID): Sort models using cups.modelSort before scanning for a close match (bug #228505). (Foomatic.getPrinterFromDeviceID): Fixed matching logic (bug #228505). 2007-02-09 Tim Waugh * configure.in: Version 0.7.51. 2007-02-09 Tim Waugh * system-config-printer.py (GUI.on_tvNPMakes_cursor_changed): Handle interactive search a little better (bug #227935). (GUI.on_tvNPModels_cursor_changed): Likewise. * system-config-printer.py (GUI.on_btnPMakeDefault_clicked): Fixed typo (bug #227936). 2007-02-08 Tim Waugh * optionwidgets.py (OptionWidget): Remember the tab label. * system-config-printer.py (GUI.setDataButtonState): Embolden the tab containing options in conflict (bug #226368). * system-config-printer.py (GUI.fillPrinterTab): Prevent display glitch in job options list when clicking on printer repeatedly. (GUI.on_btnConflict_clicked): List conflicting options (bug #226368). 2007-02-07 Tim Waugh * configure.in: Version 0.7.50. 2007-02-07 Tim Waugh * system-config-printer.py (GUI.fillPrinterTab): Handle unknown job options (bug #225538). (GUI.on_btnPMakeDefault_clicked): Don't throw exception if getFile() already removed the temporary file (bug #226703). (GUI.get_PPD_but_handle_errors): Get the arguments the right way round. (GUI.get_PPD_but_handle_errors): Likewise. (GUI.fillPrinterTab): Point to the server settings if a printer is shared but the server is not publishing shared printers (bug #225081). (GUI.setConnected): Clear out remembered server settings when connecting to a new server. * cupshelpers.py (Printer._getAttributes): cpi, lpi and scaling are floats (bug #224651). * options.py (OptionWidget): Handle floating point options. (OptionNumeric.get_current_value): Allow floating point values (bug #224651). * system-config-printer.py (GUI.checkDriverExists): If there are unreplaced HTML entities, give up checking (bug #225104). (GUI.save_printer): Don't write an ellipsis in the actual device URI we set (bug #227643). * configure.in (ALL_LINGUAS): Added bs. 2007-01-24 Tim Waugh * system-config-printer.py (percentDecode): Fix hex digits list so we get A-F right (bug #223770). 2007-01-16 Tim Waugh * configure.in: Version 0.7.49. 2007-01-16 Tim Waugh * optionwidgets.py (Option.__init__): Maintain 'enabled' state. (Option.enable): Method for enabling. (Option.disable): Method for disabling. (Option.is_enabled): Method for discovering whether enabled. (Option.writeback): Only mark PPD option if enabled. * system-config-printer.py (GUI.fillPrinterOptions): Take references to InputSlot and ManualFeed widgets. (GUI.option_changed): Enable/disable InputSlot option based on ManualFeed state (bug #222490). 2007-01-15 Tim Waugh * system-config-printer.py (on_btnConflict_clicked): Fixed typo in string. * system-config-printer.py (GUI.checkDriverExists): Fixed another traceback. 2007-01-15 Tim Waugh * configure.in: Version 0.7.48 (only translations updated). 2007-01-12 Tim Waugh * configure.in: Version 0.7.47. 2007-01-12 Tim Waugh * system-config-printer.py (GUI.get_PPD_but_handle_errors): Fixed typo. (GUI.checkDriverExists): Handle multiple commands better. (GUI.pathcheck): Handle shell builtins (bug #222413). 2007-01-11 Tim Waugh * system-config-printer.py (GUI.__init__): Updated copyright notice. (GUI.__init__): Fixed incorrect nouns-with-capitals in translatable text. (GUI.on_connect_activate): Likewise. (GUI.on_btnPrintTestPage_clicked): US spelling for 'cancelling'. (GUI.on_delete_activate): Fixed incorrect nouns-with-capitals in translatable text. 2007-01-08 Tim Waugh * configure.in: Version 0.7.46. 2007-01-08 Tim Waugh * foomatic.py (Printer.getPPDDrivers): Removed some dead code. * cupshelpers.py (setPPDPageSize): New function. * system-config-printer.py (GUI.on_btnNPApply_clicked): Use it for user-provided PPD. (GUI.on_btnNPApply_clicked): Use it for new printers (bug #221702). * configure.in (ALL_LINGUAS): Added ro. 2007-01-03 Tim Waugh * configure.in: Version 0.7.45. 2007-01-03 Tim Waugh * system-config-printer.py (GUI.checkDriverExists): Fixed traceback. 2007-01-02 Tim Waugh * configure.in: Version 0.7.44. 2007-01-02 Tim Waugh * foomatic.py (Foomatic.getPrinterFromDeviceID): Preserve case in model string when dumping debug output. 2006-12-28 Tim Waugh * system-config-printer.py (GUI.get_PPD_but_handle_errors): Fixed traceback in error display. 2006-12-21 Tim Waugh * configure.in: Version 0.7.43. 2006-12-21 Tim Waugh * system-config-printer.py (GUI.checkDriverExists): Stop checking for binaries if we already discovered one missing (bug #220347). (GUI.on_btnNPApply_clicked.get_PPD_but_handle_errors): Distinguish between PPD and Foomatic errors, and for PPD errors show the output of the cupstestppd command to help pinpoint the problem (bug #220136). 2006-12-15 Tim Waugh * system-config-printer.py (GUI.on_btnApply_clicked): Use nonfatalException() if exception caught. 2006-12-14 Tim Waugh * system-config-printer.py (nonfatalException): New function. (GUI.on_tvNPDevices_cursor_changed): Use it when trying to auto-match printer model. * foomatic.py (Foomatic.getPrinterFromDeviceID): New function. (Foomatic.getPrinterFromCupsDevice): Use it. (Foomatic.getPPD): Likewise (bug #219518). 2006-12-12 Tim Waugh * foomatic.py (Foomatic.getPrinterFromCupsDevice): Don't check against DES field at all; if the make and model strings don't match, the description field isn't helpful. Example: '6543' which is the same between two unrelated devices. * Makefile.am: New target missing-languages. 2006-12-11 Tim Waugh * configure.in: Version 0.7.42. 2006-12-11 Tim Waugh * foomatic.py (Foomatic.getPrinterFromCommandSet): Fixed typo. (Foomatic.getPrinterFromCupsDevice): Case-insensitive matching when Device ID not known to database. * configure.in (ALL_LINGUAS): Added mr. 2006-12-07 Tim Waugh * configure.in: Version 0.7.41. 2006-12-01 Tim Waugh * system-config-printer.py (GUI.on_about_activate): hpfax backend should set empty/description tab. (GUI.on_tvNPDevices_cursor_changed): Set description label to reflect backend type. * system-config-printer.glade: Added label to describe devices with no optional parameters. 2006-11-30 Tim Waugh * cupshelpers.py (Printer.setEnabled): Optional 'reason' argument. (Printer.setAccepting): Likewise. * system-config-printer.glade: Centre Connecting dialog on parent. * system-config-printer.py (GUI.on_connect_activate): Set Connecting dialog transient for main window. (GUI.reconnect): Provoke libcups into reconnecting. (GUI.populateList): Keep Server Settings selected if it was before. 2006-11-28 Tim Waugh * system-config-printer.py (GUI.setNPButtons): Set Forward button sensitive on Device screen in new-printer dialog (bug #217515). (GUI.on_tvNPDevices_cursor_changed): Don't pre-select make and model when not discoverable for chosen device (bug #217518). (GUI.show_HTTP_Error): Fixed typo (bug #217537). (GUI.on_btnPMakeDefault_clicked): If the system-wide lpoptions file sets a default printer that conflicts with the new server default, alter lpoptions so that it no longer overrides it (bug #217395). (GUI.show_HTTP_Error): Describe cups.HTTPError -1 as 'not connected'. (GUI.reconnect): Implemented. (GUI.apply): Reconnect after applying server settings. 2006-11-27 Tim Waugh * configure.in: Version 0.7.40. 2006-11-24 Tim Waugh * configure.in (ALL_LINGUAS): Added lv and si. 2006-11-23 Tim Waugh * system-config-printer.glade: Don't set button widths in new-printer dialog (bug #217025). 2006-11-21 Tim Waugh * system-config-printer.glade: Removed username:password from hint string because we add that in afterwards. 2006-11-21 Tim Waugh * configure.in: Version 0.7.39. 2006-11-21 Tim Waugh * system-config-printer.glade: Added SMB hint label on device screen (bug #212759). 2006-11-15 Tim Waugh * configure.in (ALL_LINGUAS): Updated. 2006-11-14 Tim Waugh * system-config-printer.glade: Make PPD NickName selectable. * system-config-printer.py (GUI.on_btnChangePPD_clicked): Busy cursor while loading foomatic and PPD list (bug #215527). (GUI.on_btnSelectDevice_clicked): Busy cursor while loading foomatic and device list (bug #215527). 2006-11-14 Tim Waugh * configure.in: Version 0.7.38. 2006-11-14 Tim Waugh * system-config-printer.py (GUI.pathcheck): Fixed indentation so that IJS servers are checked to be in the path. * foomatic.py (Foomatic.addCupsPPDs): Fixed traceback in 'ppd-device-id' parsing code. 2006-11-13 Tim Waugh * configure.in: Version 0.7.37. 2006-11-11 Tim Waugh * system-config-printer.py (GUI.on_btnPrintTestPage_clicked): IPP Error dialog for any cancelling errors. 2006-11-10 Tim Waugh * system-config-printer.py (GUI.setTestButton): New function for allowing user to cancel test jobs if there are some. (GUI.fillPrinterTab): Use it. (GUI.on_btnPrintTestPage_clicked): Cancel jobs if cancelling (bug #215054). * cupshelpers.py (Printer.testsQueued): New method for finding out if test pages are queued. (Printer.cancelJobs): New method for cancelling jobs. 2006-11-10 Tim Waugh * configure.in: Version 0.7.36. 2006-11-10 Tim Waugh * foomatic.py (Foomatic.addCupsPPDs): No need to remove foomatic PPDs now; this is handled in foomatic. 2006-11-09 Tim Waugh * cupshelpers.py (parseDeviceID): New function. (Device.__init__): Use it. * foomatic.py (Foomatic._add_printer): Likewise. (Foomatic.addCupsPPDs): Parse IEEE 1284 Device IDs from CUPS PPDs and add them to the make/model look-up dictionary. (Foomatic._add_printer): Don't add empty fields to the look-up dictionary. (Foomatic.getPrinterFromCupsDevice): Fixed typo. (Foomatic.getPrinterFromCommandSet): New function. (Foomatic.getPPD): Use it. (Foomatic.getPrinterFromCupsDevice): Match against command sets. * foomatic.py (Foomatic.getPPD): Convert command sets to lower case for comparison. (Foomatic.getPPD): Match PCL6, PCL5e, PCL5c, ESCPL2 command sets. * foomatic.py (Foomatic._add_printer): Parse 'autodetect/*/ieee1284' entries (bug #214761). 2006-11-08 Florian Festi * foomatic.py (Foomatic.getPPD): now matches against commandset (bug #214181), removed debug code and code commented out * cupshelpers.py: removed code commented out 2006-11-07 Tim Waugh * configure.in: 0.7.35. 2006-11-07 Tim Waugh * system-config-printer.py (GUI.fillModelList): Reset scroll. (GUI.fillMakeList): Likewise. (GUI.fillDriverList): Scroll to pre-selected driver. * foomatic.py (Foomatic.getPrinterFromCupsDevice): Handle bogus HPLIP Device IDs (bug #214434). * system-config-printer.py (GUI.pathcheck): Support absolute paths in foomatic command line. (GUI.pathcheck): Fixed typo. (GUI.on_tvNPDrivers_cursor_changed): Better PPD information display (bug #214365). * foomatic.py (_ppdMakeModelSplit): Merge CUPS and foomatic manufacturers when they differ in case. * system-config-printer.py (GUI.on_btnNPApply_clicked): Handle missing driver XML for drivers like Gutenprint. * system-config-printer.py (GUI.checkDriverExists): Check for '*cupsFilter' lines and verify filters are installed (bug #212139). * foomatic.py (_ppdMakeModelSplit): Better display for models driven by Gimp-Print PPDs (bug #213862). 2006-11-06 Tim Waugh * configure.in: Version 0.7.34. 2006-11-06 Tim Waugh * foomatic.py (Foomatic.getPPD): Only match against description when it is valid (bug #206907). * cupshelpers.py (PrintersConf.parse): Handle invalid printers.conf file gracefully (bug #214134). 2006-11-04 Tim Waugh * optionwidgets.py (OptionBool.__init__): Handle Boolean values with "On" and "Off" as choices (bug #213136). * system-config-printer.py (GUI.on_btnNPApply_clicked): Handle database errors gracefully (bug #213992). (GUI.on_btnNPApply_clicked): Only translate the strings once. 2006-11-03 Tim Waugh * foomatic.py (_ppdMakeModelSplit): "EPSON" -> "Epson". * system-config-printer.py (GUI.checkDriverExists): Include gutenprint driver check. * foomatic.py (_ppdMakeModelSplit): Better display for models driven by Gutenprint PPDs (bug #213862). 2006-11-02 Tim Waugh * configure.in: Version 0.7.33. 2006-11-02 Tim Waugh * system-config-printer.py (GUI.save_printer): Refresh after applying changes (bug #213692). * system-config-printer.py (GUI.on_btnNPApply_clicked): Set PageSize when uploading a new PPD as-is (bug #213680). * cupshelpers.py (copyPPDOptions): Skip 'PageRegion' since that's special (bug #213680). * system-config-printer.py (GUI.on_btnNPApply_clicked): Fix using the new PPD as-is (bug #203905). * system-config-printer.py (GUI.fillDeviceTab): Sort 'Other' last in the devices list (bug #213676). * system-config-printer.py (GUI.on_btnChangePPD_clicked): Fix auto-selection of current PPD when changing it (bug #213667). * optionwidgets.py (OptionPickOne.__init__): Handle enum values already set outside the range (bug #213136). 2006-11-01 Tim Waugh * system-config-printer.py (GUI.checkDriverExists): New function to check that the driver exists. (GUI.on_btnNPApply_clicked): Use it (bug #212139). 2006-10-31 Tim Waugh * system-config-printer.py (GUI.__init__): Find '.PPD' files as well as '.ppd' files (bug #213223). 2006-10-25 Tim Waugh * foomatic.py (Printer.getPPD): Clean up temporary file. 2006-10-05 Tim Waugh * system-config-printer.glade: Fix invisible_char in glade file (bug #209368). 2006-10-02 Tim Waugh * configure.in: Version 0.7.32. 2006-10-02 Tim Waugh * system-config-printer.py (GUI.show_HTTP_Error): New function. (GUI.connect): Use it to handle HTTPError (bug #208824). (GUI.setConnected): Set 'server settings' widgets insensitive when not connected. (GUI.on_tvMainList_cursor_changed): Only set widget status when connected. (GUI.__init__): Handle error on initial connection (bug #208824). 2006-09-29 Tim Waugh * configure.in: Version 0.7.31. 2006-09-29 Tim Waugh * system-config-printer.py: Fixed automatic selection of recommended driver (bug #208606). * system-config-printer.glade: Better visibility for printer drivers (bug #203907). 2006-09-29 Tim Waugh * configure.in: Version 0.7.30. 2006-09-29 Tim Waugh * Makefile.am: Add a distcheck-hook for update-po. * system-config-printer.glade: Don't set width_request on buttons that don't need it (bug #208556). 2006-09-29 Tim Waugh * configure.in: Version 0.7.29. 2006-09-29 Tim Waugh * foomatic.py (getPrinterFromCupsDevice): Fixed debug message. * system-config-printer.py (GUI.__init__): Set glade translation domain (bug #206622). * po/fr.po: Fixed vertext ('%' -> '%s'). 2006-09-26 Tim Waugh * configure.in: Version 0.7.28. 2006-09-26 Tim Waugh * configure.in: Set CATOBJECT to fix bug #206622. 2006-08-30 Tim Waugh * configure.in: Version 0.7.27. 2006-08-30 Tim Waugh Applied patch from Kjartan Maraas: * Makefile.am: Use intltool to translate desktop file. * bootstrap: Run intltoolize. * configure.in: Added intltool hook. * system-config-printer.desktop.in: New file. * po/POTFILES.in: Translate desktop file. 2006-08-24 Tim Waugh * foomatic.py: Removed special raw printer handling in favour of CUPS-provided 'Raw Queue' pseudo-PPD. * system-config-printer.py (GUI.on_btnChangePPD_clicked): Prevent traceback on raw queue. (GUI.on_btnNPApply_clicked): Cope with changing from a PPD-driven queue to a raw queue. 2006-08-23 Tim Waugh * configure.in: Version 0.7.26. 2006-08-23 Tim Waugh * system-config-printer.py (GUI.fillPrinterTab): Use ellipsis to show authentication details are hidden. (percentDecode): New function. 2006-08-18 Tim Waugh * system-config-printer.py (percentEncode): New function. (GUI.getDeviceURI): Use it (bug #203066). (GUI.fillNPApply): When authentication details are hidden in SMB URI, show this with an ellipsis. 2006-08-14 Florian Festi * configure.in: Version 0.7.25. * cupshelpers.py (Printer.getPPD): fix for raw queues * system-config-printer.py (GUI.fillPrinterOptions): don't show option tabs for raw queues * system-config-printer.py (GUI.on_btnNPApply_clicked): fix for raw queues 2006-08-03 Tim Waugh * configure.in: Version 0.7.24. 2006-08-03 Tim Waugh * system-config-printer.py (GUI.getDeviceURI): Fixed IPP URI generation. (GUI.on_tvNPDevices_cursor_changed): Parse IPP URIs correctly. 2006-07-28 Tim Waugh * cupshelpers.py (Device.__init__): Fixed traceback when handling non-conforming Device IDs. 2006-07-24 Tim Waugh * configure.in: Version 0.7.23. 2006-07-24 Tim Waugh * system-config-printer.py (GUI.initNewPrinterWindow): Set JetDirect port number to 9100 by default (bug #197866). 2006-07-07 Tim Waugh * system-config-printer.py (GUI.save_serversettings): Reconnect after adjusting server settings. 2006-07-07 Tim Waugh * configure.in: Version 0.7.22. 2006-07-07 Tim Waugh * system-config-printer.py (GUI.on_tvNPDrivers_cursor_changed): Fix PPD description for PPDs from the CUPS foomatic driver. * foomatic.py (_ppdMakeModelSplit): Handle PPDs from the CUPS foomatic driver. * cupshelpers.py (PrintersConf.fetch): Handle classes.conf or printers.conf being asent. 2006-07-06 Florian Festi * system-config-printer.py (GUI.fillPrinterOptions): Keep "Installable Options" tab focused when Apply button is pressed. * system-config-printer.glade: hide "Installable Options" tab to haveit redrawn on the first showall() * system-config-printer.py (GUI.on_btnNewOption_clicked, GUI.removeOption_clicked, GUI.on_cmbentNewOption_changed): Don't offer options as new that are already set. 2006-07-05 Tim Waugh * configure.in: Version 0.7.21. 2006-07-05 Tim Waugh * options.py (OptionSelectOne.__init__): Handle Booleans. (Option.is_changed): Compare strings not values. * cupshelpers.py (Printer._getAttributes): Fix case in Boolean options. 2006-07-05 Florian Festi * cupshelpers.py (Printer._getAttributes, GUI.fillPrinterTab): fixed handling of server side settings 2006-07-04 Tim Waugh * foomatic.py (Printer.getPPD): Fix foomatic-provided PPD loading. 2006-07-03 Tim Waugh * configure.in: Version 0.7.20. 2006-07-03 Florian Festi * system-config-printer.glade: Spacing (HIG) 2006-07-03 Florian Festi * system-config-printer.py (GUI.populateList): Hide empty entries in the main list 2006-07-03 Tim Waugh * foomatic.py (_ppdMakeModelSplit): Fixed indentation. (_ppdMakeModelSplit): Better commented explanations. (Foomatic.addCupsPPDs): Don't include foomatic-provided PPDs because we already know about them from foomatic. 2006-06-30 Tim Waugh * configure.in: Version 0.7.19. 2006-06-30 Tim Waugh * foomatic.py (Printer.parse_xml): There's no ppds node. Handle lang/*/ppd. (_ppdMakeModelSplit): New function. * system-config-printer.py (GUI.on_tvNPDrivers_cursor_changed): More reliable PPD information. * foomatic.py: Use /var/cache/foomatic/foomatic.pickle for pickle file. (Foomatic.addCupsPPDs): Strip PS/PXL suffices from CUPS PPD nicknames. (Foomatic.addCupsPPDs): Add loaded PPD drivers to existing printers. (Printer.getPPDDrivers): Strip .gz when comparing file names. 2006-06-29 Tim Waugh * system-config-printer.py (GUI.on_delete_activate): Clear any un-applied changes. * system-config-printer.glade: Make buttons on the new printer dialog all the same width. 2006-06-27 Tim Waugh * configure.in: Version 0.7.18. 2006-06-27 Tim Waugh * system-config-printer.py (GUI.setDataButtonState): Print Test Page button is only sensitive when printer is enabled, accepting jobs, and no changes need to be applied. (GUI.fillPrinterTab): Likewise. (GUI.on_btnPrintTestPage_clicked): Tell the user that the test page was submitted, and which job number it was. (GUI.on_btnPrintTestPage_clicked): Handle test page failures due to the remote printer not being shared. In theory it should be possible to print test pages there, but needs hackery. 2006-06-26 Florian Festi * system-config-printer.glade, system-config-printer.py (GUI.on_btnPrintTestPage_clicked): Print test page button 2006-06-26 Tim Waugh * po/POTFILES.in: Include the glade file. * po/Makevars: Bugzilla for reporting bugs. * system-config-printer.glade: Some translatable="no" fixes. 2006-06-25 Tim Waugh * system-config-printer.py (GUI.on_btnNPApply_clicked): Set newly-created queue enabled and accepting jobs. * cupshelpers.py: Strings marked for translation. 2006-06-23 Tim Waugh * configure.in: Version 0.7.17. 2006-06-23 Tim Waugh * system-config-printer.py (GUI.on_tvNPDrivers_cursor_changed): Provide PPD information. (GUI.busy, GUI.ready): New cursor functions. (GUI.on_entSMBURI_changed): Check whether to ignore this signal. (GUI.on_tvSMBBrowser_cursor_changed): Suppress signals from entSMBURI when we set its text. (GUI.on_btnSMBVerify_clicked): Implemented. (GUI.initNewPrinterWindow): Grab focus after setting text, so that it is highlighted. 2006-06-23 Tim Waugh * configure.in: Version 0.7.16. 2006-06-23 Tim Waugh * system-config-printer.py (GUI.fillDeviceTab): Filter out hpfax:/no_device_found. (GUI.construct_SMBURI): New function. (GUI.on_tvSMBBrowser_cursor_changed): Use it. (GUI.fillNPApply): Don't reveal SMB authentication details. (GUI.initNewPrinterWindow): Clear out SMB screen. 2006-06-22 Tim Waugh * system-config-printer.py (GUI): Show SMB tab. (GUI.initNewPrinterWindow): Set up SMB browser columns. (GUI.on_tvSMBBrowser_row_activated): New function, ported from printconf. (GUI.on_tvSMBBrowser_row_expanded): Likewise. (GUI.on_tvSMBBrowser_select_cursor_row): New function. (GUI.getDevic