aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-08-24 11:14:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-24 11:14:10 +0800
commit1fcb8ae1ba7077f67daf8c2bd47a43ae7d31ca12 (patch)
tree9a45f4e7075e14cf1ef8e48058222cb3a0a6fb35 /plugins
parentf8ea98797c838b0eea397ae70c778838857e605d (diff)
downloadgsoc2013-evolution-1fcb8ae1ba7077f67daf8c2bd47a43ae7d31ca12.tar
gsoc2013-evolution-1fcb8ae1ba7077f67daf8c2bd47a43ae7d31ca12.tar.gz
gsoc2013-evolution-1fcb8ae1ba7077f67daf8c2bd47a43ae7d31ca12.tar.bz2
gsoc2013-evolution-1fcb8ae1ba7077f67daf8c2bd47a43ae7d31ca12.tar.lz
gsoc2013-evolution-1fcb8ae1ba7077f67daf8c2bd47a43ae7d31ca12.tar.xz
gsoc2013-evolution-1fcb8ae1ba7077f67daf8c2bd47a43ae7d31ca12.tar.zst
gsoc2013-evolution-1fcb8ae1ba7077f67daf8c2bd47a43ae7d31ca12.zip
Add missing headers (org_gnome_print_message): define before defining,
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. svn path=/trunk/; revision=30228
Diffstat (limited to 'plugins')
-rw-r--r--plugins/print-message/ChangeLog6
-rw-r--r--plugins/print-message/print-message.c10
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)
{