2007-03-16 [colin] 2.8.1cvs17
authorColin Leroy <colin@colino.net>
Fri, 16 Mar 2007 14:03:27 +0000 (14:03 +0000)
committerColin Leroy <colin@colino.net>
Fri, 16 Mar 2007 14:03:27 +0000 (14:03 +0000)
* src/messageview.c
* src/mimeview.h
Allow mimeviewer plugins to print
their stuff

ChangeLog
PATCHSETS
configure.ac
src/messageview.c
src/mimeview.h

index c5d3dfd..cb5ae0b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-03-16 [colin]     2.8.1cvs17
+
+       * src/messageview.c
+       * src/mimeview.h
+               Allow mimeviewer plugins to print
+               their stuff
+
 2007-03-16 [colin]     2.8.1cvs16
 
        * .cvsignore
index d82cb1b..30cc375 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.5.2.32 -r 1.5.2.33 src/prefs_spelling.c;  ) > 2.8.1cvs14.patchset
 ( cvs diff -u -r 1.94.2.124 -r 1.94.2.125 src/messageview.c;  cvs diff -u -r 1.20.2.18 -r 1.20.2.19 src/mimeview.h;  ) > 2.8.1cvs15.patchset
 ( cvs diff -u -r 1.8.2.5 -r 1.8.2.6 .cvsignore;  ) > 2.8.1cvs16.patchset
+( cvs diff -u -r 1.94.2.125 -r 1.94.2.126 src/messageview.c;  cvs diff -u -r 1.20.2.19 -r 1.20.2.20 src/mimeview.h;  ) > 2.8.1cvs17.patchset
index d98efaf..d21be7c 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=16
+EXTRA_VERSION=17
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 5dcf0e9..f68aab7 100644 (file)
@@ -1462,6 +1462,13 @@ static void print_mimeview(MimeView *mimeview, gint sel_start, gint sel_end, gin
                if (partnum > 0) {
                        mimeview_select_part_num(mimeview, partnum);
                }
+               if (mimeview->type == MIMEVIEW_VIEWER) {
+                       MimeViewer *viewer = mimeview->mimeviewer;
+                       if (viewer && viewer->print) {
+                               viewer->print(viewer);
+                               return;
+                       }
+               }
                if (sel_start != -1 && sel_end != -1) {
                        GtkTextIter start, end;
                        GtkTextView *text = GTK_TEXT_VIEW(mimeview->textview->text);
index 9d540c5..5e2a240 100644 (file)
@@ -128,6 +128,7 @@ struct _MimeViewer
        gboolean        (*text_search)          (MimeViewer *, gboolean backward,
                                                 const gchar *str, 
                                                 gboolean case_sensitive);
+       void            (*print)                (MimeViewer *);
        MimeView        *mimeview;
 };