diff dwt/printing/Printer.d @ 152:17f8449522fd

overloads second walkthrough
author Frank Benoit <benoit@tionex.de>
date Thu, 31 Jan 2008 23:19:20 +0100
parents f2e04420fd6c
children de2578a843a7
line wrap: on
line diff
--- a/dwt/printing/Printer.d	Thu Jan 31 20:26:30 2008 +0100
+++ b/dwt/printing/Printer.d	Thu Jan 31 23:19:20 2008 +0100
@@ -361,7 +361,7 @@
  * This method is called internally by the dispose
  * mechanism of the <code>Device</code> class.
  */
-protected void release () {
+protected override void release () {
     super.release();
 
     /* Dispose the default font */
@@ -415,7 +415,7 @@
  * This method is called internally by the dispose
  * mechanism of the <code>Device</code> class.
  */
-protected void destroy () {
+protected override void destroy () {
     if (printer !is null) OS.g_object_unref (printer);
     if (settings !is null) OS.g_object_unref (settings);
     if (pageSetup !is null) OS.g_object_unref (pageSetup);
@@ -629,7 +629,7 @@
  * mechanism of the <code>Device</code> class.
  * @param deviceData the device data
  */
-protected void create(DeviceData deviceData) {
+protected override void create(DeviceData deviceData) {
     this.data = cast(PrinterData)deviceData;
     if (OS.GTK_VERSION < OS.buildVERSION (2, 10, 0)) DWT.error(DWT.ERROR_NO_HANDLES);
     printer = gtkPrinterFromPrinterData();
@@ -648,7 +648,7 @@
  *
  * @see #create
  */
-protected void init() {
+protected override void init() {
     super.init ();
     settings = OS.gtk_print_settings_new();
     pageSetup = OS.gtk_page_setup_new();