diff options
| author | Kees Cook <kees@outflux.net> | 2007-02-06 19:29:40 +0000 |
|---|---|---|
| committer | keescook <keescook@users.sourceforge.net> | 2007-02-06 19:29:40 +0000 |
| commit | 4fc9a16da28f1cfef0e993d0211458db42ef2201 (patch) | |
| tree | 9d72960ee54aba44daad27487302d01fe696e418 /src | |
| parent | wrong commit reverted (diff) | |
| download | inkscape-4fc9a16da28f1cfef0e993d0211458db42ef2201.tar.gz inkscape-4fc9a16da28f1cfef0e993d0211458db42ef2201.zip | |
correctly ifdef the new print dialog
(bzr r2335)
Diffstat (limited to 'src')
| -rw-r--r-- | src/extension/internal/ps.cpp | 9 |
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, |
