2006-05-03 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't
+ use gtk_dialog_run for the error dialog, and improve the
+ dialog in other ways. (#340510, Christian Persch)
+
* gtk/gtkpagesetupunixdialog.c: Beautify the custom
paper size dialog. (#339590, patch by Christian Persch)
2006-05-03 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't
+ use gtk_dialog_run for the error dialog, and improve the
+ dialog in other ways. (#340510, Christian Persch)
+
* gtk/gtkpagesetupunixdialog.c: Beautify the custom
paper size dialog. (#339590, patch by Christian Persch)
#include "gtkprinter.h"
#include "gtkprintjob.h"
#include "gtkalias.h"
+#include "gtkintl.h"
typedef struct {
GtkPrintJob *job; /* the job we are sending to the printer */
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_ERROR,
GTK_BUTTONS_CLOSE,
- "Error printing: %s",
- error->message);
-
- gtk_dialog_run (GTK_DIALOG (edialog));
- gtk_widget_destroy (edialog);
+ _("Error printing") /* FIXME better text */);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (edialog),
+ "%s", error->message);
+ gtk_window_set_modal (GTK_WINDOW (edialog), TRUE);
+ g_signal_connect (edialog, "response",
+ G_CALLBACK (gtk_widget_destroy), NULL);
+
+ gtk_window_present (GTK_WINDOW (edialog));
}
}
typedef struct {
- GtkPageSetup *page_setup;
- GFunc done_cb;
- gpointer data;
- GDestroyNotify destroy;
+ GtkPageSetup *page_setup;
+ GtkPageSetupDoneFunc done_cb;
+ gpointer data;
+ GDestroyNotify destroy;
} PageSetupResponseData;
static void
+2006-05-03 Matthias Clasen <mclasen@redhat.com>
+
+ * POTFILES.in: Add gtkprintoperation-unix.c
+
2006-05-03 Ankit Patel <ankit644@yahoo.com>
* gu.po: Updated Gujarati Translation.
gtk/gtkprinteroptionwidget.c
gtk/gtkprintjob.c
gtk/gtkprintoperation.c
+gtk/gtkprintoperation-unix.c
gtk/gtkprintoperation-win32.c
gtk/gtkprintunixdialog.c
gtk/gtkprogress.c