* src/messageview.[ch]
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 6 Apr 2004 13:04:13 +0000 (13:04 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 6 Apr 2004 13:04:13 +0000 (13:04 +0000)
  src/summaryview.c
  reflect changes to Show all headers to main view
  and message view (only affects detached message
  view). see also bug #473, 'Show All Headers
  "problem"'.

ChangeLog.claws
configure.ac
src/messageview.c
src/messageview.h
src/summaryview.c

index f64924e..2f0c83b 100644 (file)
@@ -1,3 +1,12 @@
+2004-04-06 [alfons]    0.9.10claws40
+
+       * src/messageview.[ch]
+         src/summaryview.c
+               reflect changes to Show all headers to main view
+               and message view (only affects detached message
+               view). see also bug #473, 'Show All Headers 
+               "problem"'.
+
 2004-04-03 [alfons]    0.9.10claws39
 
        * src/matcher.c
index 236e713..62d752c 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=10
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=39
+EXTRA_VERSION=40
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index a38a970..df8d71f 100644 (file)
@@ -239,7 +239,7 @@ static GtkItemFactoryEntry msgview_entries[] =
 
        {N_("/_View/---"),              NULL, NULL, 0, "<Separator>"},
        {N_("/_View/Mess_age source"),  NULL, view_source_cb, 0, NULL},
-       {N_("/_View/Show all _header"), NULL, show_all_header_cb, 0, "<ToggleItem>"},
+       {N_("/_View/Show all _headers"),NULL, show_all_header_cb, 0, "<ToggleItem>"},
 
        {N_("/_Message"),               NULL, NULL, 0, "<Branch>"},
        {N_("/_Message/Compose _new message"),
@@ -1203,6 +1203,7 @@ static void show_all_header_cb(gpointer data, guint action, GtkWidget *widget)
        messageview_show(messageview, msginfo,
                         GTK_CHECK_MENU_ITEM(widget)->active);
        procmsg_msginfo_free(msginfo);
+       main_window_set_menu_sensitive(messageview->mainwin);
 }
 
 static void compose_cb(gpointer data, guint action, GtkWidget *widget)
@@ -1398,3 +1399,22 @@ static gboolean messageview_update_msg(gpointer source, gpointer data)
 
        return FALSE;
 }
+
+void messageview_set_menu_sensitive(MessageView *messageview)
+{
+       GtkItemFactory *ifactory;
+       GtkWidget *menuitem;
+
+       if (!messageview && !messageview->new_window) 
+               return;
+       /* do some smart things */
+       if (!messageview->menubar) return;
+       ifactory = gtk_item_factory_from_widget(messageview->menubar);
+       if (!ifactory) return;
+       if (messageview->mainwin->type == SEPARATE_MESSAGE) {
+               menuitem = gtk_item_factory_get_widget(ifactory, "/View/Show all headers");
+               gtk_check_menu_item_set_active
+                       (GTK_CHECK_MENU_ITEM(menuitem),
+                        messageview->mimeview->textview->show_all_headers);
+       }
+}
index b0ec0d9..a4d59f0 100644 (file)
@@ -106,4 +106,7 @@ void messageview_add_toolbar                        (MessageView    *msgview,
                                                 GtkWidget      *vbox);
 void messageview_reflect_prefs_pixmap_theme    (void);
 gchar *messageview_get_selection               (MessageView    *msgview);
+
+void messageview_set_menu_sensitive            (MessageView    *msgview);
+
 #endif /* __MESSAGEVIEW_H__ */
index 4c9a12f..ca4fa7a 100644 (file)
@@ -2536,6 +2536,7 @@ static void summary_display_msg_full(SummaryView *summaryview,
 
        summary_set_menu_sensitive(summaryview);
        toolbar_main_set_sensitive(summaryview->mainwin);
+       messageview_set_menu_sensitive(summaryview->messageview);
 
        summary_unlock(summaryview);
 }