From 9b41970442a050284b79023eea0d4af8af94d794 Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Sun, 13 Jul 2008 21:47:20 +0000 Subject: [PATCH] * hide the license key field as it is only supported in the commercial pdflib version git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26407 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../print/drivers/pdf/source/AdvancedSettingsWindow.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/add-ons/print/drivers/pdf/source/AdvancedSettingsWindow.cpp b/src/add-ons/print/drivers/pdf/source/AdvancedSettingsWindow.cpp index 7a1e0b889a..0ce51f4625 100644 --- a/src/add-ons/print/drivers/pdf/source/AdvancedSettingsWindow.cpp +++ b/src/add-ons/print/drivers/pdf/source/AdvancedSettingsWindow.cpp @@ -97,12 +97,15 @@ AdvancedSettingsWindow::AdvancedSettingsWindow(BMessage *settings) fLicenseKey->SetEnabled(false); fLicenseKey->ResizeToPreferred(); fLicenseKey->SetDivider(divider); - //fLicenseKey->TextView()->HideTyping(true); + fLicenseKey->TextView()->HideTyping(true); fLicenseKey->TextView()->SetText(licenseKey.String()); + // Hide the license key field as it is only supported in the commercial + // version of of pdflib. Leave it here for layout atm. + fLicenseKey->Hide(); // border link - bounds.OffsetBy(0.0, fLicenseKey->Bounds().Height() + 10.0); + // bounds.OffsetBy(0.0, fLicenseKey->Bounds().Height() + 10.0); BPopUpMenu* m = new BPopUpMenu("Link Border"); m->SetRadioMode(true); @@ -329,7 +332,7 @@ void AdvancedSettingsWindow::_UpdateSettings() { #if 0 - AddString(fSettings, "pdflib_license_key", fLicenseKey); + SetString(fSettings, "pdflib_license_key", fLicenseKey); #endif SetInt32(fSettings, "close_option", fCloseOption);