diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/print-message/ChangeLog | 6 | ||||
-rw-r--r-- | plugins/print-message/print-message.c | 10 |
2 files changed, 14 insertions, 2 deletions
diff --git a/plugins/print-message/ChangeLog b/plugins/print-message/ChangeLog index faccad8b4b..f0e995b271 100644 --- a/plugins/print-message/ChangeLog +++ b/plugins/print-message/ChangeLog @@ -1,3 +1,9 @@ +2005-08-23 Not Zed <NotZed@Ximian.com> + + * print-message.c: Add missing headers + (org_gnome_print_message): define before defining, remove c99isms. + (org_gnome_print_preview): define before defining. + 2005-06-27 Tor Lillqvist <tml@novell.com> * Makefile.am: Use NO_UNDEFINED. Link with more libraries. diff --git a/plugins/print-message/print-message.c b/plugins/print-message/print-message.c index aac3217eab..531882239b 100644 --- a/plugins/print-message/print-message.c +++ b/plugins/print-message/print-message.c @@ -34,6 +34,7 @@ #include "mail/em-menu.h" #include "mail/em-utils.h" #include "e-util/e-print.h" +#include "e-util/e-dialog-utils.h" #include "composer/e-msg-composer.h" void org_gnome_compose_print_message (EPlugin *ep, EMMenuTargetWidget *t); @@ -68,26 +69,31 @@ print_response (GtkWidget *w, int resp, struct _print_data *data) } +void org_gnome_print_message (EPlugin *ep, EMMenuTargetWidget *t); + void org_gnome_print_message (EPlugin *ep, EMMenuTargetWidget *t) { EMsgComposer *composer = (EMsgComposer *)t->target.widget; struct _print_data *data; + GtkDialog *dialog; data = g_malloc0(sizeof(*data)); data->config = e_print_load_config (); data->preview = 0; data->msg = e_msg_composer_get_message (composer, 1); - GtkDialog *dialog = (GtkDialog *)e_print_get_dialog_with_config (_("Print Message"), GNOME_PRINT_DIALOG_COPIES, data->config); - gtk_dialog_set_default_response(dialog, GNOME_PRINT_DIALOG_RESPONSE_PRINT); + dialog = (GtkDialog *)e_print_get_dialog_with_config (_("Print Message"), GNOME_PRINT_DIALOG_COPIES, data->config); + gtk_dialog_set_default_response(dialog, GNOME_PRINT_DIALOG_RESPONSE_PRINT); e_dialog_set_transient_for ((GtkWindow *) dialog, (GtkWidget *) composer); g_signal_connect(dialog, "response", G_CALLBACK(print_response), data); gtk_widget_show((GtkWidget *)dialog); } +void org_gnome_print_preview (EPlugin *ep, EMMenuTargetWidget *t); + void org_gnome_print_preview (EPlugin *ep, EMMenuTargetWidget *t) { |