X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e72f2cd1827c88ce2b153abeb0e0a3e31b12da0..1ec4e9c2b72a01a7ba7da569e0f8d04a81aaba10:/include/wx/gtk/print.h diff --git a/include/wx/gtk/print.h b/include/wx/gtk/print.h index c0110a9678..90626ee549 100644 --- a/include/wx/gtk/print.h +++ b/include/wx/gtk/print.h @@ -197,6 +197,7 @@ public: void SetPrintConfig( GtkPrintSettings * config ); GtkPrintOperation* GetPrintJob() { return m_job; } + void SetPrintJob(GtkPrintOperation *job) { m_job = job; } GtkPrintContext *GetPrintContext() { return m_context; } void SetPrintContext(GtkPrintContext *context) {m_context = context; } @@ -206,6 +207,8 @@ public: void SetPageSetupToSettings(GtkPrintSettings* settings, GtkPageSetup* page_setup); private: + // NB: m_config is created and owned by us, but the other objects are not + // and their accessors don't change their ref count. GtkPrintSettings *m_config; GtkPrintOperation *m_job; GtkPrintContext *m_context;