From 36ceed5e84405d3208b9ec3160987c2c01466379 Mon Sep 17 00:00:00 2001 From: keescook Date: Tue, 6 Feb 2007 19:29:40 +0000 Subject: [PATCH] correctly ifdef the new print dialog --- src/extension/internal/ps.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/extension/internal/ps.cpp b/src/extension/internal/ps.cpp index c1c8bf491..ffe55af69 100644 --- a/src/extension/internal/ps.cpp +++ b/src/extension/internal/ps.cpp @@ -43,7 +43,9 @@ #include #include +#ifdef HAVE_GTK_UNIX_PRINT #include +#endif #include #include "display/nr-arena-item.h" @@ -104,6 +106,7 @@ PrintPS::~PrintPS(void) return; } +#ifdef HAVE_GTK_UNIX_PRINT static void unix_print_complete (GtkPrintJob *print_job, gpointer user_data, @@ -155,6 +158,7 @@ unix_print_dialog (const gchar * ps_file, const gchar * jobname) gtk_widget_destroy(dlg); } +#endif // HAVE_GTK_UNIX_PRINT unsigned int @@ -173,10 +177,11 @@ PrintPS::setup(Inkscape::Extension::Print * mod) g_object_ref((GObject *) tt); gtk_object_sink((GtkObject *) tt); + GtkWidget *dlg = gtk_dialog_new_with_buttons( #ifdef HAVE_GTK_UNIX_PRINT - GtkWidget *dlg = gtk_dialog_new_with_buttons(_("Print Configuration"), + _("Print Configuration"), #else - GtkWidget *dlg = gtk_dialog_new_with_buttons(_("Print Destination"), + _("Print Destination"), #endif // SP_DT_WIDGET(SP_ACTIVE_DESKTOP)->window, NULL, -- 2.30.2