2005-10-12 [colin] 1.9.15cvs33
authorColin Leroy <colin@colino.net>
Wed, 12 Oct 2005 18:50:03 +0000 (18:50 +0000)
committerColin Leroy <colin@colino.net>
Wed, 12 Oct 2005 18:50:03 +0000 (18:50 +0000)
* src/mimeview.c
Provide a quick way to go back from a
signature's full info to the email part

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/mimeview.c

index ccbb946c0567ca4dfc7e987c2c78dbebee125bc9..548f4dc01222503e2585ed13317e9bc7235a5e5e 100644 (file)
@@ -1,3 +1,9 @@
+2005-10-12 [colin]     1.9.15cvs33
+
+       * src/mimeview.c
+               Provide a quick way to go back from a
+               signature's full info to the email part
+
 2005-10-12 [colin]     1.9.15cvs32
 
        * src/compose.c
index ab387285131a30ad30a08bf7ac14e144f4472e09..fb834c21a8346d863e098fef8fa372abe734a103 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.207.2.70 -r 1.207.2.71 src/folderview.c;  cvs diff -u -r 1.179.2.76 -r 1.179.2.77 src/imap.c;  cvs diff -u -r 1.1.2.22 -r 1.1.2.23 src/imap_gtk.c;  ) > 1.9.15cvs30.patchset
 ( cvs diff -u -r 1.23.2.13 -r 1.23.2.14 src/crash.c;  cvs diff -u -r 1.179.2.77 -r 1.179.2.78 src/imap.c;  cvs diff -u -r 1.274.2.72 -r 1.274.2.73 src/mainwindow.c;  cvs diff -u -r 1.83.2.40 -r 1.83.2.41 src/mimeview.c;  cvs diff -u -r 1.101.2.17 -r 1.101.2.18 src/news.c;  cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/prefs_image_viewer.c;  cvs diff -u -r 1.395.2.134 -r 1.395.2.135 src/summaryview.c;  cvs diff -u -r 1.1.2.14 -r 1.1.2.15 src/wizard.c;  cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/plugins/pgpcore/prefs_gpg.c;  ) > 1.9.15cvs31.patchset
 ( cvs diff -u -r 1.382.2.182 -r 1.382.2.183 src/compose.c;  ) > 1.9.15cvs32.patchset
+( cvs diff -u -r 1.83.2.41 -r 1.83.2.42 src/mimeview.c;  ) > 1.9.15cvs33.patchset
index fe0d7e898ad77a58c73a94c41d8788913f67e088..b06d0007ba04ff216b0fa35a46439ed6199b3ce3 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=15
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=32
+EXTRA_VERSION=33
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 1a89d44f4f681b0717f8c3e5698f3dc26340dcab..9e627cbbe13be9ce23262492a8cccf594057e85d 100644 (file)
@@ -686,6 +686,14 @@ static void check_signature_cb(GtkWidget *widget, gpointer user_data)
        icon_list_create(mimeview, mimeview->mimeinfo);
 }
 
+static void redisplay_email(GtkWidget *widget, gpointer user_data)
+{
+       MimeView *mimeview = (MimeView *) user_data;
+       GtkCTreeNode *node = mimeview->opened;
+       mimeview->opened = NULL;
+       mimeview_selected(GTK_CTREE(mimeview->ctree), node, 0, mimeview);
+}
+
 static void display_full_info_cb(GtkWidget *widget, gpointer user_data)
 {
        MimeView *mimeview = (MimeView *) user_data;
@@ -694,7 +702,11 @@ static void display_full_info_cb(GtkWidget *widget, gpointer user_data)
        siginfo = privacy_mimeinfo_sig_info_full(mimeview->siginfo);
        textview_set_text(mimeview->textview, siginfo);
        g_free(siginfo);
-       noticeview_set_button_text(mimeview->siginfoview, NULL);
+       noticeview_set_button_text(mimeview->siginfoview, _("Back to email"));
+       noticeview_set_button_press_callback(
+               mimeview->siginfoview,
+               G_CALLBACK(redisplay_email),
+               (gpointer) mimeview);
 }
 
 static void update_signature_info(MimeView *mimeview, MimeInfo *selected)