[X2Go-Commits] pyhoca-gui.git - build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d (branch) updated: 0.0.29.0-39-g1a22192

X2Go dev team git-admin at x2go.org
Tue Aug 27 13:21:16 CEST 2013


The branch, build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d has been updated
       via  1a2219217c79ff370443076506f0708c2d2d44dc (commit)
      from  c7f21295a90c5ad7d53a00359ef35186403d2fb2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 pyhoca/wxgui/printingprefs.py |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/pyhoca/wxgui/printingprefs.py b/pyhoca/wxgui/printingprefs.py
index d5ff9c9..a167979 100644
--- a/pyhoca/wxgui/printingprefs.py
+++ b/pyhoca/wxgui/printingprefs.py
@@ -168,6 +168,12 @@ class PyHocaGUI_PrintingPreferences(wx.Dialog):
         self.Show(True)
 
     def __update_fields(self):
+
+        self.PdfViewCmd.SetValue(self.client_printing.get_property('pdfview_cmd'))
+        self.PdfSaveToFolder.SetValue(self.client_printing.get_property('save_to_folder'))
+        self.PrintPrinter.SetValue(self.client_printing.get_property('printer'))
+        self.PrintCmd.SetValue(self.client_printing.get_property('print_cmd'))
+
         print_action_name = self.client_printing.get_print_action(reinit=True, return_name=True)
         if self._availablePrintActions.has_key(print_action_name):
             self.PrintAction.SetValue(self._availablePrintActions[print_action_name])
@@ -176,13 +182,13 @@ class PyHocaGUI_PrintingPreferences(wx.Dialog):
         self._onPrintActionChange()
 
     def __update_from_screen(self):
-        kwargs = {
+        properties = {
             'pdfview_cmd': self.PdfViewCmd.GetValue(),
             'save_to_folder': self.PdfSaveToFolder.GetValue(),
             'printer': self.PrintPrinter.GetValue(),
             'print_cmd': self.PrintCmd.GetValue(),
         }
-        self.client_printing.set_print_action(self._print_action, **kwargs)
+        self.client_printing.store_print_action(self._print_action, **properties)
 
     @property
     def _print_action(self):


hooks/post-receive
-- 
pyhoca-gui.git (Python X2Go Client (wxPython GUI))

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).




More information about the x2go-commits mailing list