summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <kees@outflux.net>2007-02-06 19:29:40 +0000
committerkeescook <keescook@users.sourceforge.net>2007-02-06 19:29:40 +0000
commit4fc9a16da28f1cfef0e993d0211458db42ef2201 (patch)
tree9d72960ee54aba44daad27487302d01fe696e418
parentwrong commit reverted (diff)
downloadinkscape-4fc9a16da28f1cfef0e993d0211458db42ef2201.tar.gz
inkscape-4fc9a16da28f1cfef0e993d0211458db42ef2201.zip
correctly ifdef the new print dialog
(bzr r2335)
-rw-r--r--src/extension/internal/ps.cpp9
1 files 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 <gtk/gtkentry.h>
#include <gtk/gtktooltips.h>
+#ifdef HAVE_GTK_UNIX_PRINT
#include <gtk/gtkprintunixdialog.h>
+#endif
#include <glibmm/i18n.h>
#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,