2005-10-07 [colin] 1.9.15cvs20
[claws.git] / src / plugins / pgpcore / passphrase.c
index bb0139fdf9acbd9c1f4b583bf067d1f53f993435..0e177f46607c22a8319783acf6f070bd06bd91bb 100644 (file)
@@ -13,7 +13,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #ifdef HAVE_CONFIG_H
@@ -50,6 +50,8 @@
 #include "prefs_gpg.h"
 #include "manage_window.h"
 #include "utils.h"
+#include "mainwindow.h"
+#include "summaryview.h"
 
 static gboolean grab_all = FALSE;
 
@@ -85,6 +87,10 @@ passphrase_mbox(const gchar *uid_hint, const gchar *pass_hint, gint prev_bad)
     GtkWidget *ok_button;
     GtkWidget *cancel_button;
 
+    SummaryView *summaryview = mainwindow_get_mainwindow()->summaryview;
+    
+    gtk_menu_popdown(GTK_MENU(summaryview->popupmenu));
+
     window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     gtk_window_set_title(GTK_WINDOW(window), _("Passphrase"));
     gtk_widget_set_size_request(window, 450, -1);