[PATCH] : small thing



	Hi all,
this prevents us from calling enable_mailbox_menus each time we 
select/unselect a message (this is useless because we should modify the 
mailbox menu only when selecting/unselecting mailbox nodes, or I missed 
something ;-).
Bye
Manu
--- balsa-current/src/main-window.c	Sat May 11 11:52:29 2002
+++ balsa/src/main-window.c	Sun May 12 20:04:12 2002
@@ -1193,11 +1193,6 @@
     gtk_signal_handler_unblock_by_func(GTK_OBJECT(threading_menu[pos].widget),
                                        threading_menu[pos].moreinfo,
                                        balsa_app.main_window);
-
-    /* FIXME: the print below reveals that the threading is reset on
-       every message preview change. It means: much too often. */
-    /* printf("balsa_window_set_threading_menu::Threading set to %d\n", 
-       balsa_app.threading_type); */
 }
 
 /* balsa_window_open_mbnode: 
@@ -2839,7 +2834,6 @@
     index = 
         BALSA_INDEX(balsa_window_find_current_index(balsa_app.main_window));
     g_return_if_fail(index);
-    enable_mailbox_menus(index->mailbox_node);
     enable_message_menus(message);
 }
 
@@ -2853,7 +2847,6 @@
     index = 
         BALSA_INDEX(balsa_window_find_current_index(balsa_app.main_window));
     g_return_if_fail(index);
-    enable_mailbox_menus(index->mailbox_node);
     /* we need to disable menus in case there was no other message selected */
     if(GTK_CLIST(index->ctree)->selection == NULL) {
         enable_message_menus(NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]