aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.h
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-12-12 02:03:44 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-12-12 02:03:44 +0800
commit6642d01f14a95b02f2f5bd96d59bc7d1dc9bf835 (patch)
tree0c7dd23b31755185165cd4db54c3840f6891f148 /mail/mail-display.h
parent0bdb17a8e32c7a4a636a008cc0466e44ee6bdaff (diff)
downloadgsoc2013-evolution-6642d01f14a95b02f2f5bd96d59bc7d1dc9bf835.tar.gz
gsoc2013-evolution-6642d01f14a95b02f2f5bd96d59bc7d1dc9bf835.tar.zst
gsoc2013-evolution-6642d01f14a95b02f2f5bd96d59bc7d1dc9bf835.zip
Add ETable magic for our new "Needs Reply" column. (The next few entries
2001-12-11 Jon Trowbridge <trow@ximian.com> * message-list.etspec: Add ETable magic for our new "Needs Reply" column. (The next few entries are for bug #90) * message-list.h: Add COL_NEED_REPLY. * message-list.c: Move mail_need_reply_xpm to the end of states_pixmaps. (ml_duplicate_value): Handle COL_NEED_REPLY. (ml_free_value): Handle COL_NEED_REPLY. (ml_initialize_value): Handle COL_NEED_REPLY. (ml_value_is_empty): Handle COL_NEED_REPLY. Added needs_reply_map[] array. (ml_value_to_string): Handle COL_NEED_REPLY. (ml_tree_value_at): Fix magic numbers, undoing my changes from the otehr day. Add handler for COL_NEED_REPLY. (message_list_create_extras): Attach icons for COL_NEED_REPLY. (on_click): Undo my previous changes to display need-reply status in COL_MESSAGE_STATUS. Add handing for COL_NEED_REPLY. * mail.h: Change mail_format_mime_message, mail_format_raw_message and the MailMimeHandlerFn typedef to take GtkHTML and GtkHTMLStream args, as per our changes in mail-format.c. * mail-format.c: Giant refactoring. Remove the assumption throughout that we will always want to render into the GtkHTML object contained in the MailDisplay. Instead, always pass in the GtkHTML and GtkHTMLStream that we want to write to. Also, ignore theme work-arounds if the printing flag is set. (This and what follows fixes bug #82) * mail-display.h: Remove GtkHTMLStream *stream from MailDisplay. We don't need it anymore. * mail-display.c (mail_display_render): Added. Breaks the code that renders the message into the GtkHTML object out of mail_display_redisplay. (mail_display_redisplay): Call mail_display_render. (mail_display_init): Remove reference to ->stream. (mail_display_new): Remove reference to ->stream. * mail-callbacks.c (do_mail_print): Create a new GtkHTML to render our printed version into (via the new function mail_display_render. Set the MailDisplay's printing flag to TRUE before we render, and set it back to FALSE afterwards. (do_mail_fetch_and_print): If the preview pane isn't open when we try to print, fetch the message before printing. (print_msg): Call do_mail_fetch_and_print. (print_preview_msg): Call do_mail_fetch_and_print. * folder-browser-ui.c: Remove "PrintMessage" and "PrintPreviewMessage" from message_pane_enables... these now work when the preview pane is closed. Disable printing if multiple messages are selected. svn path=/trunk/; revision=14981
Diffstat (limited to 'mail/mail-display.h')
-rw-r--r--mail/mail-display.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/mail-display.h b/mail/mail-display.h
index 3602fe230b..1555405519 100644
--- a/mail/mail-display.h
+++ b/mail/mail-display.h
@@ -27,11 +27,11 @@ struct _MailDisplay {
EScrollFrame *scroll;
GtkHTML *html;
- GtkHTMLStream *stream;
+ /* GtkHTMLStream *stream; */
gint redisplay_counter;
gpointer last_active;
guint idle_id;
-
+
char *charset;
char *selection;
@@ -44,6 +44,8 @@ struct _MailDisplay {
GtkWidget *invisible;
MailConfigDisplayStyle display_style;
+
+ guint printing : 1;
};
typedef struct {
@@ -54,6 +56,7 @@ GtkType mail_display_get_type (void);
GtkWidget * mail_display_new (void);
void mail_display_queue_redisplay (MailDisplay *mail_display);
+void mail_display_render (MailDisplay *mail_display, GtkHTML *html);
void mail_display_redisplay (MailDisplay *mail_display, gboolean unscroll);
void mail_display_redisplay_when_loaded (MailDisplay *md,
gconstpointer key,
gi/freebsd-ports-gnome/commit/x11-servers/XFree86-4-NestServer?h=gnome-3.24&id=9ddd3b82d6dc17d4f1d24406279c66dc9f23b128'>Clear moonlight beckons.ade2003-03-072-1/+1 * [1] Fix missing symbols in i810 driveranholt2003-01-242-3/+3 * Add missing lib/X11/xserver/SecurityPolicy for other XFree86 server ports.anholt2003-01-161-0/+1 * [1] Make the 4.2.1 ports all use the merged 4.2.1+mitshm patch.anholt2002-10-173-14/+12 * Update XFree86 Servers ports to 4.2.1 + the second SHM security fix (foranholt2002-09-192-4/+19 * Update XFree86-4-* ports which share XFree86-4-libraries's patches:anholt2002-09-182-7/+6 * gzip Wraphelp.c and put it in local_distfiles, to help users having troublesanholt2002-08-022-9/+8 * Make XFree86-4 miniports use imake-4's HasXdmAuth setting (default is YES).anholt2002-07-192-36/+9 * Take over maintainership of XFree86-4 ports. Add patches to fix libGLU onanholt2002-07-151-1/+2 * XFree86 4.2.0 Stage 2: XFree86-4-* miniport upgradeswill2002-03-172-21/+11 * configure exits with error ifsf2002-01-071-12/+20 * o pre-fetch: -> pre-everything::sf2002-01-071-5/+4 * pass HasXdmAuth to configure script.sf2002-01-071-0/+1 * Fix long-standing bug of this ports: support HasXdmAuth correctly.sf2001-12-152-0/+19 * Get rid of 'X11R6.4' from pkg-comment.sf2001-06-171-1/+1 * update to 4.1.0.sf2001-06-124-12/+8 * o fix MASTER_SITE_SUBDIR.sf2001-03-291-1/+1 * update to 4.0.3.sf2001-03-263-11/+11 * Change PATCHDIR from patches/ to files/. Also change PKGDIR (pkg/ toasami2000-10-081-1/+1 * Use MASTER_SITE_XFREE.sobomax2000-09-211-5/+2 * Remove HTML manpages, this is done from bsd.port.mk now.asami2000-09-131-2/+0 * Add missing manpages and html documents. (Hmm, duplicates....)asami2000-08-262-1/+5 * Update to 4.0.1. Remove libraries from -clients. Try to extractasami2000-08-252-28/+24