/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2015 Hiroyuki Yamamoto and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
*/
#ifndef __TEXTVIEW_H__
#define __TEXTVIEW_H__
#ifdef HAVE_CONFIG_H
-# include "config.h"
+#include "claws-features.h"
#endif
#include <glib.h>
#include <gtk/gtk.h>
-typedef struct _TextView TextView;
typedef struct _ClickableText ClickableText;
struct _ClickableText
{
gchar *filename;
gpointer data;
+ gint data_len;
guint start;
guint end;
};
-#include "messageview.h"
+#include "viewtypes.h"
#include "procmime.h"
struct _TextView
gboolean default_text;
gboolean is_in_signature;
+ gboolean is_diff;
+ gboolean is_attachment;
GSList *uri_list;
gint body_pos;
- gboolean show_all_headers;
-
MessageView *messageview;
gint last_buttonpress;
GtkTextIter uri_hover_start_iter;
GtkTextIter uri_hover_end_iter;
GtkWidget *image;
+ gint avatar_type;
gboolean loading;
gboolean stop_loading;
gint prev_quote_level;
MimeInfo *mimeinfo,
FILE *fp);
void textview_show_error (TextView *textview);
+void textview_show_info (TextView *textview,
+ const gchar *info_str);
void textview_show_mime_part (TextView *textview,
MimeInfo *partinfo);
void textview_clear (TextView *textview);
void textview_destroy (TextView *textview);
-void textview_set_all_headers (TextView *textview,
- gboolean all_headers);
void textview_set_font (TextView *textview,
const gchar *codeset);
void textview_set_text (TextView *textview,
gboolean up);
gboolean textview_scroll_page (TextView *textview,
gboolean up);
+void textview_scroll_max (TextView *textview,
+ gboolean up);
gboolean textview_search_string (TextView *textview,
const gchar *str,